Summary: | dev-tcltk/expect-5.45 fails to build on darwin11 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Stuart Shelton <srcshelton> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | OS X | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=449134 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stuart Shelton
2011-08-04 10:29: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
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.
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. 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 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 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…? @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 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? :-( (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 Removing the block. If its an tcl/tk issue please add maintainers. Closing this bug, things have changed since |