Thursday, December 10, 2009

/usr/bin/ld: crt1.o: No such file: No such file or directory

Oracle 11gR1 (x64) Client + RHEL 5.3 (x86_64)

What happened:
Applying patchset


INFO: gcc -m32 -o /u01/app/oracle/product/11.1.0/client/sqlplus/bin/sqlplus32 -L/u01/app/oracle/product/11.1.0/client/sqlplus/lib32/ -L/u01/app/oracle/produc
t/11.1.0/client/lib32/ -L/u01/app/oracle/product/11.1.0/client/lib32/stubs/ /u01/app/oracle/product/11.1.0/client/sqlplus/lib32/s0afimai.o -lsqlplus -lclnts
h `cat /u01/app/oracle/product/11.1.0/client/lib32/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.1.0/client/
lib32/ldflags` -lncrypt11 -lnsgr11 -lnzjs11
INFO: -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lc
ore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /u01/app/oracle/product/11.1.0/client/lib32/ldflags` -lncrypt11 -l
nsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.1.0/client/lib32/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnet
d11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11
INFO: -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11
-lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `c
at /u01/app/oracle/product/11.1.0/client/lib32/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.1.0/client/lib32 -lm -lpthread `cat /u01/app/oracle/produc
t/11.1.0/client/lib32/sysliblist` -ldl -lm -lpt
INFO: hread -L/u01/app/oracle/product/11.1.0/client/lib32

INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory

INFO: collect2: ld returned 1 exit status

INFO: make[1]: Leaving directory `/u01/app/oracle/product/11.1.0/client/sqlplus/lib'

INFO: make[1]: *** [/u01/app/oracle/product/11.1.0/client/sqlplus/bin/sqlplus32] Error 1

INFO: make: *** [newsqlplus32] Error 2

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/u01/app/oracle/product/11.1.0/client/sqlplus/lib/'. See '/u01/app/oraInvento
ry/logs/installActions2009-12-10_10-46-17AM.log' for details.
Exception Severity: 1
INFO: The output of this make operation is also available at: '/u01/app/oracle/product/11.1.0/client/install/make.log'

Root cause:
32bit "glibc-devel" has not been installed.

[oracle@vmxdb01 ~]$ rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
glibc-devel-2.5-34 (x86_64)


Using "yum" to install glibc-devel-2.5-34.i386

[oracle@vmxdb01 ~]$ rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
glibc-devel-2.5-34 (i386)
glibc-devel-2.5-34 (x86_64)