On 5/26/11 8:01 PM, Ilya Chernykh wrote:
I have a package that fails at the link stage, reporting undefined references as follows, and the --no-as-needed option does not help :(
/bin/sh ../libtool --silent --tag=CXX --mode=link g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -L/opt/kde3/lib64 -L/usr/lib/qt3/lib64 -L/usr/lib64 -Wl,--no-as-needed -Wl,--enable-new-dtags -L../src/fs -Wl,-Bsymbolic-functions -o ktagebuch main.o -lkio library/ui/libktagebuchui.la library/libktagebuch.la -lfilesystem -lkdeui -lkdecore /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_exec' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_column_text' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_bind_blob' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_step' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_open' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_column_bytes' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_column_blob' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_prepare' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_close' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_mprintf' /usr/src/packages/BUILD/ktagebuch-0.74/src/fs/.libs/libfilesystem.so: undefined reference to `sqlite3_errmsg'
build log link: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=ktagebuch&project=home%3AAnsus%3AKDE3&repository=KDE_KDE3_openSUSE_11.4
Here is the hint in the build log: configure: WARNING: unrecognized options: --with-pcsc-dir, --with-xinerama, --with-ssl-dir, --with-sqlite so looking at the spec file, line 49 looks like the cause, but im not expert with kde3 packaging. So, try removing $configkde ? HTH, Peter -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org