Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 428370

Summary: app-shells/bash-4.2_29 fails to emerge, "undefined symbols for architecture x86_64"
Product: Gentoo/Alt Reporter: Charles Boyd <csboyd07>
Component: Mac OSXAssignee: Gentoo Prefix <prefix>
Status: RESOLVED INVALID    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: requested information from portage failure

Description Charles Boyd 2012-07-27 20:39:25 UTC
Created attachment 319448 [details]
requested information from portage failure

The make line is:

make[1]: Leaving directory `/Users/charles/Gentoo/var/tmp/portage/app-shells/bash-4.2_p29/work/bash-4.2/lib/tilde'
rm -f bash
gcc -m64 -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh -Wl,-search_paths_first -L/Users/charles/Gentoo/usr/lib -L/Users/charles/Gentoo/lib    -march=nocona -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o  dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o  list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o  -lbuiltins -lglob -lsh    -ltilde   -liconv  -ldl 
Undefined symbols for architecture x86_64:
  "_enable_hostname_completion", referenced from:
      _shopt_enable_hostname_completion in libbuiltins.a(shopt.o)
ld: symbol(s) not found for architecture x86_64


Then I get the error message:

 * Messages for package app-shells/bash-4.2_p29:

 * ERROR: app-shells/bash-4.2_p29 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2367:  Called die
 * The specific snippet of code:
 *       emake || die;


I am following the instructions from the documentation, and get up to this point but cannot find a workaround.

Thanks!
Comment 1 Charles Boyd 2012-07-27 20:49:11 UTC
By the way, I did make a tiny hack on the misc-function.sh script to stop ncurses build from failing.

charles[bin]$ grep -n "eqawarn \"(NOT) Aborting" misc-functions.sh 
1001: eqawarn "(NOT) Aborting due to QA concerns: invalid shebangs found"

I changed "die" to "eqawarn" so the build would keep going.

This is the error I was getting from that:

>>> Failed to emerge sys-libs/ncurses-5.9-r2, Log file:

>>>  '/Users/charles/Gentoo/var/tmp/portage/sys-libs/ncurses-5.9-r2/temp/build.log'

 * Messages for package sys-libs/ncurses-5.9-r2:

 * gen_usr_ldscript: unable to read install_name from libcurses.dylib
 * gen_usr_ldscript: unable to read install_name from libncurses.dylib
 * ERROR: sys-libs/ncurses-5.9-r2 failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 1895:  Called install_qa_check
 *   misc-functions.sh, line  253:  Called install_qa_check_prefix
 *   misc-functions.sh, line 1001:  Called die
 * The specific snippet of code:
 *   		die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/ncurses-5.9-r2',
 * the complete build log and the output of 'emerge -pqv =sys-libs/ncurses-5.9-r2'.
 * The complete build log is located at '/Users/charles/Gentoo/var/tmp/portage/sys-libs/ncurses-5.9-r2/temp/build.log'.
 * The ebuild environment file is located at '/Users/charles/Gentoo/var/tmp/portage/sys-libs/ncurses-5.9-r2/temp/environment'.
 * Working directory: '/Users/charles/Gentoo/var/tmp/portage/sys-libs/ncurses-5.9-r2/image'
 * S: '/Users/charles/Gentoo/var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9'
Comment 2 Fabian Groffen gentoo-dev 2012-07-28 08:21:54 UTC
dude, that check + die is in there for a good reason.

You need to follow the instructions very closely.  If they don't work, report bugs on that.  Followup bugs on things not working earlier down the line are not interesting at all.