| Summary: | Wanted: kio_ftps | ||
|---|---|---|---|
| Product: | TDE | Reporter: | linux |
| Component: | tdenetwork | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | needs packaging | CC: | albator78, bugwatch, kb9vqf, linux, slavek.banko |
| Priority: | P5 | ||
| Version: | 3.5.13 [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: |
kio-ftps : fix build with newer GCC
kio-ftps : fix build with automake >= 1.13 kio-ftps : fix FTBFS because wrong LDFLAGS |
||
|
Description
linux
2012-07-22 08:58:36 CDT
I'm not able to compile it (on Debian Squeeze). After installing many -dev pacakges, and patching configure script (replacing "kde3/" with "trinity/"), configure can run successfully ("./configure --with-extra-includes=/usr/include/tqt").
But build fails at link time with many undefined references such as:
ftp.cc:(.text+0x166): undefined reference to `KSocks::self()'
or
ftp.cc:(.text+0x3b9): undefined reference to `QString::shared_null'
Adding -lqt-mt to LDFLAGS makes many of the errors disappear. Looks like there are more libs missing... The command is:
/bin/bash ../libtool --silent --tag=CXX --mode=link g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -lqt-mt -o kio_ftps.la -rpath /opt/trinity/lib -L/opt/trinity/lib -L/usr/share/qt3/lib -L/usr/lib -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /opt/trinity/lib -R /opt/trinity/lib -R /usr/share/qt3/lib -R /usr/lib ftp.lo -lkio
(Weird: changing "kde3/" to "trinity" in acinclude.m4 and running autoconf produces faulty configure script that produces Makefiles which do not build kio_ftps.so.)
I've finally managed to compile this (on Debian Squeeze): 0. install kdenetwork-trinity-dev 1. get kio-ftps-0.1a.tar.gz and kio-ftps-gcc.patch 2. tar xf kio-ftps-0.1a.tar.gz && cd kio-ftps-0.1/ && patch -p1 <../kio-ftps-gcc.patch 3. sed -e s,/kde3,/trinity,g acinclude.m4 | sed -e s,kde3/,trinity/,g >acinclude.m4.new && mv acinclude.m4.new acinclude.m4 4. autoreconf && ./configure --with-extra-includes=/usr/include/tqt 5. make 6. cd kio_ftps/.libs/ && g++ -shared -L/opt/trinity/lib -L/usr/share/qt3/lib -L/usr/lib -module -avoid-version -module -Wl,--no-undefined -Wl,--allow-shlib-undefined -o kio_ftps.so ftp.o -lkio -lqt-mt -lkdecore 7. cd ../.. && sudo make install (or wharever) And it works! So please include this in next Trinity release. (I don't know how to fix the build scripts.) Created attachment 1389 [details]
kio-ftps : fix build with newer GCC
Created attachment 1390 [details]
kio-ftps : fix build with automake >= 1.13
Created attachment 1391 [details]
kio-ftps : fix FTBFS because wrong LDFLAGS
Grab original archive: http://kasablanca.berlios.de/kio-ftps/ File name: kio-ftps-0.1a.tar.gz Untar, apply attached patches, in order. Run QT3/TQT3 conversion script. Run KDE3/TDE conversion script. FTBFS in kio_ftps/ftp.cc line 86 "namespace KIO {" should be replaced by "namespace TDEIO {" Fix the line, then compile: it builds correctly. The KDE3/TDE conversion script should be updated to handle this case. BTW, the package should be named "tdeio-ftps", not "kio-ftps". New GIT repository is available at git clone http://scm.trinitydesktop.org/scm/git/tdeio-ftps Debian/Ubuntu packaging files have been added to the tde-packaging repository. cgit, the master GIT repository, and the autobuild system have not yet been updated. Build OK from GIT. cgit, the master GIT repository, and the autobuild system have now been updated. Marking NEEDINFO pending results of autobuilds on build farm. Debian/Ubuntu packaging files are ready for build. Thank you all for your efforts in preparing the package. The package seems to be ready. |