Posted to tcl by venks at Mon Feb 22 06:55:06 GMT 2010view raw
- Link fails default. Fails again with gcc (duh!). Passes with g++.
- Why?
- venkat@everest:../tcl/unix:34> make
- Warning: tclStubInit.c may be out of date.
- Developers may want to run "make genstubs" to regenerate.
- This warning can be safely ignored, do not report as a bug!
- ..
- rm -f libtcl8.6.so
- gcc -shared -o libtcl8.6.so regcomp.o ... -ldl -lsocket -lnsl -lm -Wl,-R,/usr/local/tcl/8.6-head/lib
- gcc -DNDEBUG -O2 -pipe tclAppInit.o -L/export/home/venkat/tcl/unix -ltcl8.6 -ldl -lsocket -lnsl -lm \
- -Wl,-R,/usr/local/tcl/8.6-head/lib -o tclsh
- Undefined first referenced
- symbol in file
- __register_frame_info /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/crtbegin.o (symbol belongs to implicit dependency /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/../../../libgcc_s.so.1)
- __deregister_frame_info /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/crtbegin.o (symbol belongs to implicit dependency /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/../../../libgcc_s.so.1)
- ld: fatal: Symbol referencing errors. No output written to tclsh
- collect2: ld returned 1 exit status
- make: *** [tclsh] Error 1
- venkat@everest:../tcl/unix:35> gcc -DNDEBUG -O2 -pipe tclAppInit.o -L/export/home/venkat/tcl/unix -ltcl8.6 -ldl -lsocket -lnsl -lm -Wl,-R,/usr/local/tcl/8.6-head/lib -lc -o tclsh
- Undefined first referenced
- symbol in file
- __register_frame_info /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/crtbegin.o (symbol belongs to implicit dependency /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/../../../libgcc_s.so.1)
- __deregister_frame_info /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/crtbegin.o (symbol belongs to implicit dependency /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.5.1/3.4.2/../../../libgcc_s.so.1)
- ld: fatal: Symbol referencing errors. No output written to tclsh
- collect2: ld returned 1 exit status
- venkat@everest:../tcl/unix:36> g++ -DNDEBUG -O2 -pipe tclAppInit.o -L/export/home/venkat/tcl/unix -ltcl8.6 -ldl -lsocket -lnsl -lm -Wl,-R,/usr/local/tcl/8.6-head/lib -lc -o tclsh
- venkat@everest:../tcl/unix:37>