Version: 4.3.75 (using Devel) Compiler: gcc 4.4.1 LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro" OS: Linux Installed from: Compiled sources Linking CXX shared library ../../lib/libsmokeakonadi.so CMakeFiles/smokeakonadi.dir/smokedata.o: In function `init_akonadi_Smoke': /home/fwang/rpm/BUILD/kdebindings-4.3.75svn1048496/build/smoke/akonadi/smokedata.cpp:5588: undefined reference to `init_qt_Smoke()' /home/fwang/rpm/BUILD/kdebindings-4.3.75svn1048496/build/smoke/akonadi/smokedata.cpp:5589: undefined reference to `init_kde_Smoke()' collect2: ld returned 1 exit status make[2]: *** [lib/libsmokeakonadi.so.2.1.0] Error 1 make[1]: *** [smoke/akonadi/CMakeFiles/smokeakonadi.dir/all] Error 2 make: *** [all] Error 2
That's strange, I can't see why this error could happen. We link to both smokeqt and smokekde. Do you use any 'unusual' visibility settings? For determining whether the build is done with visibility support, we currently check for "-fvisibility" being present in CMAKE_CXX_FLAGS. That should be sufficient, but I may be wrong.
CFLAGS="${CFLAGS:--O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables}" ; export FFLAGS ; LDFLAGS="$LDFLAGS -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro"; export LDFLAGS ;
fixed already