Hi!

I am building packages for Firewall Builder (www.fwbuilder.org) and get them to the stage
when they build OK on jaguar with fink. However libxml2 included there have certain bug, which
prevents our software from working. To remedy this I decided to go "bleeeding
edge" and to update fink to 'cvs' version. I did 'fink selfupdate-cvs' followed
by 'fink update-all'. It all went OK. Now our product compiles OK, but resultig
executables won't start. Here is sample error:

zembla /Users/lord/src/fwbuilder/src/ipt> ./fwb_ipt
dyld: ./fwb_ipt Undefined symbols:
__ZNSs4_Rep11_S_terminalE
__ZSt4cerr
__ZSt4cout
__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
__ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZTVN10__cxxabiv121__vmi_class_type_infoE
___cxa_pure_virtual
___gxx_personality_v0
__ZNSs4_Rep11_S_terminalE
__ZNSsD1Ev
__ZSt4cerr
__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZTVN10__cxxabiv121__vmi_class_type_infoE
___cxa_pure_virtual
___gxx_personality_v0
Trace/BPT trap
zembla /Users/lord/src/fwbuilder/src/ipt>


For reference here is how we compile:

ccache g++ -DLOCALEDIR=\"/Users/lord/tmp/fwb/share/locale\" -DPACKAGE=\"fwbuilder\" -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I/sw/include -DHAVE_CONFIG_H -I/sw/lib/sigc++-1.0/include -I/sw/include/sigc++-1.0 -I/sw/lib/gtkmm/include -I/sw/include -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -I/sw/lib/sigc++-1.0/include -I/sw/include/sigc++-1.0 -I/Users/lord/tmp/fwb/include -I/sw/include/glib-1.2 -I/sw/lib/glib/include -D_REENTRANT -I/sw/include/libxml2 -I/sw/include -I/sw/include/libxml2 -I/sw/include -I/sw/include -I/sw/include/libxml2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -D_REENTRANT -I../gui/ -c NATCompiler_ipt.cc

and how we link:

ccache g++ -o fwb_ipt ipt.o combinedAddress.o PolicyCompiler_ipt.o PolicyCompiler_ipt_writers.o PolicyCompiler_ipt_optimizer.o NATCompiler_ipt.o NATCompiler_ipt_writers.o OSConfigurator_linux24.o OSData.o -L/Users/lord/tmp/fwb/lib -L/sw/lib -lfwcompiler -lfwbuilder -lgthread -lglib -lpthread -lxslt -lxml2 -lz -liconv -lm -lssl -lcrypto -L/sw/lib -lxslt -lxml2 -lz -liconv -lm -L/sw/lib -lxml2 -lz -L/sw/lib -liconv -lm -L/sw/lib -lsigc -lpthread -L/sw/lib -lgthread -lglib -lpthread -lintl -liconv -L/sw/lib -lpoll
ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
zembla /Users/lord/src/fwbuilder/src/ipt>

You suggestions are appreciated. I am really puzzled here. When I grep for unresolved symbols,
I can see them referenced in my .o files, so they come not from external libraries. I've read some
posts on the net that this kind of issue could be related to g++2 and g++3 mixum, but we compile
and link all our code with g++3. I am really puzzled here.

Also, I do not understand, why there are 2 copies of libstdc++ on my system:

zembla /Users/lord/src/fwbuilder/src/ipt> locate libstdc++/usr/lib/gcc/darwin/2.95.2/libstdc++.a
/usr/lib/gcc/darwin/3.1/libstdc++.a
/usr/lib/libstdc++.a
zembla /Users/lord/src/fwbuilder/src/ipt>


which seems to be same:

zembla /Users/lord/src/fwbuilder/src/ipt> diff /usr/lib/gcc/darwin/3.1/libstdc++.a /usr/lib/libstdc++.a
zembla /Users/lord/src/fwbuilder/src/ipt>

Sincerely,
Vadim

--
"La perfection est atteinte non quand il ne reste rien a ajouter, mais
quand il ne reste rien a enlever." (Antoine de Saint-Exupery)



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to