link error???
hello
I am trying to compile the vorbis tools on my darwin7.2 system. Making of libao, libvorbis and libogg went fine, with no compile errors at all. but when I try to compile vorbis tools I get an unresolved symbol error: ld: undefined symbols: _dlsym_auto_underscore and make dies. the funny thing is, I found where this symbol should be (somewhere in libao.a if I saw right) and the library is specified on the command line which is supposed to link the binaries. it looks somewhat like this: gcc -fno-common -O4 ....... -lm -logg -vorbis -lao -lpthread ... and so on.... I also seem to have other link problems with ncurses for example... very strange. My problem is, that i have a linker on the system (called "ld") but it seems not to link what it should... on the other hand, as I mentioned, 3 other packages already compiled and linked with o problems at all... my question: how to make gcc to link the binaries with no errors (because the symbol should be there somewhere) or how to do something what "ldconfig" on linux systems does? Cos I have no ldconfig. could anyone tell me what package I need to look for to get "gnu ld" (the one which comes with ldconfig)? Or what else should I do? Thanks raven |
when all else fails(trying to pass gcc linker options, man gcc) i sometimes have to do this:
'cd /usr/path/to/shared/libs' 'grep name_of_symbol_here *' this will spit out all the files that contain that symbol. then you can just pass the shared library file to gcc directly: 'gcc source.c lib_your_library.so' and ld will resolve the symbols correctly. |
thanks, but i already tryed this. it still doesnt compile...
thats the joke of all this: the libs ARE defined on the gcc command line, and still... no use any other idea? raven |
All times are GMT -5. The time now is 09:12 PM. |