#15952 closed defect (duplicate)
emacs-23.0.0_NS-9.0rc3 build fails at link stage
Reported by: | anewman@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | emacs-app emacs-23.0.0_NS-9.0rc3 emacs-23.0.0_NS fails link-stage ld | Cc: | cssdev, columbusmonkey@… |
Port: |
Description
I have been trying to build/install emacs-app 23.0.0_NS-9.0rc3, Revision 1, aqua/emacs-app (Variants: universal, darwin_7, darwin_8) using MacPorts 1.6.0 running on Leopard (10.5.3 & 10.5.4). The compiler suite is Apple's gcc 4.0.1 from XCode 3.0. The source file was emacs-23.0.0_NS-9.0rc3.tar.bz2 from <http://downloads.sourceforge.net/emacs-app>.
I've submitted a ticket for this per suggestion of Chris.
As far as I can tell all build dependencies have been fulfilled, and ports has certainly stopped sniffing out uninstalled deps for emacs-app.
The build fails at link stage via undefined symbols in the object code with the following output:
<snip...> emacs-23.0.0_NS-9.0rc3.tar.bz2 from http://downloads.sourceforge.net/emacs-appemacs-23.0.0_NS-9.0rc3.tar.bz2 from http://downloads.sourceforge.net/emacs-app Undefined symbols: "_tgetflag", referenced from: _init_tty in term.o _init_tty in term.o _init_tty in term.o Undefined symbols: "_tgetflag", referenced from: _init_tty in term.o _init_tty in term.o _init_tty in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _reset_sys_modes in sysdep.o ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: *** [temacs] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [src] Error 2 *** Compilation failed. *** Please examine the above output to determine what went wrong, edit the configure options in this script (\'compile\') to fix it, and rerun. Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/nextstep" && ./compile " returned error 1 Command output: _tty_raw_cursor_to in term.o _tty_raw_cursor_to in term.o _tty_clear_to_end in term.o _tty_clear_to_end in term.o _tty_clear_to_end in term.o _tty_clear_frame in term.o _tty_clear_frame in term.o _tty_clear_frame in term.o _tty_clear_end_of_line in term.o _tty_clear_end_of_line in term.o _tty_clear_end_of_line in term.o _tty_clear_end_of_line in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _tty_ins_del_lines in term.o _reset_sys_modes in sysdep.o ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: *** [temacs] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [src] Error 2 *** Compilation failed. *** Please examine the above output to determine what went wrong, edit the configure options in this script (\'compile\') to fix it, and rerun.
Superficially, it doesn't look like a missing libncurses problem, since a search for libncurses hows the following currently installed on my system (I recently upgraded both ncurses and ncursesw):
AlexN$ locate libncurses /Applications/Gimp 1.app/Contents/Resources/lib/libncurses.5.dylib /Applications/Gimp 1.app/Contents/Resources/lib/libncurses.dylib.5 /Applications/Gimp.app/Contents/Resources/lib/libncurses.5.dylib /Applications/Gimp.app/Contents/Resources/lib/libncurses.dylib /Applications/VLC.app/Contents/MacOS/modules/libncurses_plugin.dylib /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libncurses.5.dylib /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libncurses.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libncurses.5.4.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libncurses.5.dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libncurses.dylib /Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses.5.dylib /Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses.a /Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses.dylib /Library/Frameworks/Python.framework/Versions/2.5/lib/libncurses_g.a /opt/local/lib/libncurses++.a /opt/local/lib/libncurses++w.a /opt/local/lib/libncurses.5.dylib /opt/local/lib/libncurses.a /opt/local/lib/libncurses.dylib /opt/local/lib/libncursesw.5.dylib /opt/local/lib/libncursesw.a /opt/local/lib/libncursesw.dylib /opt/local/var/macports/software/ncurses/5.6_0/opt/local/lib/libncurses++.a /opt/local/var/macports/software/ncurses/5.6_0/opt/local/lib/libncurses.5.dylib /opt/local/var/macports/software/ncurses/5.6_0/opt/local/lib/libncurses.a /opt/local/var/macports/software/ncurses/5.6_0/opt/local/lib/libncurses.dylib /opt/local/var/macports/software/ncursesw/5.6_1/opt/local/lib/libncurses++w.a /opt/local/var/macports/software/ncursesw/5.6_1/opt/local/lib/libncursesw.5.dylib /opt/local/var/macports/software/ncursesw/5.6_1/opt/local/lib/libncursesw.a /opt/local/var/macports/software/ncursesw/5.6_1/opt/local/lib/libncursesw.dylib /sw/fink/10.4-transitional/stable/main/binary-darwin-powerpc/base/libncurses5-shlibs_5.4-20041023-10_darwin-powerpc.deb /sw/fink/10.4-transitional/stable/main/binary-darwin-powerpc/base/libncurses5_5.4-20041023-10_darwin-powerpc.deb /sw/fink/10.4-transitional/stable/main/finkinfo/base/libncursesw5.info /sw/fink/10.4-transitional/unstable/main/finkinfo/base/libncursesw5.info /sw/fink/debs/libncurses5-shlibs_5.4-20041023-10_darwin-powerpc.deb /sw/fink/debs/libncurses5_5.4-20041023-10_darwin-powerpc.deb /sw/lib/libncurses++.a /sw/lib/libncurses.5.dylib /sw/lib/libncurses.a /sw/lib/libncurses.dylib /sw/lib/libncurses.dylib.5 /sw/lib/libncurses_g.a /sw/lib/ncurses/libncurses.5.dylib /sw/share/doc/libncurses5-shlibs /sw/share/doc/libncurses5-shlibs/ANNOUNCE /sw/share/doc/libncurses5-shlibs/INSTALL /sw/share/doc/libncurses5-shlibs/MANIFEST /sw/share/doc/libncurses5-shlibs/NEWS /sw/share/doc/libncurses5-shlibs/README /sw/share/doc/libncurses5-shlibs/TO-DO /sw/var/lib/dpkg/info/libncurses5-shlibs.list /sw/var/lib/dpkg/info/libncurses5-shlibs.shlibs /Users/AlexN/darwinports/dports/print/teTeX/work/tetex-src-2.0.2/libs/ncurses/lib/libncurses.a /usr/lib/libncurses.5.4.dylib /usr/lib/libncurses.5.dylib /usr/lib/libncurses.dylib
/opt/local is ahead of /sw/fink on my $PATH, so I don't think that's the problem.
The fact that gimp-app installed OK suggests (although doesn't prove) that it's not a problem from the Apple side of MacPorts.
Any thoughts on this problenm grealty appreciated.
TIA, Alex Newman.
Change History (5)
comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | css@… added |
---|---|
Milestone: | → Port Bugs |
comment:2 Changed 16 years ago by cssdev
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #15949 ... this kind of error often occurs when the compiler builds with one version of a library's headers and links against a different version.
comment:4 Changed 16 years ago by columbusmonkey@…
For the record, this may be related to the configure.in, that does the following:
# Use fink packages if available. if test -d /sw/include && test -d /sw/lib; then GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" CPP="${CPP} ${GCC_TEST_OPTIONS}" NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} fi
So I had to (temporarily) rename /sw to get emacs-app to install. Not sure what a proper fix would be.
Assigning to maintainer of emacs-app.