Le 24 sept. 2010 à 15:55, Joerg Mayer a écrit :
> Btw, can you please provide me with a log what and how things fail when
> you build with "set(LINK_MODE_MODULE MODULE)" instead of SHARED?
This is the log with LINK_MODE_MODULE set to MODULE :
Linking C shared module ../../lib/asn1.so
cd /Users/laurent/Desktop/wireshark/build/plugins/asn1 && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/asn1.dir/link.txt --verbose=1
/usr/bin/gcc -bundle -headerpad_max_install_names -compatibility_version 1.5.0 -o ../../lib/asn1.1.5.0.so CMakeFiles/asn1.dir/plugin.c.o CMakeFiles/asn1.dir/packet-asn1.c.o CMakeFiles/asn1.dir/asn1.c.o ../../lib/libwireshark.dylib ../../lib/libwiretap.dylib /usr/lib/libz.dylib ../../lib/libwsutil.dylib /usr/lib/libpcre.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libintl.dylib /usr/lib/libpcap.dylib /opt/local/lib/libcares.dylib /usr/lib/libkrb5.dylib /opt/local/lib/libgcrypt.dylib /opt/local/lib/libgpg-error.dylib /opt/local/lib/libgnutls.dylib /opt/local/lib/libsmi.dylib /usr/lib/libm.dylib /opt/local/lib/liblua.a
i686-apple-darwin10-gcc-4.2.1: -compatibility_version only allowed with -dynamiclib
make[2]: *** [lib/asn1.1.5.0.so] Error 1
make[1]: *** [plugins/asn1/CMakeFiles/asn1.dir/all] Error 2
make: *** [all] Error 2
> What is the exact build environment you are using: gcc + make? If so:
> Gnu make or some Apple provided make?
I use gcc and make bundled with Xcode 3.2.3
/usr/bin/gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
/usr/bin/make --version
GNU Make 3.81
...
This program built for i386-apple-darwin10.0
> I'd love to add OSX with one or two build environments as fully supported,
> but that requires that things work first ;-)
:-)
H.sivank