By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 3035 - Can't compile KSquirrel: undefined reference
Summary: Can't compile KSquirrel: undefined reference
Status: NEEDINFO
Alias: None
Product: TDE
Classification: Unclassified
Component: non-core programs (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2019-09-01 06:39 CDT by Heimen Stoffels
Modified: 2019-09-12 10:01 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heimen Stoffels 2019-09-01 06:39:55 CDT
I succesfully installed all KSquirrel dependencies on Arch Linux, but upon compiling KSquirrel itself, something goes wrong:

Making all in ksquirrelpart
make[3]: Entering directory '/home/vistaus/Downloads/applications/ksquirrel/ksquirrel/ksquirrelpart'
/bin/sh ../../libtool  --tag=CXX   --mode=link g++ -DKSQUIRREL_PART  -I/opt/trinity/include -DSQ_KLIBS=/opt/trinity/lib/ksquirrel-libs -DSQ_KL_VER=0.8.0  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt  -L/opt/trinity/lib -L/opt/trinity/tqt3/lib     -ltqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -ltqt -lpthread -ltdecore -ltdeui -ltdeio  -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /opt/trinity/lib -R /opt/trinity/lib -R /opt/trinity/tqt3/lib  -L/opt/trinity/lib -lksquirrel-libs  -ltdeprint -lkonq -ltdefx   -lGL  -o libksquirrelpart.la -rpath /opt/trinity/lib/trinity ksquirrelpart.lo sq_glparts.lo sq_glu.lo sq_glwidget.lo sq_glwidget_stuff.lo sq_libraryhandler.lo sq_downloader.lo sq_iconloader.lo fmt_filters.lo sq_externaltool.lo sq_config.lo sq_filedialog.lo sq_glselectionpainter.lo sq_glwidget_helpers.lo sq_label.lo sq_bcglabel.lo sq_popupmenu.lo sq_codecsettings.lo sq_utils.lo sq_utils_asm_scale.lo sq_utils_scale.lo sq_diroperator.lo sq_glview.lo sq_errorstring.lo sq_imagefilter.lo sq_imagebcg.lo sq_codecsettingsskeleton.lo sq_imageproperties.lo sq_helpwidget.lo -ltdeparts 
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/crtbeginS.o  .libs/ksquirrelpart.o .libs/sq_glparts.o .libs/sq_glu.o .libs/sq_glwidget.o .libs/sq_glwidget_stuff.o .libs/sq_libraryhandler.o .libs/sq_downloader.o .libs/sq_iconloader.o .libs/fmt_filters.o .libs/sq_externaltool.o .libs/sq_config.o .libs/sq_filedialog.o .libs/sq_glselectionpainter.o .libs/sq_glwidget_helpers.o .libs/sq_label.o .libs/sq_bcglabel.o .libs/sq_popupmenu.o .libs/sq_codecsettings.o .libs/sq_utils.o .libs/sq_utils_asm_scale.o .libs/sq_utils_scale.o .libs/sq_diroperator.o .libs/sq_glview.o .libs/sq_errorstring.o .libs/sq_imagefilter.o .libs/sq_imagebcg.o .libs/sq_codecsettingsskeleton.o .libs/sq_imageproperties.o .libs/sq_helpwidget.o   -Wl,-rpath -Wl,/opt/trinity/lib -Wl,-rpath -Wl,/opt/trinity/tqt3/lib -L/opt/trinity/lib -L/opt/trinity/tqt3/lib /opt/trinity/tqt3/lib/libtqt-mt.so -L/usr/lib/mysql -L/usr/X11R6/lib -luuid -lpq -lmysqlclient -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -ldl -lpng -lz -lXext -lX11 -lSM -lICE /usr/lib/libtqt.so -lpthread /opt/trinity/lib/libtdecore.so /opt/trinity/lib/libtdeui.so /opt/trinity/lib/libtdeio.so /opt/trinity/lib/libksquirrel-libs.so /opt/trinity/lib/libtdeprint.so /opt/trinity/lib/libkonq.so /opt/trinity/lib/libtdefx.so -lGL /opt/trinity/lib/libtdeparts.so -L/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../lib/crtn.o  -O2 -g -O2 -Wl,--no-undefined -Wl,--allow-shlib-undefined   -Wl,-soname -Wl,libksquirrelpart.so -o .libs/libksquirrelpart.so
/usr/bin/ld: .libs/sq_codecsettingsskeleton.o: in function `SQ_CodecSettingsSkeleton::addSettingsWidget(TQString const&)':
/home/vistaus/Downloads/applications/ksquirrel/ksquirrel/ksquirrelpart/./sq_codecsettingsskeleton.ui.h:18: undefined reference to `TQWidgetFactory::create(TQString const&, TQObject*, TQWidget*, char const*)'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile;677: libksquirrelpart.la] Error 1
make[3]: Leaving directory '/home/vistaus/Downloads/applications/ksquirrel/ksquirrel/ksquirrelpart'
make[2]: *** [Makefile;1038: all-recursive] Error 1
make[2]: Leaving directory '/home/vistaus/Downloads/applications/ksquirrel/ksquirrel'
make[1]: *** [Makefile;601: all-recursive] Error 1
make[1]: Leaving directory '/home/vistaus/Downloads/applications/ksquirrel'
make: *** [Makefile;519: all] Error 2
vistaus@ThinkArch ~/D/a/ksquirrel>

What's wrong, and how can this be solved?
Comment 1 Michele Calgaro 2019-09-02 10:40:54 CDT
Hi Heimen,
you are missing some libraries in your link targets, from what I see. The missing function is defined in tqt3/tools/designer subfolder.
For reference, KSquirrel builds fine in Debian. 
This kind of problems would be better discussed on ML, not here, since it does not seem a TDE bug but simply a building mistake.
Comment 2 Michele Calgaro 2019-09-02 10:56:12 CDT
Heimen,
are you using the admin module from tde common folder?
it seems you are not linking against libtqui (no -ltqui in your log), which is normally there when building ksquirrel.
Comment 3 Slávek Banko 2019-09-02 11:13:32 CDT
Before building an automake package, do you do the usual initialization using the admin module? Something like this:

https://mirror.git.trinitydesktop.org/cgit/tde-packaging/tree/debian/_base/applications/ksquirrel/debian/rules#n34
Comment 4 Heimen Stoffels 2019-09-02 11:19:43 CDT
Yes, I used the instructions on the wiki. Other TDE apps do compile fine.
Comment 5 Slávek Banko 2019-09-02 11:32:44 CDT
(In reply to Heimen Stoffels from comment #4)
> Yes, I used the instructions on the wiki. Other TDE apps do compile fine.

You can check in your build files whether "LIB_QUI" is populated as "-ltqui"?
Comment 6 Michele Calgaro 2019-09-12 10:01:15 CDT
Hi Heimen,
have you been able to retry by linking against -ltqui?