bugGuile - Bugs: bug #14925, Non-portable binary compilations...

 
 

bug #14925: Non-portable binary compilations on linux

Submitted by:  None
Submitted on:  Mon 07 Nov 2005 05:04:32 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 14 Feb 2006 09:56:01 PM UTC, comment #1:

We think __libc_stack_end is portable enough, we think it's upwardly compatible between glibc versions, which should be enough.

Incidentally, it must be very difficult doing "binary compilations on linux", I wasn't aware the kernel came with a compiler or shell or tools.

Kevin Ryde <kryde>
Project Member
Mon 07 Nov 2005 05:04:32 PM UTC, original submission:

By default, when I built guile on my linux box (debian sarge). it uses the "__libc_stack_end" symbol. This symbol is not portable. When I compile and link my program with the guile libraries, and then try to move the binary to a different linux platform (with a different version of GNU libc), the program won't load with the error:

./no-repl: relocation error: ./no-repl: symbol __libc_stack_end, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference

ldd --version shows glic 2.3.2 on one box, 2.3.5 on the other (it also fails between 2.3.2 and 2.3.3)

My solution was to rebuild guile, but remove the line
"#define HAVE_LIBC_STACK_END 1" from config.h before recompiling (after reconfiguring)

After relinking my executeable with this new version of guile, it still failed due to:
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file "ice-9/boot-9.scm" in load path

which meant I had to distribute along with the contents of
<install dir>/share/guile/1.6/
and set up run scripts to configure GUILE_LOAD_PATH before running my executeable.

As __libc_stack_end is a non-portable symbol, I would like to see it not used by default on the guile build. (or not used at all honestly)

Also, it would be nice if there was a way to statically link the file from the share directory. If there already is and I just missed it while browsing the documentation, I apologize, but I was unable to find it.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 14 Feb 2006 09:56:01 PM UTCkrydeStatusNone=>Need Info
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1