[openib-general] libibcm and librdmacm are broken following removal of libsysfs from libibverbs

Jack Morgenstein jackm at mellanox.co.il
Thu May 25 08:22:52 PDT 2006


Roland's patch removing libsysfs dependency from libibverbs (SVN 7484) has 
resulted in libibcm and librdmacm having compilation errors.

Cause:  These libs still depend on libsysfs, and leaned on libibverbs also 
depending on libsysfs

specifically, userspace file verbs.h no longer does 
#include <sysfs/libsysfs.h> 

If libibcm and librdmacm continue to depend on libsysfs, they must do this 
include themselves (say in files cm.c and cma.c).

I tried that, but this did not fix the problem entirely.  Still get the 
following:
make[2]: Entering directory 
`/tmp/openib_gen2-20060525-1700_check/src/userspace/librdmacm'
/bin/sh ./libtool --tag=CC --mode=link gcc -g -Wall -D_GNU_SOURCE -g -O2  
-L../libibverbs/src -libverbs -o examples/ucmatose  
cmatose.o ./src/librdmacm.la
gcc -g -Wall -D_GNU_SOURCE -g -O2 -o examples/.libs/ucmatose cmatose.o  
-L/tmp/openib_gen2-20060525-1700_check/src/userspace/libibverbs/src ./src/.libs/librdmacm.so /tmp/openib_gen2-20060525-1700_check/src/userspace/libibverbs/src/.libs/libibverbs.so 
-lpthread -ldl
./src/.libs/librdmacm.so: undefined reference to `_dlist_mark_move'
./src/.libs/librdmacm.so: undefined reference to `dlist_destroy'
./src/.libs/librdmacm.so: undefined reference to `sysfs_get_mnt_path'
./src/.libs/librdmacm.so: undefined reference to `dlist_push'
./src/.libs/librdmacm.so: undefined reference to `dlist_start'
./src/.libs/librdmacm.so: undefined reference to `dlist_new'
./src/.libs/librdmacm.so: undefined reference to `sysfs_read_attribute_value'
collect2: ld returned 1 exit status

Please coordinate the libsysfs dependency changes, and please fix the trunk 
(include fixes and make fixes).

Thanks.



More information about the general mailing list