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 1121 - Wanted: kio_ftps
Summary: Wanted: kio_ftps
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdenetwork (show other bugs)
Version: 3.5.13 [Trinity]
Hardware: All Linux
: P5 needs packaging
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2012-07-22 08:58 CDT by linux
Modified: 2013-07-29 19:20 CDT (History)
5 users (show)

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


Attachments
kio-ftps : fix build with newer GCC (1.19 KB, patch)
2013-07-24 14:38 CDT, Francois Andriot
Details | Diff
kio-ftps : fix build with automake >= 1.13 (2.02 KB, patch)
2013-07-24 14:39 CDT, Francois Andriot
Details | Diff
kio-ftps : fix FTBFS because wrong LDFLAGS (923 bytes, patch)
2013-07-24 14:40 CDT, Francois Andriot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description linux 2012-07-22 08:58:36 CDT
Please add kio_ftps to Trinity. The homepage is at: http://kde-apps.org/content/show.php/kio-ftps?content=35875
v0.2 is for KDE4 but v0.1 was for KDE 3.5. It worked fine in KDE 3.5.10. Looks like it's present here:
https://build.opensuse.org/package/files?package=kde3-kio-ftps&project=KDE%3AKDE3
Comment 1 linux 2012-08-03 09:29:20 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.)
Comment 2 linux 2013-03-15 10:10:12 CDT
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.)
Comment 3 Francois Andriot 2013-07-24 14:38:51 CDT
Created attachment 1389 [details]
kio-ftps : fix build with newer GCC
Comment 4 Francois Andriot 2013-07-24 14:39:51 CDT
Created attachment 1390 [details]
kio-ftps : fix build with automake >= 1.13
Comment 5 Francois Andriot 2013-07-24 14:40:55 CDT
Created attachment 1391 [details]
kio-ftps : fix FTBFS because wrong LDFLAGS
Comment 6 Francois Andriot 2013-07-24 14:50:47 CDT
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".
Comment 7 Timothy Pearson 2013-07-24 15:49:43 CDT
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.
Comment 8 Francois Andriot 2013-07-24 16:02:04 CDT
Build OK from GIT.
Comment 9 Timothy Pearson 2013-07-24 18:46:23 CDT
cgit, the master GIT repository, and the autobuild system have now been updated.  Marking NEEDINFO pending results of autobuilds on build farm.
Comment 10 Slávek Banko 2013-07-27 05:57:09 CDT
Debian/Ubuntu packaging files are ready for build.
Comment 11 Slávek Banko 2013-07-29 19:20:51 CDT
Thank you all for your efforts in preparing the package.
The package seems to be ready.