On Wed, Sep 23, 2009 at 02:40:38PM +0200, Stig Bj?rlykke wrote:
> I'm trying to build with cmake on OSX, but I get a lot of unresolved
> symbols errors when linking.
> Does anyone know how we should fix this?
>
>
> Linking C shared library ../lib/libwsutil.dylib
> cd /Users/stig/Development/wireshark/wsutil && /opt/local/bin/cmake -E
> cmake_link_script CMakeFiles/wsutil.dir/link.txt --verbose=1
> /usr/bin/gcc -dynamiclib -headerpad_max_install_names -o
> ../lib/libwsutil.dylib -install_name
> /Users/stig/Development/wireshark/lib/libwsutil.dylib
> CMakeFiles/wsutil.dir/mpeg-audio.c.o
> CMakeFiles/wsutil.dir/privileges.c.o
> CMakeFiles/wsutil.dir/str_util.c.o CMakeFiles/wsutil.dir/type_util.c.o
> Undefined symbols:
> "_g_assertion_message_expr", referenced from:
> _started_with_special_privs in privileges.c.o
> "_g_ascii_toupper", referenced from:
> _ascii_strup_inplace in str_util.c.o
> "_g_strdup", referenced from:
> _get_cur_username in privileges.c.o
> _get_cur_username in privileges.c.o
> _get_cur_groupname in privileges.c.o
> _get_cur_groupname in privileges.c.o
> "_g_ascii_tolower", referenced from:
> _ascii_strdown_inplace in str_util.c.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libwsutil.dylib] Error 1
> make[1]: *** [wsutil/CMakeFiles/wsutil.dir/all] Error 2
> make: *** [all] Error 2
Hopefully fixed in 30091. I'll need to check whether I made the same mistake
for the other libs as well - hopefully within an hour.
Ciao
Joerg
--
Joerg Mayer <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.