maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   shrew vpn client (https://talk.maemo.org/showthread.php?t=37144)

dabozz 2009-12-14 11:01

shrew vpn client
 
Hi
I wanted to install shrew to connect to my fritzbox at home.
I downloaded the armel version for debian squeez and while trying to install I got this error:

Nokia-N900-42-11:/home/user/MyDocs# dpkg -i ike_2.1.4\+dfsg-4_armel.deb
Selecting previously deselected package ike.
(Reading database ... 28533 files and directories currently installed.)
Unpacking ike (from ike_2.1.4+dfsg-4_armel.deb) ...
dpkg: dependency problems prevent configuration of ike:
ike depends on libgcc1 (>= 1:4.4.0); however:
Version of libgcc1 on system is 1:4.2.1-4maemo9+0m5.
ike depends on libstdc++6 (>= 4.4.0); however:
Version of libstdc++6 on system is 4.2.1-4maemo9+0m5.
dpkg: error processing ike (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ike

I think it might not the best solution to install the newer versions of above mentioned software.
What do u think, should I try it installing debian in a chroot and start shrew from there.
And i need version 2.1.4

thanks for helping

dabozz

ruskie 2009-12-14 11:06

Re: shrew vpn client
 
Setup a scratchbox(SDK), add deb-src for it... apt-get source ike cd ike-* ; dpkg-buildpackage :) install the built package :)

dabozz 2009-12-14 11:18

Re: shrew vpn client
 
that means I should build the deb package on my pc and install it then on the n900?
do u have a more detailled explanasion for it?
thx

ruskie 2009-12-14 12:38

Re: shrew vpn client
 
Step one: install the SDK on your system
Step two: add deb-src deb-src http://http.XX.debian.org/debian/ etch main contrib
into /etc/apt/sources.list.d/debian.list replacing XX with your closest mirror.
Step three: apt-get update
Step three and a half: cd $HOME
Step four: apt-get source shrew
Step five: cd shrew-* && dpkg-buildpackage -rfakeroot
Step six: if everything went wel you should have gotten a shrev_$version*_armel.deb in $HOME which you can now install on the N900
Step seven: copy the deb over to your device
Step eight: dpkg -i $DEB

done...

dabozz 2009-12-14 20:03

Re: shrew vpn client
 
Hi,
I tried to follow your instructions but I have still some problems:
I need the debian squeeze version, because I need shrew in version 2.1.4, which isn't contained in etch.
So I added this to my sources
Code:

deb-src http://ftp.de.debian.org/debian/ squeeze main contrib
then:
Code:

apt-get source ike
and
Code:

[sbox-FREMANTLE_ARMEL: ~/ike-2.1.4+dfsg] > fakeroot dpkg-buildpackage -r
dpkg-buildpackage: source package is ike
dpkg-buildpackage: source version is 2.1.4+dfsg-4
dpkg-buildpackage: source changed by Philipp Matthias Hahn <pmhahn@debian.org>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 2.1.4+dfsg-4
: Using Scratchbox tools to satisfy builddeps
: Scratchbox has unsatisfying version: debhelper 5.0.42
: Dependency provided by Scratchbox: bison (>= 2.3)
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 6.0.7~) flex libqt3-mt-dev (>= 3.3) cmake (>= 2.4)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
[sbox-FREMANTLE_ARMEL: ~/ike-2.1.4+dfsg] >

Is there a possibility to remove these errors?

//Edit:
this is with parameter -d:
Code:

[sbox-FREMANTLE_ARMEL: ~/ike-2.1.4+dfsg] > fakeroot dpkg-buildpackage -r -d
dpkg-buildpackage: source package is ike
dpkg-buildpackage: source version is 2.1.4+dfsg-4
dpkg-buildpackage: source changed by Philipp Matthias Hahn <pmhahn@debian.org>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 2.1.4+dfsg-4
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-arch-stamp configure-stamp
rm -f CMakeCache.txt cmake.check_cache CMakeOutput.log config.log install_manifest.txt warning.log source/ikea/about.h source/ikea/conflict.h source/ikea/ikea source/ikea/root.h source/ikea/site.h source/ikea/topology.h source/ikec/banner.h source/ikec/filepass.h source/ikec/ikec source/ikec/root.h source/iked/conf.parse.cpp source/iked/conf.parse.hpp source/iked/conf.token.cpp source/iked/etkey source/iked/iked
rm -f -R                 
dh_clean
dh_clean: Sorry, but 5 is the highest compatibility level supported by this debhelper.
make: *** [clean] Error 1
[sbox-FREMANTLE_ARMEL: ~/ike-2.1.4+dfsg] >


ruskie 2009-12-15 09:38

Re: shrew vpn client
 
IIRC cmake isn't yet supported and the debhelper is at a higher version... Have you tried sid maybe that has a more compatible version? also maybe etch-backports ?

ruskie 2009-12-15 09:38

Re: shrew vpn client
 
deb-src http://www.backports.org/debian etch-backports main contrib

For the backports

dabozz 2009-12-15 15:53

Re: shrew vpn client
 
Hi,
etch-backports don't lead to a solution, ike isn't included.
as far as I can see, ike is contained in lenny, squeeze and sid.
In lenny the version is to old for my purpose http://packages.debian.org/search?su...s&keywords=ike
Sid leads to the same error mentioned above with squeeze.
Is there a other way to build a package without debhelper or can I do something with the files from http://www.shrew.net/download/ike? They offer a svn, too.

thanks
dabozz

ruskie 2009-12-15 16:03

Re: shrew vpn client
 
I can downport from deb 6 to deb 5... it could work by simply modifying the compat file in debian and maybe change the control file as well to point to a lower version of debhelper. It worked for me in a case or two.

dabozz 2009-12-16 16:48

Re: shrew vpn client
 
hi ruskie,
are u going to downport to deb 5 in near future, or how are ur plans?
Or have u done it already?

dabozz

ruskie 2009-12-16 16:51

Re: shrew vpn client
 
Ups didn't mean me... I meant you could ;)

dabozz 2009-12-16 17:35

Re: shrew vpn client
 
Can u point me to a howto?

ruskie 2009-12-17 08:34

Re: shrew vpn client
 
Not really... what I usually do is:

edit debian/compat
and debian/control
files and modify the versions there.. compat probably has 6 you want 5 and control has a version entry next to debhelper which you want to move to 5 as well.

Sometimes it will just work with those changes sometimes not.

dabozz 2009-12-17 19:20

Re: shrew vpn client
 
So, i have done that, but anoter error occured.

Code:

CMake Error at CMakeLists.txt:385 (message):
  Unable to locate required package : QT


-- Configuring incomplete, errors occurred!
make: *** [configure-stamp] Error 1

I don't know what QT he needs, u have an idea?

ruskie 2009-12-17 20:46

Re: shrew vpn client
 
Hmm how are you running it? can you give me the complete line please...

i.e. dpkg-build... whatever

dabozz 2009-12-17 21:52

Re: shrew vpn client
 
here it is:
Code:

[sbox-FREMANTLE_ARMEL: ~/ike-2.1.4+dfsg] > fakeroot dpkg-buildpackage -r -d
dpkg-buildpackage: source package is ike
dpkg-buildpackage: source version is 2.1.4+dfsg-4
dpkg-buildpackage: source changed by Philipp Matthias Hahn <pmhahn@debian.org>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 2.1.4+dfsg-4
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-arch-stamp configure-stamp
rm -f CMakeCache.txt cmake.check_cache CMakeOutput.log config.log install_manifest.txt warning.log source/ikea/about.h source/ikea/conflict.h source/ikea/ikea source/ikea/root.h source/ikea/site.h source/ikea/topology.h source/ikec/banner.h source/ikec/filepass.h source/ikec/ikec source/ikec/root.h source/iked/conf.parse.cpp source/iked/conf.parse.hpp source/iked/conf.token.cpp source/iked/etkey source/iked/iked
rm -f -R                ./source/iked/CMakeFiles ./source/libpfk/CMakeFiles ./source/liblog/CMakeFiles ./source/libidb/CMakeFiles ./source/libith/CMakeFiles ./source/libip/CMakeFiles ./source/libike/CMakeFiles ./CMakeFiles ./CMakeFiles/CMakeTmp/CMakeFiles 
dh_clean
 dpkg-source -b ike-2.1.4+dfsg
dpkg-source: warning: unknown information field `Homepage' in input data in general section of control info file
dpkg-source: building ike using existing ike_2.1.4+dfsg.orig.tar.gz
dpkg-source: building ike in ike_2.1.4+dfsg-4.diff.gz
dpkg-source: building ike in ike_2.1.4+dfsg-4.dsc
 debian/rules build
dh_testdir
cmake -DQTGUI=YES -DNATT=YES -DCMAKE_INSTALL_PREFIX:PATH=/usr -DETCDIR:PATH=/etc -DMANDIR:PATH=/usr/share/man -DDEBUG=YES
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /scratchbox/compilers/bin/gcc
-- Check for working C compiler: /scratchbox/compilers/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /scratchbox/compilers/bin/c++
-- Check for working CXX compiler: /scratchbox/compilers/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using install prefix /usr ...
-- Using etc path /etc ...
-- Using man path /usr/share/man ...
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for pthread_mutex_timedlock in -lpthread
-- Looking for pthread_mutex_timedlock in -lpthread - found
-- Using binary /scratchbox/tools/bin/flex ...
-- Using binary /scratchbox/tools/bin/bison ...
-- Performing Test NATT_FOUND
-- Performing Test NATT_FOUND - Success
-- Enabled NAT Traversal support ...
CMake Error at CMakeLists.txt:385 (message):
  Unable to locate required package : QT


-- Configuring incomplete, errors occurred!
make: *** [configure-stamp] Error 1


ruskie 2009-12-18 07:15

Re: shrew vpn client
 
Ok do not use -d... also try:
apt-get build-dep shrew

That should ask for all the dependencies to install. Note you might neet to generate some yourself.

dabozz 2009-12-18 17:25

Re: shrew vpn client
 
thats the reply:
Code:

[sbox-FREMANTLE_ARMEL: ~/ike-2.1.4+dfsg] >  apt-get build-dep ike
Reading package lists... Done
Building dependency tree... Done
E: Build-Depends dependency for ike cannot be satisfied because no available versions of package debhelper can satisfy version requirements

vicious circle

ruskie 2009-12-18 18:13

Re: shrew vpn client
 
Hmm and you did modify the debian/control file to se a lower version of debhelper.

dabozz 2009-12-22 18:19

Re: shrew vpn client
 
Yes, in compat i wrote "5" and in control now it says (just the beginning):
Code:

Source: ike
Section: net
Priority: extra
Maintainer: Philipp Matthias Hahn <pmhahn@debian.org>
Build-Depends: debhelper (>= 5.0.7~), flex, bison (>= 0.3), libqt3-mt-dev (>= 0.3), libssl-dev (>= 0.9), cmake (>= 0.4)
Standards-Version: 3.8.3
Homepage: http://www.shrew.net/

I lowered the numbers randomly

ruskie 2009-12-22 18:27

Re: shrew vpn client
 
Hmm try just 5 nothing else for the version.

dabozz 2009-12-22 19:01

Re: shrew vpn client
 
didn't make a change

ruskie 2009-12-22 19:50

Re: shrew vpn client
 
Hmm you'll need to build:
flex libqt3-mt-dev cmake

As well apparently.

dabozz 2009-12-22 20:01

Re: shrew vpn client
 
I got:
cmake version 2.6-patch 3
flex-2.5.35 2.5.35
I can't install libqt3-mt-dev, recieving this error: Couldn't find package libqt3-mt-dev. But it is listed in http://packages.debian.org/en/squeeze/libqt3-mt-dev and I have the squeeze repository in the sources.list
libqt3-compat-headers isn't available, too

ruskie 2009-12-22 21:19

Re: shrew vpn client
 
You'll need to build it as well and install the built deb afterwards.

dabozz 2009-12-23 12:29

Re: shrew vpn client
 
damn, im running the sdk in a vm. there scratchbox couldn't access the internet, whereas firefox in the vm can accsess it...
it's all up to date....

dabozz 2009-12-23 12:41

Re: shrew vpn client
 
my dns makes problems
entered the ip of ftp.de.debian.org , now i can download the source

dabozz 2009-12-23 12:56

Re: shrew vpn client
 
next problem:
Code:

[sbox-FREMANTLE_ARMEL: ~] > apt-get build-dep libqt3-mt-dev
Reading package lists... Done
Building dependency tree... Done
Package libxinerama-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  x11proto-xinerama-dev
E: Package libxinerama-dev has no installation candidate
E: Failed to satisfy Build-Depends dependency for libqt3-mt-dev: libxinerama-dev
[sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install x11proto-xinerama-dev
Reading package lists... Done
Building dependency tree... Done
x11proto-xinerama-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
[sbox-FREMANTLE_ARMEL: ~] >


ruskie 2009-12-23 13:53

Re: shrew vpn client
 
Try to build it maybe?

dabozz 2009-12-23 14:35

Re: shrew vpn client
 
mmm...
I don't know what to do:
Code:

[sbox-FREMANTLE_ARMEL: ~/x11proto-xinerama-1.1.2] > ls
COPYING      Xinerama.h  configure.ac  mkinstalldirs
ChangeLog    aclocal.m4  debian        panoramiXext.h
Makefile.am  autogen.sh  install-sh    panoramiXproto.h
Makefile.in  configure  missing      xineramaproto.pc.in
[sbox-FREMANTLE_ARMEL: ~/x11proto-xinerama-1.1.2] > apt-get build-dep x11proto-xinerama-dev
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
[sbox-FREMANTLE_ARMEL: ~/x11proto-xinerama-1.1.2] >

Does it say, I have this version already?

dabozz 2009-12-23 14:51

Re: shrew vpn client
 
Maybe a soluition is here:
Quote:

CMake Error: Unable to locate required package : QT
** Configuring done
After digging around in the cmake*2.4 functions, it appears that the shared library was unable to be
found, the following soft link fixed the problem, though many other link names could have been used
(my libqt*mt version was 3.3.8b):
root: ~/ike/ike# ln *s /usr/lib/libqt*mt.so.3.3.8 /usr/share/qt3/lib/libqt*mt.so
from http://209.85.135.132/search?q=cache...&ct=clnk&gl=de
I couldn't find the libqtmt.so

ruskie 2009-12-23 15:23

Re: shrew vpn client
 
I meant buld qt3 :)

The thing is you don't have packages yet for all the optional stuff. This is one of the reasons cmake is unable to find QT. You need to build and install qt3 stuff.

dabozz 2009-12-23 15:50

Re: shrew vpn client
 
Sorry, I have no idea which package source I should download to build qt3.
I tried some, but all weren't found.
Can U help me with that?
Is there a metapackage?

ruskie 2009-12-23 20:18

Re: shrew vpn client
 
I'd just do:
apt-get source libqt3-mt-dev

That should grab the right one.

dabozz 2009-12-26 17:14

Re: shrew vpn client
 
Sorry I give up.
I solved this problem by flashing my fritzbox with freetz and integrated openvpn.
Now it runs.
Thanks ruskie for ur help!

ruskie 2009-12-26 20:01

Re: shrew vpn client
 
Sorry we couldn't get it working better. Yeah it does tend to take a while to get all the bits working.

In this case it would include building QT3 for the N900.


All times are GMT. The time now is 18:58.

vBulletin® Version 3.8.8