niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Debian
Compile programs on sarge (glibc 2.3.2) to run on woody (glibc 2.2.5)?
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Reid Priedhorsky
*nix forums beginner


Joined: 20 Feb 2005
Posts: 22

PostPosted: Sat Feb 05, 2005 7:20 pm    Post subject: Compile programs on sarge (glibc 2.3.2) to run on woody (glibc 2.2.5)? Reply with quote

Dear group,

I would like to compile programs on my sarge box and have them run
correctly on a woody box. Sometimes (most of the time?), this works fine.
However, sometimes it breaks; when running on the woody box I get:

/lib/libc.so.6: version `GLIBC_2.3' not found (required by ./dlc)

An objdump analysis on the program reveals dependency on two glibc 2.3
symbols:

00000000 F *UND* 00000071 __ctype_toupper_loc@@GLIBC_2.3
00000000 F *UND* 00000071 __ctype_b_loc@@GLIBC_2.3

When compiled on woody, the program works fine on both systems.
The two __ctype* symbols appear in the woody-compiled program as:

080adf48 g O .bss 00000004 __ctype_toupper@@GLIBC_2.0
080adf4c g O .bss 00000004 __ctype_b@@GLIBC_2.0

So -- is there anything I can do to request that glibc 2.3-specific
symbols not be used when I compile programs (using current sarge gcc and
toolchain)?

Thanks,

Reid


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Roberto Sanchez
*nix forums Guru


Joined: 10 Mar 2005
Posts: 1211

PostPosted: Sat Feb 05, 2005 7:30 pm    Post subject: Re: Compile programs on sarge (glibc 2.3.2) to run on woody (glibc 2.2.5)? Reply with quote

Reid Priedhorsky wrote:
Quote:
Dear group,

I would like to compile programs on my sarge box and have them run
correctly on a woody box. Sometimes (most of the time?), this works fine.
However, sometimes it breaks; when running on the woody box I get:

/lib/libc.so.6: version `GLIBC_2.3' not found (required by ./dlc)

An objdump analysis on the program reveals dependency on two glibc 2.3
symbols:

00000000 F *UND* 00000071 __ctype_toupper_loc@@GLIBC_2.3
00000000 F *UND* 00000071 __ctype_b_loc@@GLIBC_2.3

When compiled on woody, the program works fine on both systems.
The two __ctype* symbols appear in the woody-compiled program as:

080adf48 g O .bss 00000004 __ctype_toupper@@GLIBC_2.0
080adf4c g O .bss 00000004 __ctype_b@@GLIBC_2.0

So -- is there anything I can do to request that glibc 2.3-specific
symbols not be used when I compile programs (using current sarge gcc and
toolchain)?


Out of curiosity, why not build a Woody chroot with the development
tools only installed inside of it? That way you can develop on your
Sarge box and then compile and fix any issues if the compile fails
in your Woody chroot.

-Roberto

--
Roberto Sanchez
http://familiasanchez.net/~sanchezr
Back to top
Reid Priedhorsky
*nix forums beginner


Joined: 20 Feb 2005
Posts: 22

PostPosted: Sun Feb 06, 2005 1:20 am    Post subject: Re: Compile programs on sarge (glibc 2.3.2) to run on woody (glibc 2.2.5)? Reply with quote

On Sat, 05 Feb 2005 21:30:19 +0100, Roberto Sanchez wrote:
Quote:

Reid Priedhorsky wrote:

I would like to compile programs on my sarge box and have them run
correctly on a woody box. Sometimes (most of the time?), this works fine.
However, sometimes it breaks; when running on the woody box I get:

/lib/libc.so.6: version `GLIBC_2.3' not found (required by ./dlc)

An objdump analysis on the program reveals dependency on two glibc 2.3
symbols:

00000000 F *UND* 00000071 __ctype_toupper_loc@@GLIBC_2.3
00000000 F *UND* 00000071 __ctype_b_loc@@GLIBC_2.3

When compiled on woody, the program works fine on both systems.
The two __ctype* symbols appear in the woody-compiled program as:

080adf48 g O .bss 00000004 __ctype_toupper@@GLIBC_2.0
080adf4c g O .bss 00000004 __ctype_b@@GLIBC_2.0

So -- is there anything I can do to request that glibc 2.3-specific
symbols not be used when I compile programs (using current sarge gcc and
toolchain)?


Out of curiosity, why not build a Woody chroot with the development
tools only installed inside of it? That way you can develop on your
Sarge box and then compile and fix any issues if the compile fails
in your Woody chroot.

Well, that's more effort and disk space than I'd like to put into it.
Right now I can just copy the source over to the woody box and compile
there.

To clarify, this happens on several different programs, some of which I
wrote and some of which I didn't. "The program" in my original post is one
that didn't work that I decided to investigate recently. The other time it
happened, there was something similar but it might have been a different
symbol that was the culprit. I wouldn't know how to "fix any issues"
because I don't know what is bringing in the glibc-2.3 symbols -- I
certainly didn't call the offending functions in the program I wrote.

Thanks,

Reid
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 2:30 am | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Debian
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Sound Configuration problem on clean Sarge install Richard Cookson Debian 0 Fri Jul 21, 2006 2:30 pm
No new posts canīt ether-wake a sarge machine Bruno Buys Debian 0 Thu Jul 20, 2006 5:00 pm
No new posts Help getting this to compile Allan M. Bruce C 3 Thu Jul 20, 2006 10:31 am
No new posts python compile code object -- reverse how to leo python 1 Wed Jul 19, 2006 10:34 pm
No new posts latest configuration supported by Sarge Sumith augustine Debian 0 Wed Jul 19, 2006 12:40 pm

Free Mmorpg | Debt Consolidation | Libros de historia | Xbox Mod Chips | Car Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2137s ][ Queries: 16 (0.1286s) ][ GZIP on - Debug on ]