LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2012, 08:03 AM   #1
microbot
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
trouble installing glibc


I am using the learncthehardway.com C tutorial.
I can't see any line numbers in Valgrind when I use it to debug. Valgrind tells me to install glibc.
When I try to configure glibc, it throws this error.
"configure: error: you must configure in a separate build directory"

I have searched, found an answer, didn't understand it. There is a Lot about Linux I still dont't understand. I think it is the way the string is setup. I'm not sure how to format it.

the directory structure is: me@Earth:~/c/glib/glibc-2.15/glibc-build$
glibc-build being the dir i created to configure in.

Thanks in advance.

Ubuntu 12.04., 3.2.0-24-generic-pae,
Valgrind-3.7.0, make 3.81

Last edited by microbot; 05-18-2012 at 08:10 AM. Reason: -
 
Old 05-18-2012, 09:55 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
glibc, in particular, is "very special." But in any case ... if you are using a distro that is based on packages (as I presume that you are), you should make updates by installing or upgrading appropriate packages. You should not be monkeying around with anything that involves "from source," i.e. configure steps.

Why? Because the package system maintains a database of dependencies and co-requisites, and this information must remain authoritative. If you start installing stuff "out of band," it no longer will be.

"Abandon all hope, ye who enter here."
 
1 members found this post helpful.
Old 05-18-2012, 11:04 AM   #3
microbot
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Figured it out. The problem was that I needed Gawk instead of Mawk. Also, autoconf had to be installed.
Hope this helps someone else.
 
Old 05-18-2012, 11:39 AM   #4
microbot
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
make error

Now I have a make error.

os.dt -MT /home/me/c/glib/glibc-2.15/glibc-build/math/s_frexp.os
../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier for ".ifdef"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: Missing symbol name in directive
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: Missing symbol name in directive
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `.'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: expected comma after name `' in .size directive
../sysdeps/i386/fpu/s_frexp.S:66: Error: ".endif" without ".if"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk `.get_pc_thunk.dx' after expression
make[2]: *** [/home/me/c/glib/glibc-2.15/glibc-build/math/s_frexp.os] Error 1
make[2]: Leaving directory `/home/me/c/glib/glibc-2.15/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/home/me/c/glib/glibc-2.15'
make: *** [all] Error 2

-------------------

I tired to make again.

me@Earth:~/c/glib/glibc-2.15$ make
Makeconfig:85: sysdeps/../config.make: No such file or directory
The GNU C library has not been configured.
Run `configure' to configure it before building.
Try `configure --help' for more details.
make: Failed to remake makefile `sysdeps/../config.make'.


----------------

here is my glibc error log: http://pastebin.com/4etjYYGG
 
Old 05-18-2012, 12:04 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
(G)libc is your OS ( together with the kernel )
... and is always installed. May be 'libc6-dev' is missing.

Ubuntu 12.04, package name = libc6
http://packages.ubuntu.com/precise/libc6

If you change anything : Do not expect your OS to work. Ever.

Building glibc 2.15
http://www.linuxfromscratch.org/lfs/...r06/glibc.html
Be aware that glibc requires a build directory outside glibc-2.15/ source.

.
 
1 members found this post helpful.
Old 05-18-2012, 12:32 PM   #6
microbot
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
I am following learncthehardway.com's C tutorial. The problem started with me not having line numbers. valgrind asked for glibc version 2.1, I think. I'm not seeing that error now, its been two days chasing whatever the compiler is telling me is missing.

I still cant get line numbers for errors. I probably just don't know what to expect from valgrind.

Hhere is what i get when there is an error. Again, no line numbers.

http://pastebin.com/SbcpzaDE
 
  


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
[SOLVED] -current glibc 2.15 trouble ngc891 Slackware 8 03-31-2012 03:12 PM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Trouble installing glibc-2.7 on Fedora 2.6.21-1.3194 im4linux Linux - Software 5 04-20-2009 05:02 PM
trouble installing glibc-2.7 - error during ./configure Virtuality Linux - Software 5 12-12-2007 06:43 PM
Trouble installing Wine for RH9, need glibc MajicMan Linux - Software 3 08-09-2005 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 AM.

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