Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » suse oracle »

Re: [suse-oracle] 2.6.5-7.283 x86_64 and linking error - ld: unrecognized option '--as-needed'

Michael Taylor

2007-05-11

Replies:

The SA should build/bootstrap a new gcc to a different location, and leave the OS delivered gcc alone. He could use Software Maintenance to reinstall the OS delivered gcc (probably need some online updates after).

Alexei_Roudnev <Alexei_Roudnev@(protected).


All I did was _install SLES9 SP3 from autoinstall profile_, then _run yast2
onlineupgrade from the replication server twice_.
So it is consistant 'SLES9 SP3 + online upgrade_.

gcc... wait a moment...

SP54 spweb@(protected)
Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/specs
Configured with:
../configure --enable-threads=posix --prefix=/usr --with-local-
prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable
-lan
guages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib64 --enab
le-l
ibgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib64 --with-s
yste
m-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
Thread model: posix
gcc version 3.3.3 (SuSE Linux)




----- Original Message -----
From: "Peter Santos"

To: "Alexei_Roudnev" ;

Sent: Thursday, May 10, 2007 2:54 PM
Subject: Re: [suse-oracle] 2.6.5-7.283 x86_64 and linking error - ld:
unrecognized option '--as-needed'


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Spoke to SA who installed this and he recompiled gcc from source initially
.. not sure why, but
> I think that this caused the problems. The gcc specs are different between
my 282 and 283 kernel.
>
> dbt1:/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5 # gcc -v
> Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs
> Configured with:
../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/l
ocal
> - --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c
++,f77,objc,java,ada --disable-checking
> - --libdir=/usr/lib64 --enable-libgcj --with-slibdir=/lib64 --with-system-
zlib --enable-shared --enable-__cxa_atexit
> x86_64-suse-linux
> Thread model: posix
> gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
>
> In the "specs" file, it shows that option "--as-needed', which is part of
the error message that I got from
> the oracle installer.
>
> *libgcc:
>
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared-l
ibgcc:-lgcc --as-needed -lgcc_s%M
> - --no-as-needed}%{shared-libgcc:-lgcc_s%M%{!shared: -lgcc}}}}
>
> When I compare that to my kernel 282 installion, I see something different
in the specs file. No "--as-needed" option!
>
> *libgcc:
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%
{!shared-libgcc:-lgcc
> - -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc
_s%M}%{!shared-libgcc:-lgcc}}}}
>
>
> Alexei,
> in your #283 install, what is the gcc version 'gcc -v' and what does the
spec say for your libgcc definition?
> I'm guessing that compiling gcc from some online source is part of the
problem here.
>
> - -peter
>
>
>
> Peter Santos wrote:
> > Interesting ..
> > Can you send me the output of this command on your system.
> > rpm -qa --queryformat "%-35{NAME} %-35{DISTRIBUTION}
%{VERSION}-%{RELEASE}\n" | sort -k 1,2 -t " " -i
> >
> > I'll diff that output against what I have and go from there.
> >
> > -peter
> >
> >
> > Alexei_Roudnev wrote:
> >>> Extremely weird.
> >>>
> >>> I installed 10R2 on SLES9 Sp3 #283 many many times (both RAC and stand
> >>> alone) and never saw a single linking problem.
> >>> You can take my scripts and try them (tested yesterday last time - we
> >>> rebuild rac laboratory in th e3-rd time).
> >>>
> >>>
> >>> ----- Original Message -----
> >>> From: "Peter Santos"

> >>> To:
> >>> Sent: Thursday, May 10, 2007 1:31 PM
> >>> Subject: [suse-oracle] 2.6.5-7.283 x86_64 and linking error - ld:
> >>> unrecognized option '--as-needed'
> >>>
> >>>
> >>> Folks,
> >>>
> >>> I'm trying to install 10gR2 Clusterware on SLES9 SP3 (kernel 283) and
for
> >>>> some reason it's complaining about
> >>> the ld utility. A few months ago I did the same install on SLES9
kernel
> >>>> 282 without a problem.
> >>> We did a kernel update as recently as yesterday.
> >>>
> >>> Any ideas?
> >>>
> >>> -peter
> >>>
> >>>
> >>>
> >>>
> >>> 10gR2 - Clusterware Installation Installer log
> >>> ++++++++++++++++++++++++++++++++++++++++++++++
> >>>
> >>> INFO: Start output from spawned process:
> >>> INFO: ----------------------------------
> >>> INFO:
> >>>
> >>> INFO: /data/app/crs/oracle/product/10.2.0/crs/bin/genclntsh
> >>>
> >>> INFO:
> >>>>
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin
> >>>> /ld: unrecognized option '--as-needed'
> >>>>
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin
> >>>> /ld: use the --help option for usage information
> >>> INFO: collect2: ld returned 1 exit status
> >>>
> >>> INFO: genclntsh: Failed to link libclntsh.so.10.1
> >>>
> >>> INFO: make: *** [client_sharedlib] Error 1
> >>>
> >>> INFO: End output from spawned process.
> >>> INFO: ----------------------------------
> >>>
> >>>
> >>>
> >>> 10gR2 - Clusterware Installation - make.log
> >>> +++++++++++++++++++++++++++++++++++++++++++
> >>>
> >>> (if [ "compile" = "binary" ] ; then \
> >>> /data/app/crs/oracle/product/10.2.0/crs/bin/gennfgt > nnfgt.c ;\
> >>> TARGET_BINARY_INTERFACE= ;\
> >>> export TARGET_BINARY_INTERFACE ;\
> >>> gcc -c nnfgt.c ;\
> >>> -rm -f /data/app/crs/oracle/product/10.2.0/crs/lib/nnfgt.o ;\
> >>> -mv nnfgt.o /data/app/crs/oracle/product/10.2.0/crs/lib/ ;\
> >>> /usr/bin/ar rv
> >>>> /data/app/crs/oracle/product/10.2.0/crs/lib/libn10.a
> >>> /data/app/crs/oracle/product/10.2.0/crs/lib/nnfgt.o ; fi)
> >>> /usr/bin/make -f ins_net_client.mk client_sharedlib
> >>>
> >>>>
ORACLE_HOME=/data/app/crs/oracle/product/10.2.0/crs//data/app/crs/oracle/pro
> >>>> duct/10.2.0/crs/bin/genclntsh
> >>>>
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin
> >>>> /ld: unrecognized option '--as-needed'
> >>>>
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin
> >>>> /ld: use the --help option for usage information
> >>> collect2: ld returned 1 exit status
> >>> genclntsh: Failed to link libclntsh.so.10.1
> >>> make: *** [client_sharedlib] Error 1
> >>>
> >>> oracle@(protected):>
> >>>>
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin
> >>>> /ld -version
> >>> GNU ld version 2.15.90.0.1.1 20040303 (SuSE Linux)
> >>> Copyright 2002 Free Software Foundation, Inc.
> >>> This program is free software; you may redistribute it under the terms
of
> >>> the GNU General Public License. This program has absolutely no
warranty.
> >>>
> >>>
> >>> Package check
> >>> rpm -q gcc gcc-c++ glibc libaio libaio-devel make openmotif-libs
> >>>> libstdc++-devel glibc-devel-32bit sysstat binutils
> >>> gnome-libs libstdc++ make pdksh xscreensaver
> >>>
> >>> gcc-3.3.5-5
> >>> gcc-c++-3.3.5-5
> >>> glibc-2.3.4-23.2
> >>> libaio-0.3.102-1.2
> >>> libaio-devel-0.3.102-3
> >>> make-3.80-184.1
> >>> openmotif-libs-2.2.2-519.4
> >>> libstdc++-devel-3.3.5-5
> >>> glibc-devel-32bit-9.3-7
> >>> sysstat-5.0.6-4
> >>> binutils-2.15.90.0.1.1-32.17
> >>> gnome-libs-1.4.1.7-682
> >>> libstdc++-3.3.5-5
> >>> make-3.80-184.1
> >>> pdksh-5.2.14-780.7
> >>> xscreensaver-4.20-9
> >>>
> > --
> > To unsubscribe, email: suse-oracle-unsubscribe@(protected)
> > For additional commands, email: suse-oracle-help@(protected)
> > Please see http://www.suse.com/oracle/ before posting
> >>>>
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGQ5Sloyy5QBCjoT0RAnaIAJ9NTDCi21MoT33GZq8LeEFZjRqEmQCeNaBL
> YEaflgb8MO0zLGro25RgwxU=
> =OKVn
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, email: suse-oracle-unsubscribe@(protected)
> For additional commands, email: suse-oracle-help@(protected)
> Please see http://www.suse.com/oracle/ before posting
>
>


--
To unsubscribe, email: suse-oracle-unsubscribe@(protected)
For additional commands, email: suse-oracle-help@(protected)
Please see http://www.suse.com/oracle/ before posting



   
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
©2008 dba.5341.com - Jax Systems, LLC, U.S.A.