Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377717 - dev-tcltk/expect-5.45 fails to build on darwin11
Summary: dev-tcltk/expect-5.45 fails to build on darwin11
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 10:29 UTC by Stuart Shelton
Modified: 2017-11-14 14:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2011-08-04 10:29:54 UTC
expect fails with:


x86_64-apple-darwin11-gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TERMIOS=1 -DHAVE_TIOCGWINSZ_IN_TERMIOS_H=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/opt/gentoo/usr/lib/expect5.45\" -DEXECSCRIPTDIR=\"/opt/gentoo/usr/lib/expect5.45\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/opt/gentoo/usr/lib/tcl8.5/include/generic" -I"/opt/gentoo/usr/lib/tcl8.5/include/unix"    -O2 -fno-math-errno -march=core2 -msse4 -msse4.1 -msse4.2 -mfpmath=sse -pipe -pipe  -Os -Wall -fno-common   -c `echo exp_select.c` -o exp_select.o

Dbg.c: In function 'debugger_trap':
Dbg.c:632: warning: enumeration value 'none' not handled in switch
Dbg.c:632: warning: enumeration value 'up' not handled in switch
Dbg.c:632: warning: enumeration value 'down' not handled in switch
Dbg.c:632: warning: enumeration value 'where' not handled in switch
Dbg.c:698: warning: enumeration value 'none' not handled in switch
Dbg.c:698: warning: enumeration value 'up' not handled in switch
Dbg.c:698: warning: enumeration value 'down' not handled in switch
pty_termios.c: In function 'exp_getptymaster':
pty_termios.c:476: warning: implicit declaration of function 'openpty'
pty_termios.c:382: warning: unused variable 'num'
pty_termios.c:379: warning: unused variable 'stat_buf'
pty_termios.c:378: warning: unused variable 'bank'
pty_termios.c:378: warning: unused variable 'hex'
pty_termios.c: In function 'exp_getptyslave':
pty_termios.c:642: warning: unused variable 'buf'
pty_termios.c:641: warning: unused variable 'slave2'
make: *** [pty_termios.o] Error 1
make: *** Waiting for unfinished jobs....
exp_clib.c: In function 'expectv':
exp_clib.c:2451: warning: 'return_val' may be used uninitialized in this function
Dbg.c:619: warning: passing argument 2 of 'breakpoint_test' discards qualifiers from pointer target type
Dbg.c:242: warning: 'framePtr' may be used uninitialized in this function
Dbg.c:242: note: 'framePtr' was declared here
emake failed
 * ERROR: dev-tcltk/expect-5.45 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   62:  Called call-ebuildshell 'src_compile'
 *   environment, line  469:  Called src_compile
 *   environment, line 2783:  Called _eapi2_src_compile
 *     ebuild.sh, line  673:  Called die

 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-tcltk/expect-5.45',
 * the complete build log and the output of 'emerge -pqv =dev-tcltk/expect-5.45'.
 * The complete build log is located at '/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/temp/build.log'.
 * The ebuild environment file is located at '/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/temp/environment'.
 * S: '/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/work/expect5.45'


emerge --info:

Portage 2.2.01.19011-prefix (prefix/darwin/macos/10.7/x64, gcc-4.2.1, unavailable, 11.0.1 x86_64)
=================================================================
System uname: Darwin-11.0.1-x86_64-i386-64bit
Timestamp of tree: Thu, 04 Aug 2011 09:07:22 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin11.0 [disabled]
app-shells/bash:      4.2_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:      2.6.5-r2, 2.7.2
dev-util/pkgconfig:   0.25-r2
sys-devel/autoconf:   2.68
sys-devel/automake:   1.10.3, 1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:    2.4-r01.1
sys-devel/make:       3.82
Repositories: gentoo_prefix local
Installed sets: @preserved-rebuild
ACCEPT_KEYWORDS="amd64 amd64-linux ppc-macos x64-macos x86 x86-linux x86-macos ~amd64 ~amd64-linux ~ppc-macos ~x64-macos ~x86 ~x86-linux ~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin11"
CFLAGS="-O2 -fno-math-errno -march=core2 -msse4 -msse4.1 -msse4.2 -mfpmath=sse -pipe"
CHOST="x86_64-apple-darwin11"
CONFIG_PROTECT="/etc /opt/gentoo/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo /opt/gentoo/etc/ca-certificates.conf /opt/gentoo/etc/env.d /opt/gentoo/etc/env.d/java/ /opt/gentoo/etc/fonts/fonts.conf /opt/gentoo/etc/gconf /opt/gentoo/etc/revdep-rebuild /opt/gentoo/etc/terminfo"
CXXFLAGS="-O2 -fno-math-errno -march=core2 -msse4 -msse4.1 -msse4.2 -mfpmath=sse -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
LINGUAS="en en_GB"
MAKEOPTS="-j5"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X aqua ares bash-completion berkdb bzip2 cairo chroot common-lisp coreaudio cracklib cxx expat faac faad fftw flac fontconfig gdbm gmp graphviz gs gtk hpn iconv icu idea ipv6 ithreads java jbig jpeg jpeg2k lcms libedit lzma md5sum mmap mmx mmxext modules mp3 ncurses network nls objc objc++ ogg opengl openmp pcre perl png prefix python rar readline sasl schroedinger slang sndfile speex spell sqlite sqlite3 sse sse2 ssl svg tcl test theora threads tiff tk trace truetype unicode urandom utils vdpau vim-syntax vorbis wmf x64-macos xcb xinerama xml xpm xscreensaver xvid zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stuart Shelton 2011-08-17 21:22:54 UTC
... so, looking at this again the actual error occurs further back in the logs:

x86_64-apple-darwin11-gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TERMIOS=1 -DHAVE_TIOCGWINSZ_IN_TERMIOS_H=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/opt/gentoo/usr/lib/expect5.45\" -DEXECSCRIPTDIR=\"/opt/gentoo/usr/lib/expect5.45\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/opt/gentoo/usr/lib/tcl8.5/include/generic" -I"/opt/gentoo/usr/lib/tcl8.5/include/unix"    -O2 -fno-math-errno -march=core2 -msse4 -mfpmath=sse -pipe -pipe  -Os -Wall -fno-common   -c `echo pty_termios.c` -o pty_termios.o
pty_termios.c:13:17: error: pty.h: No such file or directory

... and indeed in pty_termios.c, <pty.h> is included unconditionally - and doesn't appear to exist on OS X.

How about this:

--- pty_termios.c.dist	2011-08-17 22:16:38.000000000 +0100
+++ pty_termios.c	2011-08-17 22:21:29.000000000 +0100
@@ -10,7 +10,11 @@
 #include <stdio.h>
 #include <signal.h>
 #include <string.h>
-#include <pty.h>
+#ifdef __APPLE__
+# include <util.h>
+#else
+# include <pty.h>
+#endif
 
 #if defined(SIGCLD) && !defined(SIGCHLD)
 #define SIGCHLD SIGCLD
Comment 2 Stuart Shelton 2011-08-17 21:30:27 UTC
Okay, that works but the build now fails with:


>>> Completed installing expect-5.45 into /opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/image/opt/gentoo/

ecompressdir: bzip2 -9 /opt/gentoo/usr/share/man
 * QA Notice: invalid reference to libexpect5.45.dylib in /opt/gentoo/usr/bin/expect
 * QA Notice: invalid self-reference install_name libexpect5.45.dylib in /opt/gentoo/usr/lib/expect5.45/libexpect5.45.dylib
 * ERROR: dev-tcltk/expect-5.45 failed:
 *   invalid install_name found, your application or library will crash at runtime
 * 
 * Call stack:
 *   misc-functions.sh, line 1718:  Called install_qa_check
 *   misc-functions.sh, line  187:  Called install_qa_check_macho
 *   misc-functions.sh, line  997:  Called die
 * The specific snippet of code:
 *   		has allow_broken_install_names ${FEATURES} || \
 *   			die "invalid install_name found, your application or library will crash at runtime"
 * 
 * If you need support, post the output of 'emerge --info =dev-tcltk/expect-5.45',
 * the complete build log and the output of 'emerge -pqv =dev-tcltk/expect-5.45'.
 * This ebuild is from an overlay named 'local': '/opt/gentoo/usr/local/portage/'
 * The complete build log is located at '/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/temp/build.log'.
 * The ebuild environment file is located at '/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/temp/environment'.
 * S: '/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.45/work/expect5.45'
!!! post install failed; exiting.
Comment 3 Stuart Shelton 2011-08-17 21:52:27 UTC
Okay, I'm not sure if this is a 100% fix - but this patch:

--- Makefile.in.dist	2011-08-17 22:33:54.000000000 +0100
+++ Makefile.in	2011-08-17 22:35:53.000000000 +0100
@@ -148,7 +148,7 @@
 RANLIB		= @RANLIB@
 RANLIB_STUB	= @RANLIB_STUB@
 SHLIB_CFLAGS	= @SHLIB_CFLAGS@
-SHLIB_LD	= @SHLIB_LD@ $(LDFLAGS)
+SHLIB_LD	= @SHLIB_LD@ $(LDFLAGS) -install_name $(pkglibdir)/$(PKG_LIB_FILE)
 SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
 STLIB_LD	= @STLIB_LD@
 TCL_DEFS	= @TCL_DEFS@

... allows expect-5.45 to install on darwin11 with the only notice being:

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * exp_win.c:85: warning: implicit declaration of function 'ioctl'

... which doesn't appear to prevent expect from working.
Comment 4 wxjeacen 2012-12-28 05:41:32 UTC
I have the same issue on build expect package, But not sure if the same problem.

Here is emerge info

Funtoo ~ # emerge --info '=dev-tcltk/expect-5.45'
Portage 2.3.5-r5 (funtoo/1.0/linux-gnu/arch/x86-32bit, gcc-4.6.3, glibc-2.15-r3, 3.6.8-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.6.8-gentoo-i686-Intel-R-_Xeon-R-_CPU_X3363_@_2.83GHz-with-gentoo-2.2.0
Timestamp of tree: Thu, 27 Dec 2012 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1000
dev-lang/python:          2.7.3-r1000, 3.2.3-r1000
dev-util/cmake:           2.8.10.2
sys-apps/baselayout:      2.2.0-r3
sys-apps/openrc:          0.10.2-r7
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.5-r1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=generic -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -mtune=generic -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X aac acl aiglx alsa aoss asf berkdb bzip2 cracklib crypt cxx dbus dvd fam gdbm gif hal iconv icu java jpeg kde kdeenablefinal mad modules mp3 mp4 mudflap ncurses new-login nls nptl nsplugin opengl openmp pam pcre pdf png python qt3support qt4 rdesktop readline resolvconf samba spell sqlite ssl svg symlink tcpd threads tiff truetype unicode vidix win32codecs x264 x86 xcomposite xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ens 1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_ABIS="2.7 3.2" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vmware vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 5 wxjeacen 2012-12-28 05:46:18 UTC
And here is build error log:


rm -f libexpect5.45.so
i686-pc-linux-gnu-gcc -shared -O2 -march=i686 -mtune=generic -pipe -pipe -O2 -fomit-frame-pointer -Wall -fPIC  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--export-dynamic   -o libexpect5.45.so exp_command.o expect.o exp_inter.o exp_regexp.o exp_tty.o exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_strf.o exp_console.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o exp_chan.o Dbg.o pty_termios.o exp_select.o exp_event.o -lutil -lieee -lm -Wl,-rpath,/usr/lib -ltclstub8.5
: libexpect5.45.so
i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_STROPTS_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_PTY_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_PTMX=1 -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/usr/lib/expect5.45\" -DEXECSCRIPTDIR=\"/usr/lib/expect5.45\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/lib/tcl8.5/include/generic" -I"/usr/lib/tcl8.5/include/unix"    -O2 -march=i686 -mtune=generic -pipe -pipe -O2 -fomit-frame-pointer -Wall -fPIC  -c `echo exp_main_exp.c` -o exp_main_exp.o
i686-pc-linux-gnu-gcc \
        -O2 -march=i686 -mtune=generic -pipe -pipe -O2 -fomit-frame-pointer -Wall -fPIC  \
        -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--export-dynamic  \
        -o expect exp_main_exp.o \
        -L/var/tmp/portage/dev-tcltk/expect-5.45/work/expect5.45 -lexpect5.45 \
        -ltcl8.5 \
        -ldl  -lieee -lm \
        :/usr/lib \
        :/usr/lib
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
i686-pc-linux-gnu-gcc: error: :/usr/lib: No such file or directory
gmake: *** [expect] Error 1
Comment 6 Otto A. Schell 2012-12-28 23:38:05 UTC
same on linux ppc 
…
…
powerpc-unknown-linux-gnu-gcc \
        -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -pipe -O2 -fomit-frame-pointer -Wall -fPIC
\
        -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic  \
        -o expect exp_main_exp.o \
        -L/var/tmp/paludis/dev-tcltk-expect-5.45/work/expect5.45 -lexpect5.45 \
        -ltcl8.5 \
        -ldl  -lieee -lm \
        :/usr/lib \
        :/usr/lib
powerpc-unknown-linux-gnu-gcc: error: :/usr/lib: No such file or directory
powerpc-unknown-linux-gnu-gcc: error: :/usr/lib: No such file or directory
make: *** [expect] Error 1
…
–

This :/usr/lib 
with the trailing colon - is that ok?

Seems to be generated out of $PATH or alike and something went wrong…?
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-12-30 11:41:49 UTC
@prefix maintainers: I don't think this is related to prefix at all, unless one of your patches leaked also to gentoo-x86 and broke it there as well

See bug 449134 and mark duplicate after verify
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-12-30 11:43:13 UTC
In fact, Comment #0 and Comment #1 are this bug, and the following comments are duplicate of another bug... why don't people file new bugs for new issues? :-(
Comment 9 Fabian Groffen gentoo-dev 2012-12-30 11:49:44 UTC
(In reply to comment #8)
> In fact, Comment #0 and Comment #1 are this bug, and the following comments
> are duplicate of another bug... why don't people file new bugs for new
> issues? :-(

yup, this bug is ours (prefix), targetting darwin
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2013-01-09 16:40:09 UTC
Removing the block. If its an tcl/tk issue please add maintainers.
Comment 11 Fabian Groffen gentoo-dev 2017-11-14 14:18:30 UTC
Closing this bug, things have changed since