[openib-general] Problems compiling libmthca-1.0 (RHEL4 rc1 SRPM)

Owen Stampflee ostampflee at terrasoftsolutions.com
Tue Mar 21 13:37:19 PST 2006


make  all-am
make[1]: Entering directory
`/home/owen/yhpc-1.1/src/src/ib/BUILD/libmthca-1.0'
if /bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I.
-I.    -g -Wall -D_GNU_SOURCE -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -m32 -fsigned-char -MT src_mthca_la-mthca.lo -MD -MP -MF
".deps/src_mthca_la-mthca.Tpo" -c -o src_mthca_la-mthca.lo `test -f
'src/mthca.c' || echo './'`src/mthca.c; \
then mv -f ".deps/src_mthca_la-mthca.Tpo"
".deps/src_mthca_la-mthca.Plo"; else rm -f
".deps/src_mthca_la-mthca.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -fsigned-char -MT
src_mthca_la-mthca.lo -MD -MP -MF .deps/src_mthca_la-mthca.Tpo -c
src/mthca.c  -fPIC -DPIC -o .libs/src_mthca_la-mthca.o
In file included from src/mthca.c:47:
src/mthca.h:283: warning: "struct ibv_comp_channel" declared inside
parameter list
src/mthca.h:283: warning: its scope is only this definition or
declaration, which is probably not what you want
In file included from src/mthca.c:48:
src/mthca-abi.h:70: error: field `ibv_cmd' has incomplete type
src/mthca.c:107: warning: initialization from incompatible pointer type
src/mthca.c:109: error: unknown field `resize_cq' specified in
initializer
src/mthca.c:113: error: unknown field `query_srq' specified in
initializer
src/mthca.c:113: warning: initialization from incompatible pointer type
src/mthca.c:116: error: unknown field `query_qp' specified in
initializer
src/mthca.c:116: warning: initialization from incompatible pointer type
src/mthca.c: In function `mthca_alloc_context':
src/mthca.c:139: warning: passing arg 1 of `ibv_cmd_get_context' makes
integer from pointer without a cast
src/mthca.c:139: warning: passing arg 2 of `ibv_cmd_get_context' from
incompatible pointer type
src/mthca.c:139: warning: passing arg 3 of `ibv_cmd_get_context' makes
pointer from integer without a cast
src/mthca.c:139: warning: passing arg 4 of `ibv_cmd_get_context' makes
integer from pointer without a cast
src/mthca.c:139: warning: passing arg 5 of `ibv_cmd_get_context' makes
pointer from integer without a cast
src/mthca.c:139: error: too few arguments to function
`ibv_cmd_get_context'
src/mthca.c: At top level:
src/mthca.c:216: warning: initialization from incompatible pointer type
make[1]: *** [src_mthca_la-mthca.lo] Error 1
make[1]: Leaving directory
`/home/owen/yhpc-1.1/src/src/ib/BUILD/libmthca-1.0'
make: *** [all] Error 2

Not sure whats up, I'm using gcc 3.4.4 as my compiler... not sure if the
API changed in libibverbs but mthca wasnt updated since building
libipathverbs gets similar errors or if I'm dumb and it's user error :)

Thanks in advance,
Owen




More information about the general mailing list