LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-04-2004, 02:17 PM   #1
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Rep: Reputation: 15
cannot compile glibc


Okay, I just compiled a 2.6.10-rc3 kernel and copied the include folder to my /usr directory and now I want to compile glibc. I've got the source code in /root/glibc-5=2.3.3 with the following on my command line.

Code:
./configure --prefix=/usr/local --includedir=/usr/include/linux --enable-add-ons && make && make install
any help?
 
Old 12-04-2004, 02:39 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What exactly are you needing help with? Everything so far seems fine to me, have you run the command to configure without any problems?
 
Old 12-04-2004, 02:58 PM   #3
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
whoops! I forgot to say that configure tells me that I need to build in another directory.
 
Old 12-05-2004, 12:16 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Back out of the source directory, create a build directory, cd into it & build it from there. Like so, assuming you're inside the glibc source directory:

Code:
cd ..
mkdir glibc-build
cd glibc-build
../glibc-x.x.x/configure --prefix=/usr/local --includedir=/usr/include/linux --enable-add-ons && make && make install
 
Old 12-05-2004, 11:24 AM   #5
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks, I was able to get glibc configured but now when I try to make it will go for a while and then tell me that I need TLS support, what does that mean and how do I fix it?
 
Old 12-05-2004, 11:20 PM   #6
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
Okay, I did some reading and I found out that TLS is part of SSL, so I have SSL installed and tried compiling again and I could configure glibc, but glibc woun't compile at all. Any help?
 
Old 12-05-2004, 11:25 PM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Maybe if you can post the section of the make that fails.
 
Old 12-05-2004, 11:52 PM   #8
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
Okay, I created logs that should have the needed information in them. they're hosted at writing.com to save me time and effort: http://www.writing.com/main/books/item_id/915057
 
Old 12-06-2004, 12:08 AM   #9
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
I can only see a small portion of it and that portion does not show the error.
 
Old 12-06-2004, 12:17 AM   #10
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Also when all else fails, read the instructions.
http://www.gnu.org/software/libc/man...l#Installation

I assume there is some reason you're not wanting to use the Slackware package for this?

Last edited by DaHammer; 12-06-2004 at 12:20 AM.
 
Old 12-12-2004, 06:03 PM   #11
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
I got it to work! all I did was copy /usr/include/openssl/tls1.h into ./glibc-2.3.3 and it now works fine! it's building right now as I type as a matter of fact!
 
Old 12-12-2004, 11:49 PM   #12
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
darnit! the power at our house went out and I lost my progress on compiling glibc. so I cleaned up, untarred the files and made sure everything was ready and tried again, this time though, I get an error message:
Code:
no versions defined for typedef
and then make hangs, I can't tell you more because it doesn't tell me in what file the problem is in. any ideas?
 
Old 12-13-2004, 01:11 AM   #13
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
is this a configure error or a compile error
 
Old 12-14-2004, 02:51 PM   #14
levicc00123
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 94

Original Poster
Rep: Reputation: 15
it's a make error.
 
Old 04-20-2005, 09:41 AM   #15
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
in the slack source packages there is a script for building the
glibc package in the glibc source package you may be able to
use it to get libc compiled it may work for newer libc versions
or you may have to edit the script for the version you are building
 
  


Reply



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
glibc compile error ponden Linux From Scratch 3 11-13-2008 05:43 PM
glibc compile headache wwpusa Linux - Newbie 2 11-08-2003 04:49 PM
Does anyone know how to re-compile glibc ? oskernel Programming 1 10-18-2003 03:29 AM
glibc compile problems... coderx Linux - Software 1 07-06-2003 07:14 AM
glibc v2.2.5 compile problem mavx Linux - Software 2 06-12-2002 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration