Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296253 - dev-lisp/lush-1.2.1: building with CFLAGS = -Os causes undefined symbol 'stat' when loading libc/stdio
Summary: dev-lisp/lush-1.2.1: building with CFLAGS = -Os causes undefined symbol 'stat...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 337963
  Show dependency tree
 
Reported: 2009-12-08 20:00 UTC by Tommy Pettersson
Modified: 2010-12-15 11:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emergeinfo,3.12 KB, text/plain)
2010-03-28 13:25 UTC, Tommy Pettersson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tommy Pettersson 2009-12-08 20:00:15 UTC
If I build lush with -O2 it works. I guess -Os somehow optimizes away or hides the definition of 'stat', so that dynamically loaded modules that uses it can not be linked. But that is just a guess.


Reproducible: Always

Steps to Reproduce:
1. emerge lush with CFLAGS containing -Os
2. start lush
3. type (libload "libc/stdio")
Actual Results:  
? (libload "libc/stdio")
 [stdio.lsh]
 [idx-macros.lsh]

Dynamically loaded module could not be made executable.
The following symbols are used but not defined:
 stat


Expected Results:  
? (libload "libc/stdio")
 [stdio.lsh]
 [idx-macros.lsh]
= "/usr/share/lush/lsh/libc/stdio.lsh"


gcc version 4.3.4
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-03-26 12:17:51 UTC
Why is this a gentoo bug?
Comment 2 Tommy Pettersson 2010-03-26 16:13:57 UTC
(In reply to comment #1)
> Why is this a gentoo bug?

I think some gentoo packages override CFLAGS and enforce e.g. -O2 during the build. I have no idea if that is appropriate for lush, but I think just having the explanation and a workaround in the bug tracker where others can find it if they fail to emerge lush is worthwhile.

I just wanted to try lush. If I ever start using it more seriously I can investigate and send a more elaborate report of whatever I find to wherever it should go. 
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-03-26 17:24:36 UTC
Hm, now I think that I can understand you. Thank you for reporting this, and it will stay in bugzilla as a reference. Please paste your emerge --info output, and I will try to reproduce the error.
Comment 4 Tommy Pettersson 2010-03-28 13:25:43 UTC
Created attachment 225563 [details]
emerge --info
Comment 5 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-12-15 11:18:49 UTC
RESOLVED, WONTFIX. Package removed from the main tree. For more information, please see bug #337963 .