Bug 214911

Summary: undefined references when building smoke_akonadi
Product: [Developer tools] bindings Reporter: Funda Wang <fundawang>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal CC: arno
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Funda Wang 2009-11-17 02:42:46 UTC
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
Comment 1 Arno Rehn 2009-11-17 16:59:25 UTC
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.
Comment 2 Funda Wang 2009-11-18 02:38:45 UTC
  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 ;
Comment 3 Funda Wang 2010-09-19 04:09:30 UTC
fixed already