Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287072 - dev-tcltk/expect-5.44.1 fails to build on OS 10.6 with QA errors
Summary: dev-tcltk/expect-5.44.1 fails to build on OS 10.6 with QA errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 12:36 UTC by Stuart Shelton
Modified: 2009-10-15 18:49 UTC (History)
0 users

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


Attachments
Updated patch for Darwin/OSX (expect-5.44.1-darwin.patch,365 bytes, patch)
2009-10-09 14:16 UTC, Stuart Shelton
Details | Diff
expect build log, ending with QA warnings (build.log,68.51 KB, text/plain)
2009-10-09 14:34 UTC, Stuart Shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-09-30 12:36:56 UTC
Firstly, the 'expect-5.43.0-darwin.patch' now fails to apply, as Makefile.in has changed significantly.

With this patch removed, expect fails with:

i686-apple-darwin9-gcc -pipe \                                                                                                                                                                                                    
                -O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe  -Wall -Wno-implicit-int -fno-common \
                 \                                                                                                                                                                                                
                -fno-common \                                                                                                                                                                                      
                 -headerpad_max_install_names -Wl,-search_paths_first  \                                                                                                                                          
                -o expectk exp_main_tk.o \                                                                                                                                                                        
                -L/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.44.1/work/expect-5.44.1 -lexpect5.44.1 \                                                                                                         
                -L/opt/gentoo/usr/lib -ltk8.5 \                                                                                                                                                                   
                -L/opt/gentoo/usr/lib -ltcl8.5 \                                                                                                                                                                     
                   -lpthread -framework CoreFoundation -framework Carbon -framework IOKit   -lpthread -framework CoreFoundation  \                                                                                 
                 \                                                                                                                                                                                                                                                                                                                                                                                                   

Undefined symbols:                                                                                                                                                                                   
  "_XSynchronize", referenced from:                                                                                                                                                                      
      _Tk_Init2 in exp_main_tk.o                                                                                                                                                                   
ld: symbol(s) not found                                                                                                                                                                            
collect2: ld returned 1 exit status                                                                                                                                                                
make: *** [expectk] Error 1

emerge --info:

Portage 2.2.00.14200-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 10.0.0 x86_64)
=================================================================
System uname: Darwin-10.0.0-x86_64-i386-32bit
Timestamp of tree: Wed, 30 Sep 2009 11:33:09 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r01.4
dev-python/pycrypto: 2.0.1-r8
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.9.6-r2, 1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.1
ACCEPT_KEYWORDS="x86-macos ~x86-macos"
CBUILD="i686-apple-darwin9"
CFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_GB"
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 coreaudio cracklib expat flac fontconfig gdbm gmp graphviz gtk hpn iconv idea ipv6 ithreads java jbig jpeg jpeg2k lcms lzma md5sum mmap mmx mmxext modules ncurses nls objc objc++ ogg openmp pcre perl png prefix python readline sasl slang speex spell sqlite3 sse sse2 ssl svg tcl test threads tiff trace truetype unicode urandom utils vim-syntax x86-macos xinerama xml xpm 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 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stuart Shelton 2009-09-30 12:39:11 UTC
(This happens regardless of whether USE="X" or USE="-X")
Comment 2 Stuart Shelton 2009-10-02 13:46:46 UTC
I noticed that I was using the wrong profile, so have now updated to the 10.6/x64 profile.

Having rebuilt the system for 64bit, expect now fails with:

rm: cannot remove `/opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.44.1/image/opt/gentoo//usr/lib//lib.a': No such file or directory
>>> Completed installing expect-5.44.1 into /opt/gentoo/var/tmp/portage/dev-tcltk/expect-5.44.1/image/opt/gentoo/

 * QA Notice: Unrecognized configure options:
 * 
 *      configure: WARNING: unrecognized options: --with-tclinclude
 *      configure: WARNING: unrecognized options: --with-tclinclude
ecompressdir: bzip2 -9 /opt/gentoo/usr/share/man
 * QA Notice: invalid reference to libexpect5.44.1.dylib in /opt/gentoo/usr/bin/expect
 * QA Notice: invalid reference to libexpect5.44.1.dylib in /opt/gentoo/usr/bin/expectk
 * QA Notice: invalid self-reference install_name libexpect5.44.1.dylib in /opt/gentoo/usr/lib/expect5.44.1/libexpect5.44.1.dylib
 * ERROR: dev-tcltk/expect-5.44.1 failed:
 *   invalid install_name found, your application or library will crash at runtime
 * 
 * Call stack:
 *       misc-functions.sh:1023: <call install_qa_check>
 *       misc-functions.sh: 650:                hasq allow_broken_install_names ${FEATURES} || \
 *                      die "invalid install_name found, your application or library will crash at runtime"
Comment 3 Stuart Shelton 2009-10-02 13:52:12 UTC
Updated 10.6 emerge --info:

Portage 2.2.00.14200-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.0.0 x86_64)
=================================================================
System uname: Darwin-10.0.0-x86_64-i386-64bit
Timestamp of tree: Fri, 02 Oct 2009 08:51:47 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r2
dev-python/pycrypto: 2.0.1-r8
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
ACCEPT_KEYWORDS="x64-macos x86-macos ~x64-macos ~x86-macos"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
CHOST="x86_64-apple-darwin10"
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/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.1 -mfpmath=sse -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_GB"
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 coreaudio cracklib expat flac fontconfig gdbm gmp graphviz gtk hpn iconv idea ipv6 ithreads java jbig jpeg jpeg2k lcms lzma md5sum mmap mmx mmxext modules ncurses nls objc objc++ ogg openmp pcre perl png prefix python readline sasl slang speex spell sqlite3 sse sse2 ssl svg tcl test threads tiff trace truetype unicode urandom utils vim-syntax x64-macos xinerama xml xpm 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 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Fabian Groffen gentoo-dev 2009-10-02 20:14:13 UTC
Did you, or didn't you port the failing patch?  It most probably solves the invalid reference problem.
Comment 5 Stuart Shelton 2009-10-09 14:16:15 UTC
Created attachment 206528 [details, diff]
Updated patch for Darwin/OSX


I hadn't, I'm afraid.

This patch appears to do the job - there are still a ton of QA warnings, but the package does install successfully.
Comment 6 Stuart Shelton 2009-10-09 14:34:57 UTC
Created attachment 206533 [details]
expect build log, ending with QA warnings


FWIW, here's the bulid log.

It looks as if none of these QA warnings is actually anything to worry about - but there are a lot of them ;)
Comment 7 Fabian Groffen gentoo-dev 2009-10-15 18:49:37 UTC
I've added your patch, many thanks!