Bug 214911 - undefined references when building smoke_akonadi
Summary: undefined references when building smoke_akonadi
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 02:42 UTC by Funda Wang
Modified: 2010-09-19 04:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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