You are not logged in.

#1 2005-06-08 13:43:22

alecbrecher
Member
Registered: 2005-05-25
Posts: 11

glibc 2.2

I am trying to install IBM DB2 client on my Arch box kernel 2.6.  The installation requires GLIBC 2.2.  Arch has GLIBC 2.3.

Does anyone know if I can install the source GLIBC 2.2 without really destroying the system?  What are the pitfalls?  Is there an Arch package for GLIBC 2.2 somewhere?

Thank you.  -Alec

Offline

#2 2005-06-08 15:00:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: glibc 2.2

you can simply use abs and change the version number of the glibc PKGBUILD... but be careful so you don't kludge everything (why not try it with glibc 2.3?)

Offline

#3 2005-06-08 15:06:09

alecbrecher
Member
Registered: 2005-05-25
Posts: 11

Re: glibc 2.2

Thank you for your response - sorry to be so thick headed - but could explain more fully how to do what you are proposing?  THank you.  -Alec

Offline

#4 2005-06-08 15:08:08

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Offline

#5 2005-06-08 15:19:25

alecbrecher
Member
Registered: 2005-05-25
Posts: 11

Re: glibc 2.2

So I modify the version number in my existing glibc PKGBUILD file, then remake and reinstall the package.

What pitfalls should I watch out for.  You mentioned "don't kludge it", where?

Thank you for your help.

Offline

#6 2005-06-08 15:41:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: glibc 2.2

alecbrecher wrote:

What pitfalls should I watch out for.  You mentioned "don't kludge it", where?

Well, here's the current install in /lib:

-rwxr-xr-x  1 root root 1341462 2005-01-06 13:32 libc-2.3.3.so
lrwxrwxrwx  1 root root      13 2005-05-05 17:42 libc.so.6 -> libc-2.3.3.so

changing the version number should be sufficient to properly install libc-2.2.X.so.
However, the symlink could cause issues if it switches... some stuff on your machine will be compiled against 2.3 and will bomb if it hits 2.2 (maybe not always).  You may want to even directly copy the libc-2.2.X.so file to /lib (yes it's messy) to verify things still work.

I would try and see if DB2 works agains 2.3 first (it might unless the ABI changed), if it doesn't maybe try to install just 2.2 and see if other apps still work fine (you could then set pacman to IgnorePkg=glibc)

Offline

#7 2005-06-08 17:06:09

JGC
Developer
Registered: 2003-12-03
Posts: 1,660

Re: glibc 2.2

Don't overwrite your glibc with 2.2.x, it will render your archlinux unusable, since everything is linked to 2.3 with GLIBC_2_3_x symbols, which aren't available in glibc 2.2. You will most certainly break all C++ applications with that.

For DB2: try with glibc 2.3.x, if that doesn't work, try to run it with setting LD_ASSUME_KERNEL=2.4.0.

Offline

#8 2005-06-08 17:28:56

alecbrecher
Member
Registered: 2005-05-25
Posts: 11

Re: glibc 2.2

Thank you.  Still no dice.  The DB2 client is for linux kernel v 2.6 but they are still requiring glibc 2.2.  Since IBM is in bed with Novell/Suse that must be the level they are maintaining.

Thanks again.  -Alec

Offline

#9 2005-06-15 16:09:30

alecbrecher
Member
Registered: 2005-05-25
Posts: 11

Re: glibc 2.2

In case anyone else is interested in installing an IBM DB2 client, I was finally able to resolve the issue successfully.

1) get the rpm package because the db2_install script uses rpm commands.

2) modify the db2_install script by adding "--nodeps" switch to the rpm command.  This get's around rpm's desire for GLIBC 2.2.  It turns out the proper db2 client is quite happy with GLIBC 2.3.

Cheers,  I am SO GLAD I will be able use the Arch distro....
-Alec

Offline

Board footer

Powered by FluxBB