Link Failure with 1.2.1 and Mac OS X 10.3.3
Hi, The latest still fails to link on Mac OS 10.3.3. Build log is below. Any suggestions? Best Wishes, Greg if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC -I/opt/local/include -I/opt/local/include -I/opt/local/include -g -O2 -MT ginsh_lexer.o -MD -MP -MF ".deps/ginsh_lexer.Tpo" \ -c -o ginsh_lexer.o `test -f 'ginsh_lexer.cc' || echo './'`ginsh_lexer.cc; \ then mv -f ".deps/ginsh_lexer.Tpo" ".deps/ginsh_lexer.Po"; \ else rm -f ".deps/ginsh_lexer.Tpo"; exit 1; \ fi /bin/sh ../libtool --mode=link g++ -g -O2 -L/opt/local/lib -o ginsh ginsh_parser.o ginsh_lexer.o ../ginac/libginac.la -lreadline -lncurses -L/opt/local/lib -lcln -lgmp mkdir .libs g++ -g -O2 -o .libs/ginsh ginsh_parser.o ginsh_lexer.o -Wl,-bind_at_load -L/opt/local/lib ../ginac/.libs/libginac.dylib -lreadline -lncurses /opt/local/lib/libcln.dylib -lstdc++ /opt/local/lib/libgmp.dylib ld: warning multiple definitions of symbol _PC /opt/local/lib/libreadline.dylib(terminal.so) definition of _PC /usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC ld: warning multiple definitions of symbol _BC /opt/local/lib/libreadline.dylib(terminal.so) definition of _BC /usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC ld: warning multiple definitions of symbol _UP /opt/local/lib/libreadline.dylib(terminal.so) definition of _UP /usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP ld: Undefined symbols: __GLOBAL__I_cl_module__cl_C_ring__firstglobalfun __GLOBAL__I_cl_module__cl_DF_globals__firstglobalfun __GLOBAL__I_cl_module__cl_FF_globals__firstglobalfun __GLOBAL__I_cl_module__cl_GV_I__firstglobalfun __GLOBAL__I_cl_module__cl_GV_number__firstglobalfun __GLOBAL__I_cl_module__cl_I_ring__firstglobalfun __GLOBAL__I_cl_module__cl_LF_globals__firstglobalfun __GLOBAL__I_cl_module__cl_MI__firstglobalfun __GLOBAL__I_cl_module__cl_RA_ring__firstglobalfun __GLOBAL__I_cl_module__cl_R_ring__firstglobalfun __GLOBAL__I_cl_module__cl_SV_number__firstglobalfun __GLOBAL__I_cl_module__cl_SV_ringelt__firstglobalfun __GLOBAL__I_cl_module__cl_UP__firstglobalfun __GLOBAL__I_cl_module__cl_UP_no_ring__firstglobalfun __GLOBAL__I_cl_module__cl_ieee__firstglobalfun __GLOBAL__I_cl_module__cl_no_ring__firstglobalfun __GLOBAL__I_cl_module__cl_prin_globals__firstglobalfun __GLOBAL__I_cl_module__cl_random_def__firstglobalfun __GLOBAL__I_cl_module__cl_st_null__firstglobalfun __GLOBAL__I_cl_module__cl_symbol__firstglobalfun make[2]: *** [ginsh] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Target com.apple.build returned: shell command "cd "/Users/gwright/src/darwinports/dports/math/GiNaC/work/GiNaC-1.2.1" && make all" returned error 2 Command output: ld: warning multiple definitions of symbol _BC /opt/local/lib/libreadline.dylib(terminal.so) definition of _BC /usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC ld: warning multiple definitions of symbol _UP /opt/local/lib/libreadline.dylib(terminal.so) definition of _UP /usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP ld: Undefined symbols: __GLOBAL__I_cl_module__cl_C_ring__firstglobalfun __GLOBAL__I_cl_module__cl_DF_globals__firstglobalfun __GLOBAL__I_cl_module__cl_FF_globals__firstglobalfun __GLOBAL__I_cl_module__cl_GV_I__firstglobalfun __GLOBAL__I_cl_module__cl_GV_number__firstglobalfun __GLOBAL__I_cl_module__cl_I_ring__firstglobalfun __GLOBAL__I_cl_module__cl_LF_globals__firstglobalfun __GLOBAL__I_cl_module__cl_MI__firstglobalfun __GLOBAL__I_cl_module__cl_RA_ring__firstglobalfun __GLOBAL__I_cl_module__cl_R_ring__firstglobalfun __GLOBAL__I_cl_module__cl_SV_number__firstglobalfun __GLOBAL__I_cl_module__cl_SV_ringelt__firstglobalfun __GLOBAL__I_cl_module__cl_UP__firstglobalfun __GLOBAL__I_cl_module__cl_UP_no_ring__firstglobalfun __GLOBAL__I_cl_module__cl_ieee__firstglobalfun __GLOBAL__I_cl_module__cl_no_ring__firstglobalfun __GLOBAL__I_cl_module__cl_prin_globals__firstglobalfun __GLOBAL__I_cl_module__cl_random_def__firstglobalfun __GLOBAL__I_cl_module__cl_st_null__firstglobalfun __GLOBAL__I_cl_module__cl_symbol__firstglobalfun make[2]: *** [ginsh] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Warning: the following items did not execute (for GiNaC): com.apple.build ranger>
On Mon, 26 Apr 2004, Gregory Wright wrote:
The latest still fails to link on Mac OS 10.3.3. Build log is below. Any suggestions?
It appears like the compiler fails to emit code for the PROVIDE/REQUIRE macros defined in cln/modules.h or something similar. This is a known bug in your environment. I'm still waiting for somebody knowledgeable about the MacOS X toolchain who understands the problem and can provide a patch for CLN. Regards -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>
participants (2)
-
Gregory Wright
-
Richard B. Kreckel