Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Building with cmake on OSX

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Wed, 23 Sep 2009 14:40:38 +0200
Hi,

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


-- 
Stig Bjørlykke