Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6425 - Emerging of cdrtools fails with 'cannot find -lscg'
Summary: Emerging of cdrtools fails with 'cannot find -lscg'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
: 10809 18547 (view as bug list)
Depends on:
Blocks: 6605
  Show dependency tree
 
Reported: 2002-08-13 17:02 UTC by Proteus
Modified: 2003-12-07 09:47 UTC (History)
4 users (show)

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


Attachments
Logfile from Portage (cdrtools-buglog,68.66 KB, text/plain)
2002-08-14 14:11 UTC, Proteus
Details
cdrtools-1.11.29.ebuild (cdrtools-1.11.29.ebuild,1.38 KB, text/plain)
2002-08-14 18:40 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Proteus 2002-08-13 17:02:24 UTC
This bug was encountered running on a P3 400 MHz with a Gentoo-Crypto-Kernel, 
no special/additional use flags where set.
The "emerge kde" command stops when emerging cdrtools-1.11.29.

The last error reported is:
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lscg

I have reinstalled the system and even tried to rebuild all packages 
with "emerge -e world". The bug stayed the same.
When I try to emerge cdrtools alone it still fails.

I consider this a showstopper bug as kde depends on it and for most users that 
will be important.
Comment 1 SpanKY gentoo-dev 2002-08-13 17:31:29 UTC
could you post more of the error ?
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-14 10:58:20 UTC
which gcc?
Comment 3 Proteus 2002-08-14 11:04:11 UTC
According to "gcc -v":
GCC 2.95.3 20010315 (release)

What else informatin could be helpful and how can I report it best?
Is there any "trigger" to tell portage to save a logfile when something goes 
wrong?
Comment 4 Proteus 2002-08-14 11:13:21 UTC
And btw, my PC is a P2 400 not a P3 400 as originally reported.
But I figure that shouldn't really be important.
Comment 5 SpanKY gentoo-dev 2002-08-14 12:13:58 UTC
i just emerge 1.11.29 and although a lot of errors went by complaining about 
missing header/make files, it still worked ...

do this ... `emerge cdrtools >& cdrtools-buglog`
then post that file, 'cdrtools-buglog'
be sure to include the '>&' as that will capture all the output where as '>' 
only captures stdin
Comment 6 Proteus 2002-08-14 14:11:39 UTC
Created attachment 3077 [details]
Logfile from Portage

I posted the logfile of a failed attempt to emerge cdrtools.
Comment 7 SpanKY gentoo-dev 2002-08-14 18:40:33 UTC
Created attachment 3079 [details]
cdrtools-1.11.29.ebuild

just replace /usr/portage/app-cdr/cdrtools/cdrtools-1.11.29.ebuild with this
file, then run emerge again and see if it works ... basically i change emake ->
make
Comment 8 SpanKY gentoo-dev 2002-08-14 18:41:59 UTC
In file included from scsihack.c:125:
scsi-linux-sg.c: In function `sg_settimeout':
scsi-linux-sg.c:985: `CONFIG_JIFFIES' undeclared (first use in this function)
scsi-linux-sg.c:985: (Each undeclared identifier is reported only once
scsi-linux-sg.c:985: for each function it appears in.)
make[2]: *** [OBJ/x86-linux-cc/scsihack.o] Error 1

there is the source of your problem ... the weird thing is, when i compiled 
mine, nowhere in the configured src tree did i have 'CONFIG_JIFFIES' or 'JIFF'
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-14 19:58:04 UTC
I've masked it out for now.
Comment 10 Proteus 2002-08-15 14:44:14 UTC
Hi SpanKY!

I just tried to emerge cdrtools with your "replacement" ebuild.

It still does not work (same error)...
Comment 11 Proteus 2002-08-15 14:51:31 UTC
Seemant Kulleen:

I can see that the ebuild is now included in the package.mask file.
I also did a env-update but It still tries to compile it when I want to emerge 
kde, it gives no warning (not sure if it should) when I try to emerge it 
specifically and it does not show up as masked when I do "emerge -s cdr".

Am I doing something wrong?
Comment 12 Proteus 2002-08-15 14:56:48 UTC
I just found another location where jiffies are mentioned, the Kernel 
configuration:

When one runs "make menuconfig", go into 
'Processor type and features' -> '(1000) Set jiffies for i386 (HZ) (NEW)'.

However there is no explanation given to what that is and what it does or how 
to turn it off.
Comment 13 Proteus 2002-08-15 14:58:49 UTC
I overlooked that while cdrtools-1.11.29 is masked (after I logged off and on 
again) cdrtools 1.11.28 is not and it fails with the exact same error when 
emerging it.

Damn jiffies!
Comment 14 Arcady Genkin (RETIRED) gentoo-dev 2002-08-15 23:32:00 UTC
I have a gut feeling that this bug is actually about the kernel sources/headers.
 Since Drobbins seems to maintain the crypto-sources package, I'm adding him to
the discussion.

Here's what I found in a CVS log for crypto-sources-2.4.19-r7:

  New -r7 crypto and gentoo sources with a little JIFFIES 
  compile fix...

(See
http://www.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/sys-kernel/crypto-sources/crypto-sources-2.4.19-r7.ebuild).

Proteus, what version of crypto-sources package do you have installed?
Comment 15 Proteus 2002-08-16 16:02:01 UTC
I am indeed using the crypto-sources 2.4.19-r7.
Now I guess the fastest workaround is to switch to gentoo-sources or vanilla.

But can anyone fix the bug or explain the jiffies to me?
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-18 01:21:00 UTC
unmasking the .29 ebuild
Comment 17 Arcady Genkin (RETIRED) gentoo-dev 2002-08-20 09:35:29 UTC
Proteus: AFAIK, jiffies are time units used in the kernel.  Could you try
installing a different kernel source tree and attempt compiling the cdrtools
package with them?  Note that you would not have to compile and install a
different kernel, and you can keep the crypto kernel sources as well.  Just
emerge gentoo-sources, update /usr/src/linux to point to the new kernel, and try
to emerge cdrtools.

Thanks.
Comment 18 Proteus 2002-09-12 07:34:43 UTC
Well, I deleted Gentoo, repartinioned everything and installed from scratch.
(It took a while for me...)

Now it works!
(But I got other compile errors now - i.e. mysql-DBI... Strange!!)
Comment 19 SpanKY gentoo-dev 2002-11-16 03:36:57 UTC
*** Bug 10809 has been marked as a duplicate of this bug. ***
Comment 20 Andrew Sayman 2002-11-16 20:56:22 UTC
I had this problem with cdrtools-1.11.39 exactly as the summary states. The
problem had nothing to do with a crypto kernel, because I don't use the crypto
kernel. The problem was that I had the linux symlink in /usr/src pointing to the
gentoo sources instead of the vanilla sources and I use vanilla. I've seen other
bugs related to this, it would nice if gentoo did more to manage the kernel
symlinks.
Comment 21 SpanKY gentoo-dev 2002-11-16 21:25:47 UTC
actually its policy to not mess with /usr/src/linux 
 
its better to let users manage their kernels than force stuff onto them 
Comment 22 Martin Holzer (RETIRED) gentoo-dev 2003-03-31 15:05:41 UTC
*** Bug 18547 has been marked as a duplicate of this bug. ***
Comment 23 cryo 2003-12-07 05:54:34 UTC
I can't get it to work. It just says: 

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lscg
collect2: ld returned 1 exit status
make[1]: *** [OBJ/x86-linux-cc/scgcheck] Error 1
make[1]: Leaving directory `/var/tmp/portage/cdrtools-2.01_alpha20/work/cdrtools-2.01/scgcheck'
make: *** [all] Error 2

I have kernel 2.4.23-pre6aa3
I seems that it has something to do with kernel sources?
Comment 24 Elliott 2003-12-07 09:47:34 UTC
Hi,

I'm getting the "cannot find -lscg" when emergeing cdrdao like as in this bug:

http://bugs.gentoo.org/show_bug.cgi?id=30798

It directed me here, but there isn't a real fix that I can see.