LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-11-2012, 09:13 AM   #1
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Rep: Reputation: 0
Question 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?)

Last edited by zam0lx1s; 10-11-2012 at 10:27 PM. Reason: some problems solved..
 
Old 10-11-2012, 09:39 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
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
 
Old 10-11-2012, 10:37 AM   #3
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
thanx, I was hoping to avoid mailing lists
 
Old 10-11-2012, 05:31 PM   #4
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
(..). Does anybody have any suggestion?

Last edited by zam0lx1s; 10-11-2012 at 10:28 PM. Reason: removed resolved issues
 
Old 10-11-2012, 10:24 PM   #5
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 10-12-2012, 04:16 AM   #6
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
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.
 
Old 10-12-2012, 04:18 AM   #7
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by zam0lx1s View Post
... 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.
 
Old 10-12-2012, 04:54 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
Quote:
Originally Posted by guanx View Post
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
 
1 members found this post helpful.
Old 10-12-2012, 04:56 AM   #9
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by Alien Bob View Post
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.
 
Old 10-12-2012, 05:30 AM   #10
el chapulín
Member
 
Registered: Sep 2012
Posts: 75

Rep: Reputation: 19
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.

Last edited by el chapulín; 10-12-2012 at 05:32 AM.
 
1 members found this post helpful.
Old 10-12-2012, 05:42 AM   #11
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
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.
 
1 members found this post helpful.
Old 10-12-2012, 10:49 AM   #12
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
@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?
 
Old 10-12-2012, 11:06 AM   #13
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by guanx View Post
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).

Last edited by zam0lx1s; 10-12-2012 at 03:36 PM. Reason: corrected some errors, other appeared
 
Old 10-12-2012, 08:20 PM   #14
zam0lx1s
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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).
 
Old 10-13-2012, 01:45 AM   #15
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,756

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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...
 
1 members found this post helpful.
  


Reply

Tags
compile, error, gcc, grep, tor


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesalib 8.0.4 compile error due to file missing. Arcosanti Linux - Software 4 08-31-2012 07:04 PM
Compile Error - Missing header file Aizenmyou Slackware 6 06-29-2012 12:49 PM
Compile error with slackbuild and auctex. Says I'm missing LaTeX. kevin01123 Slackware 9 07-07-2011 08:35 PM
ftape missing modversions.h compile error. RRolleston Debian 4 11-15-2005 12:29 AM
BZFlag missing gl.h compile error Moloko Debian 1 10-22-2005 10:18 AM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration