Hi gang, I just ran into something weird while trying to rebuild the src.rpm of cdrecord from Packman's site. Here's the output at the end: + gcc -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0 /usr/src/packages/SOURCES/cdinfo.c -o cdinfo + cd mkisofs + ../Gmake.linux apple_driver ==> COMPILING "apple_driver" /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lscg collect2: ld returned 1 exit status make: *** [apple_driver] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.75826 (%build) Does anyone have an idea what this 'apple_driver' thing is? Where do I get it? What is it anyway? Thanks for any info
yonaton@tds.net wrote:
I just ran into something weird while trying to rebuild the src.rpm of cdrecord from Packman's site. Here's the output at the end:
+ gcc -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0 /usr/src/packages/SOURCES/cdinfo.c -o cdinfo + cd mkisofs + ../Gmake.linux apple_driver ==> COMPILING "apple_driver" /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lscg
This is your error. It has nothing to do with the apple driver. It failed to build the lscg libraries. You need to have the kernel sources installed, as cdrecord checks the kernel sources. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
On Monday 15 November 2004 13:43, Joe Morris (NTM) wrote:
yonaton@tds.net wrote:
I just ran into something weird while trying to rebuild the src.rpm of cdrecord from Packman's site. Here's the output at the end:
+ gcc -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0 /usr/src/packages/SOURCES/cdinfo.c -o cdinfo + cd mkisofs + ../Gmake.linux apple_driver ==> COMPILING "apple_driver" /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lscg
This is your error. It has nothing to do with the apple driver. It failed to build the lscg libraries. You need to have the kernel sources installed, as cdrecord checks the kernel sources.
(Trying to learn something) Where do you conclude that from? Or does one simply has to know that scg is in the kernel sources? Cheers, Leen
On Monday 15 November 2004 15:00, Leendert Meyer wrote:
On Monday 15 November 2004 13:43, Joe Morris (NTM) wrote:
yonaton@tds.net wrote:
I just ran into something weird while trying to rebuild the src.rpm of cdrecord from Packman's site. Here's the output at the end:
+ gcc -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0 /usr/src/packages/SOURCES/cdinfo.c -o cdinfo + cd mkisofs + ../Gmake.linux apple_driver ==> COMPILING "apple_driver" /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/l d: cannot find -lscg
This is your error. It has nothing to do with the apple driver. It failed to build the lscg libraries. You need to have the kernel sources installed, as cdrecord checks the kernel sources.
(Trying to learn something) Where do you conclude that from? Or does one simply has to know that scg is in the kernel sources?
It's not in the kernel sources, it's included in cdrtools However, that isn't the problem. The problem is in fact the exact opposite. Jörg Schiller has set cdrtools to include from /usr/src/linux even though it is a user space application (it should get include files from /usr/include), which is a big no-no. So in this case, the solution is in fact to UNinstall the kernel sources. Or at least to do mv /usr/src/linux /usr/src/linux.tmp then the cdrtools compile will succeed, then mv /usr/src/linux.tmp /usr/src/linux to change it back.
On Monday 15 November 2004 16:08, Anders Johansson wrote:
On Monday 15 November 2004 15:00, Leendert Meyer wrote:
On Monday 15 November 2004 13:43, Joe Morris (NTM) wrote:
yonaton@tds.net wrote:
I just ran into something weird while trying to rebuild the src.rpm of cdrecord from Packman's site. Here's the output at the end:
+ gcc -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0 /usr/src/packages/SOURCES/cdinfo.c -o cdinfo + cd mkisofs + ../Gmake.linux apple_driver ==> COMPILING "apple_driver" /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin /l d: cannot find -lscg
This is your error. It has nothing to do with the apple driver. It failed to build the lscg libraries. You need to have the kernel sources installed, as cdrecord checks the kernel sources.
(Trying to learn something) Where do you conclude that from? Or does one simply has to know that scg is in the kernel sources?
It's not in the kernel sources, it's included in cdrtools
However, that isn't the problem. The problem is in fact the exact opposite. Jörg Schiller has set cdrtools to include from /usr/src/linux even though it is a user space application (it should get include files from /usr/include), which is a big no-no.
So in this case, the solution is in fact to UNinstall the kernel sources. Or at least to do
mv /usr/src/linux /usr/src/linux.tmp
then the cdrtools compile will succeed, then
mv /usr/src/linux.tmp /usr/src/linux
to change it back.
How awkward! But I suppose this is most likely described somewhere in an INSTALL file or so... Thanks, Leen
On Monday 15 November 2004 09:08, Anders Johansson wrote:
On Monday 15 November 2004 15:00, Leendert Meyer wrote:
On Monday 15 November 2004 13:43, Joe Morris (NTM) wrote:
yonaton@tds.net wrote:
I just ran into something weird while trying to rebuild the src.rpm of cdrecord from Packman's site. Here's the output at the end:
+ gcc -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0 /usr/src/packages/SOURCES/cdinfo.c -o cdinfo + cd mkisofs + ../Gmake.linux apple_driver ==> COMPILING "apple_driver" /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin /l d: cannot find -lscg
This is your error. It has nothing to do with the apple driver. It failed to build the lscg libraries. You need to have the kernel sources installed, as cdrecord checks the kernel sources.
(Trying to learn something) Where do you conclude that from? Or does one simply has to know that scg is in the kernel sources?
It's not in the kernel sources, it's included in cdrtools
However, that isn't the problem. The problem is in fact the exact opposite. Jörg Schiller has set cdrtools to include from /usr/src/linux even though it is a user space application (it should get include files from /usr/include), which is a big no-no.
So in this case, the solution is in fact to UNinstall the kernel sources. Or at least to do
mv /usr/src/linux /usr/src/linux.tmp
then the cdrtools compile will succeed, then
mv /usr/src/linux.tmp /usr/src/linux
to change it back.
Hot damn! That was it alright! Worked like a charm. Thanks a lot, Anders! I owe ya a 6-pack. John
Anders Johansson <andjoh@rydsbo.net> [Mon, 15 Nov 2004 16:08:50 +0100]:
Jörg Schiller has set cdrtools to include from /usr/src/linux even though it is a user space application
Well, try to convince him otherwise and you'll quickly see that it's impossible to discuss with him ... Philipp
participants (5)
-
Anders Johansson
-
Joe Morris (NTM)
-
Leendert Meyer
-
Philipp Thomas
-
yonaton@tds.net