LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   tor compile error on BasicLinux 3.5 (Slackware 4.0) - missing grep?! (http://www.linuxquestions.org/questions/slackware-14/tor-compile-error-on-basiclinux-3-5-slackware-4-0-missing-grep-4175431675/)

zam0lx1s 10-11-2012 10:13 AM

tor compile error on BasicLinux 3.5 (Slackware 4.0) - missing grep?!
 
In installed BasicLinux on an old computer - basically a stripped down version of Slackware 4. I installed gcc and the other build tools from that distribution and then proceeded to compile tor. Running "/.configure" exits with this error:

Code:

~/tor/tor-0.2.2.39<#>./configure
(..)
checking for libevent directory...
configure: WARNING: Could not find a linkable libevent.  If you have it installed somewhere unusual, you can specify an explicit path using --with-libevent-dir
configure: error: Missing libraries; unable to proceed.

The latest libevent requires a newer kernel. Should I update the kernel, try debian with latest kernel or try an older libevent (and if yes, which?)

ponce 10-11-2012 10:39 AM

It's just a suggestion, but I think you can have a better help directly at the source

http://distro.ibiblio.org/baslinux/baslin.htm

zam0lx1s 10-11-2012 11:37 AM

thanx, I was hoping to avoid mailing lists :)

zam0lx1s 10-11-2012 06:31 PM

(..). Does anybody have any suggestion?

zam0lx1s 10-11-2012 11:24 PM

After correcting a bunch of errors, I'm down to deciding whether to use an older libevent or simply pick a newer distro and try to make it work by stripping it down, as libevent (required by Tor) complains that my kernel is too old.

Advice?

guanx 10-12-2012 05:16 AM

Could you provide more details about your problem? e.g. The "config.log" file.
I tried "libevent-2.0.20"+"tor-0.2.2.39" and everything was ok.

guanx 10-12-2012 05:18 AM

Quote:

Originally Posted by zam0lx1s (Post 4803018)
... basically a stripped down version of Slackware 4. ...

There had never been a Slackware 4. The version number bumped from 3.x to 7 directly.

Alien Bob 10-12-2012 05:54 AM

Quote:

Originally Posted by guanx (Post 4803700)
There had never been a Slackware 4. The version number bumped from 3.x to 7 directly.

Wrong. Slackware 4.0 was released in 1999, and then the version jumped to 7 from there, skipping 5 and 6.

Code:

Mon May 17 20:17:35 CDT 1999
(* Slackware 4.0.0-stable is released *)

Eric

guanx 10-12-2012 05:56 AM

Quote:

Originally Posted by Alien Bob (Post 4803727)
Wrong. Slackware 4.0 was released in 1999, and then the version jumped to 7 from there, skipping 5 and 6.

Code:

Mon May 17 20:17:35 CDT 1999
(* Slackware 4.0.0-stable is released *)

Eric

Good! Your posts often update my knowledgebase.

el chapulín 10-12-2012 06:30 AM

It's based on Slackware 3.5, according to their site, with a 2.2 kernel.... I'm sure that building tor on something so old will be rather difficult and involve upgrading a lot more than just the kernel. You may be better off with a newer distro. Debian squeeze, installed minimally, may be a good option. I have no experience with minimal Slackware installs, but it may be an option if you're prepared to resolve your own dependency issues, etc.

Would need to know more about the "old computer" in question however.

guanx 10-12-2012 06:42 AM

If you have to resolve dependencies yourself anyway, Linux kernel + uClibc/glibc + busybox should work very well. I had to use this combination in a few places on spectrometers, camera controls, and etc.

LFS is also a good choice.

zam0lx1s 10-12-2012 11:49 AM

@guanx: LFS is indeed a good choice, I'll be looking into that.
@el_chapulin: it is tough indeed to upgrade everything, especially since the keyboard circuitry is fried; I'm considering cross-compiling with Cygwin. Here's more info on the old computer.

Has anybody here tried cross-compiling before?

zam0lx1s 10-12-2012 12:06 PM

Quote:

Originally Posted by guanx (Post 4803699)
Could you provide more details about your problem? e.g. The "config.log" file.
I tried "libevent-2.0.20"+"tor-0.2.2.39" and everything was ok.

libevent won't be installed/compiled on this computer - all kinds of errors (kernel is too old, no <some utility/library> etc).

zam0lx1s 10-12-2012 09:20 PM

On last attempt to compile Tor, it failed because of no libevent. I've been trying to compile that, and it fails at make with:
Quote:

<#>make
test -d include/event2 || ./install-sh -c -d include/event2
/usr/bin/sed -f ./make-event-config.sed < config.h > include/event2/event-config.hT
mv -f include/event2/event-config.hT include/event2/event-config.h
make all-recursive
make[1]: Entering directory `/root/tor/libevent-2.0.20-stable'
Making all in .
make[2]: Entering directory `/root/tor/libevent-2.0.20-stable'
source='event.c' object='event.lo' libtool=yes \
DEPDIR=.deps depmode=gcc /bin/sh ./depcomp \
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -c -o event.lo event.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -c event.c -Wp,-MD,.deps/event.TPlo -fPIC -DPIC -o .libs/event.o
In file included from minheap-internal.h:35,
from event-internal.h:38,
from event.c:60:
util-internal.h:222: field `ss_sin' has incomplete type
make[2]: *** [event.lo] Error 1
make[2]: Leaving directory `/root/tor/libevent-2.0.20-stable'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tor/libevent-2.0.20-stable'
make: *** [all] Error 2
I pasted the config.log at http://pastebin.com/5HXgf5SF
Unless someone else has a better idea, on my next try I'll install the build tools from Slackware 9 (right now I'm using the ones from Slackware 4).

gnashley 10-13-2012 02:45 AM

libevent will only work with kernel 2.6.something -I don't remember which micro-version. But you will never get it working with 2.2. Why don't you use a newer version of slackware for your old machine? It's a Pentium, so you should have o trouble *running* even the latest version. The only problem will be having enough RAM to run the installer...


All times are GMT -5. The time now is 07:40 PM.