[openib-general] compile error -libibverbs (64-bit)
Pradeep Satyanarayana
pradeep at us.ibm.com
Tue Nov 15 17:06:50 PST 2005
I am trying to compile some of the userspace utilities as 64-bit apps on a
ppc64 machine with a
sles9sp2 distribution.
I am getting the following compile errors (appended below). Yes, I am
using some older bits, but I
do not think that is the issue here.
I have exported LDFLAGS=-L /lib64 -m64 and also LD_LIBRARY_PATH=/lib64
I have modified Makefile.am to add -m64 to both AM_CFLAGS and
src_libibverbs_la_CFLAGS too.
ldconfig -p | grep sysfs gives me the following:
libsysfs.so.1 (libc6,64bit) => /lib64/libsysfs.so.1
libsysfs.so.1 (libc6) => /lib/libsysfs.so.1
libsysfs.so (libc6) => /usr/lib/libsysfs.so
which appears to be right. Yet, libtool seems to be picking up the wrong
libsysfs.so
(hard coded path from somewhere). What am I missing?
Pradeep
pradeep at us.ibm.com
-------------------------------------------------------------------------------------------------------------------------
make all-am
make[1]: Entering directory
`/home/pradeep/trunk-3675/src/userspace/libibverbs'
/bin/sh ./libtool --mode=link gcc -g -Wall -D_GNU_SOURCE -m64 -g -O2 -L
/lib64
-m64 -o src/libibverbs.la -rpath /usr/local/lib -version-info 1
-export-dynamic
-Wl,--version-script=./src/libibverbs.map src_libibverbs_la-cmd.lo
src_libibver
bs_la-device.lo src_libibverbs_la-init.lo src_libibverbs_la-memory.lo
src_libibv
erbs_la-verbs.lo -lsysfs -lpthread -ldl
gcc -shared .libs/src_libibverbs_la-cmd.o .libs/src_libibverbs_la-device.o
.lib
s/src_libibverbs_la-init.o .libs/src_libibverbs_la-memory.o
.libs/src_libibverbs
_la-verbs.o -L/home/pradeep/trunk-3675/src/userspace/libibverbs
/usr/lib/libsys <------error here
fs.so -lpthread -ldl -m64 -m64 -Wl,--version-script=./src/libibverbs.map
-Wl,-s
oname -Wl,libibverbs.so.1 -o src/.libs/libibverbs.so.1.0.0
/usr/lib/libsysfs.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [src/libibverbs.la] Error 1
make[1]: Leaving directory
`/home/pradeep/trunk-3675/src/userspace/libibverbs'
make: *** [all] Error 2
~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051115/8ae10264/attachment.html>
More information about the general
mailing list