Click to See Complete Forum and Search --> : GLIBC 2.2 - Compiling Programs and getting errors! HELP!
ndogg
01-22-2001, 10:44 AM
I'm not really sure when this is happening. Is this when you do ./configure?
------------------
Too much Sun can give you cancer. Windows break too easily.
Apples/Macintoshes can rot. BSD... sounds too much like LSD.
Penguins are the only animals sophisticated enough to wear a
tuxedo.
Linux, the only one with the Penguin.
http://ndogg.n3.net
JAdrock
01-22-2001, 12:17 PM
configure:5989: checking for GTK - version >= 1.2.0
configure:6090: gcc -o conftest -g -O2 -I/usr/local/include -I/opt/include -I$($
/usr/X11R6/lib/libX11.so: undefined reference to `getpwnam_r@@GLIBC_2.0'
/usr/lib/libgdk.so: undefined reference to `shmctl@@GLIBC_2.0'
/usr/X11R6/lib/libX11.so: undefined reference to `getpwuid_r@@GLIBC_2.0'
/usr/lib/libgtk.so: undefined reference to `localeconv@@GLIBC_2.0'
ok well this is when configuring gaim for instance, for some reason gtk is still referencing glibc 2.0, does this mean I have to recompile it for glibc 2.2? or is there something else I have to do?
Thanks in Advance,
the lost linux user ;op
SUOrangeman
01-22-2001, 03:53 PM
The only luck I've had with glibc-2.2 is by installing Mandrake Cooker (7.3). Although my install is legacy-free (well, only 2.4.0 kernel and XFree86 4.0.2, at least), I can't even get a window manager to work. http://www.linuxnewbie.org/ubb/smile.gif glibc is embedded into so many things that you'll likely break something when changing versions.
OK, so maybe I shouldn't call that luck.
-SUO
JAdrock
01-23-2001, 01:22 AM
Yes, this is when I issue `./configure`
I'm wondering if this will require me to re-compile/install all my libs and what not, or it's just the program itself
JAdrock
01-24-2001, 08:21 PM
Does anyone know what the problem might be? I'm tempted to go back to the previous version of glibc, but then deps from other programs I've installed recently wont' go through
The problem is, I've tried to configure this program, and it says gtk+ 1.2.8 isn't installed, but it IS installed.
skweegie
01-24-2001, 08:51 PM
there is more involved in the upgrading to 2.2.1 (current glibc version) than just grabbing the current glibc binary. At a minimum, you MUST also upgrade binutils if you want any chance of compiling programs from source. if i remember right, most of these glib posts have been regarding slackware users who just went and did an upgradepkg glibc and glibcso. i've tried pointing out that this was way incorrect and tried to place a link to the preferred way to upgrade to 2.2.1 to no avail. if you're using slack (which since you participated in those posts, i can assume you are), please follow the instructions in the below link to upgrade:
http://www.slackware.com/forum/read.php?f=5&i=3934&t=3916
------------------
my lame slackpage (http://www.skweegie.f2s.com)
[This message has been edited by skweegie (edited 24 January 2001).]
JAdrock
01-24-2001, 10:08 PM
I should've realized that I had to remove a few packages and what not, I missed one little step (removing egcs) so once I removed that package it was all fixed, woo hoo
thanks for all your help
Danster
01-25-2001, 10:41 AM
Lots of us are having the same problem. Any chance you could upload the steps you did to make it work? Cheers and congrats.
JAdrock
01-25-2001, 12:44 PM
From skweegie's post
http://www.slackware.com/forum/read.php?f=5&i=3934&t=3916
This is the initial way I followed, but for some reason I totally skipped over removing the egcs packages, that was my main problem.
Basically follow the instructions...
NOTE: These instructions were taken from the url above, I have copied them over here in an attempt to make things easier and so that I may add what I had done while following those steps (the 1st and 2nd time)
(1) Remove egcs from the system:
removepkg egcs
removepkg egcs_g77
removepkg egcsobjc
(2) Download the new packages from -current:
[
// I made a new directory temporarily to store these files
mkdir upgrade-current
cd ~/upgrade-current
wget ftp://ftp.freesoftware.com/pub/slackware/slackware-current/slakware/a1/glibcso.tgz
// I used wget to grab the files listed below I've given an example above, of the first file you need to grab, just follow the sequence with all the other files
]
a1/glibcso.tgz
a1/zoneinfo.tgz
d1/glibc.tgz
d1/glocale.tgz
d1/gcc.tgz
d1/gcc_g77.tgz
d1/gcc_objc.tgz
d1/binutils.tgz
ftp://ftp.freesoftware.com/pub/slackware/slackware-current/slakware/
(3) Drop to runlevel 1 at the console and upgrade glibc:
[
// exit window manager and any GUI login screens
telinit 1
]
upgradepkg glibcso
upgradepkg zoneinfo
upgradepkg glibc
installpkg glocale
NOTE: It does not hurt to install glibcso and glibc, as those packages just overlap. I always do glibcso first since it just contains the shared libraries. If it fails, then I just have to go fix /lib and not worry about lost headers.
(3) Install the new gcc:
installpkg gcc
installpkg gcc_g77
installpkg gcc_objc
(4) Install the new binutils:
upgradepkg binutils
And that should do it. Reboot to telinit back to your desired runlevel.
[
telinit 3
//move back into multi user runlevel
]
Once you've done this, you should be fine as I am now.
I wish all the best to everyone with this problem, and hope it's nothing more than a simple mistake like I had made.
Danster
01-27-2001, 08:43 AM
Thanks I'll give that I try... Any ideas if there are any RH 6.1 issues I need to be aware of?
Sweede
01-27-2001, 01:14 PM
there are also glibc2.1 compatible libraries that you must install and add the path to ld.so.conf and run a new glibc version of ldconfig
the upgrade to glibc2.2 removed ldconfig in mandrake, but i dont know if its the same in redhat
JAdrock
01-27-2001, 01:57 PM
Well I can't say much for redhat or mandrake, because once upon a time I did run mandrake, did try to upgrade glibc and ended up formatting and re-installing due to the fact I was well a HUGE newbie.
So stick with what Sweede said. http://www.linuxnewbie.org/ubb/redface.gif]