Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41898 - cdrtools don't compile (even don't configure), give some strange errors in includes
Summary: cdrtools don't compile (even don't configure), give some strange errors in in...
Status: RESOLVED DUPLICATE of bug 30798
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Lars Weiler (RETIRED)
URL:
Whiteboard:
Keywords:
: 41897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-17 06:25 UTC by Marco Fabbri
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
Fixed ebuild set (cdrtools.tar.bz2,2.25 KB, application/octet-stream)
2004-02-18 06:03 UTC, Ronald Hummelink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Fabbri 2004-02-17 06:25:26 UTC
Fatal error is this one:

/usr/lib/gcc-lib/i486-pc-linux-gnu/3.3.2/../../../../i486-pc-linux-gnu/bin/ld: cannot find -lscg
collect2: ld returned 1 exit status

but i also have, during al configure something like this:
./RULES/r-gmake.dep:76: OBJ/x86-linux-cc/scgcheck.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/sense.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/dmaresid.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/x86-linux-cc/scsi_scan.d: No such file or directory

i've gcc 3.3.2-r5, with glibc 2.3.2-r9, and kernel 2.6.3-rc3
i use those CFLAGS: O2 -march=pentium2 -fomit-frame-pointer


Reproducible: Always
Steps to Reproduce:
1.emerge cdrtools with my conditions
2.
3.

Actual Results:  
errors

Expected Results:  
install..
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-17 08:07:20 UTC
*** Bug 41897 has been marked as a duplicate of this bug. ***
Comment 2 Jonathan Heaney 2004-02-17 14:26:21 UTC
Are you using a 2.6 kernel?  This _might_ be related to header issues in newer kernels (eject has a similar problem).  Here's what I did as a workaround to get it to compile - I'm still rebuilding my system, so I don't know if it works 100%.

cd /usr/src/linux
mv include include_linux
ln -s /usr/include include
emerge --oneshot cdrtools
rm include
mv include_linux include
Comment 3 Ronald Hummelink 2004-02-18 06:03:10 UTC
Created attachment 25851 [details]
Fixed ebuild set

Schilling also is braindead enough (along with many) to include from
/usr/src/linux/include
this causes breakage if you use latest kernels there. Attached i have ready to
extract in $PORTDIR_OVERLAY/app-cdr a working fix for me.

Included in tarball: mini patch to make cdrtools not look in
/usr/src/linux/include but instead point to the headers installed by
sys-kernel/linux-headers  (/usr/include/linux/include)
Ebuild that applies the patch.

Not attaching redundant seperate files. hope this doesn't inconvencience the
devs too much.
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2004-02-18 08:38:15 UTC
I'm knocking my head on the table...

So, _this_ could be the reason for bug 30798 (this one is only a duplicate) and I should have checked it earlier.  Thanks a lot, Ronald!  I will add the patch immideately.

*** This bug has been marked as a duplicate of 30798 ***
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2004-02-18 09:37:22 UTC
I applied the patch, but changed the path to the kernel-headers to /usr/include/linux (instead of /usr/include/linux/include which does not exist).  But I got a lot of errors.

Using /usr/include/linux/include works in the same way like removing /usr/src/linux (as mentioned in bug 30798), so that cdrtools choose a fall-back and finishes compiling.