maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Redsocks for harmattan (https://talk.maemo.org/showthread.php?t=93319)

gdelca5 2014-06-11 04:35

Redsocks for harmattan
 
I'm trying to develop an app like sshtunnel for the n9.
I'm looking for redsocks, but i cant find it in openrepos for harmattan.
I managed to have a working ( ? ) squeeze-vm with scratchbox.
I download redsocks source from github and :
Code:

gonza@scratchbox:~$ /scratchbox/login
[sbox-HARMATTAN_X86: ~] > cd redsocks-master/
[sbox-HARMATTAN_X86: ~/redsocks-master] > make
cc -g -O2 -std=gnu99 -Wall  -c -o parser.o parser.c
In file included from parser.c:29:
utils.h:6: fatal error: event.h: No such file or directory
compilation terminated.
make: *** [parser.o] Error 1
[sbox-HARMATTAN_X86: ~/redsocks-master] >

Redsocks depends on libevent, but i can't install it with apt :
Code:

[sbox-HARMATTAN_X86: ~/redsocks-master] > cat /etc/apt/sources.list
deb http://mirror.thecust.net/harmattan-dev.nokia.com/ harmattan/sdk free non-free
deb-src http://mirror.thecust.net/harmattan-dev.nokia.com/ harmattan/sdk free
deb http://mirror.thecust.net/harmattan-dev.nokia.com/ harmattan/41667a5bd857be02f487c2ce806fbf85 nokia-binaries

#deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free
#deb-src http://harmattan-dev.nokia.com/ harmattan/sdk free
#deb http://harmattan-dev.nokia.com/ harmattan/41667a5bd857be02f487c2ce806fbf85 nokia-binaries

I try to compile redsocks in the phone, but some broken dependencies with libc6-dev stopped me.

Some help ?

Thanks for stopping by.

nieldk 2014-06-11 07:09

Re: Redsocks for harmattan
 
You need libevent-devel as well

gdelca5 2014-06-11 18:26

Re: Redsocks for harmattan
 
I finally be able to compile redsocks doing this:

For others newbies:
-> downloading libevent-dev_2.0.16-stable-1_armel.deb
( I got it using "apt-get install -d libevent-dev" from the phone, the downloaded file is in /var/cache/apt/archives )
-> extract the files of the deb using dpkg -x &
copy them to C:\QtSDK\Madde\sysroots\harmattan_sysroot_10.2011. 34-1_slim
( i'm using the lastest QtSDK for win)
-> using madde terminal (C:\QtSDK\Madde\madde.bat -rxvt),
-->cd redsocks-master (i get it directly from github repo)
--> edit Makefile: add "-lrt" to CFLAGS
--> mad make

some links:

https://www.tbi.univie.ac.at/~xtof/N900/vpnc-N900.html
http://webcache.googleusercontent.co...&ct=clnk&gl=ar
http://www.thegeekstuff.com/2010/04/...ract-packages/
http://stackoverflow.com/questions/1...static-linking


All times are GMT. The time now is 21:59.

vBulletin® Version 3.8.8