[openib-general] libtool error under libibmad
Hal Rosenstock
halr at voltaire.com
Fri Feb 10 09:11:03 PST 2006
Hi Michael,
On Fri, 2006-02-10 at 10:11, Michael Di Domenico wrote:
> trying to compile libibmad, but not installing to /usr/local i'm
> installing to /opt/openib. libibcommon and libibumad compiled just
> fine with the same configure syntax
>
> (cd libibmad && ./autogen.sh && ./configure --prefix=/opt/openib
> LDFLAGS=-L/opt/openib/lib CFLAGS=-I/opt/openib/include && make && make
> install)
>
> /bin/sh ./libtool --mode=link --tag=CC gcc -I/opt/openib/include
> -L/opt/openib/lib -o libibmad.la -rpath /opt/openib/lib -version-info
> 1 -export-dynamic -Wl,--version-script=./src/libibmad.map
> libibmad_la-dump.lo libibmad_la-fields.lo libibmad_la-mad.lo
> libibmad_la-portid.lo libibmad_la-resolve.lo libibmad_la-rpc.lo
> libibmad_la-sa.lo libibmad_la-smp.lo libibmad_la-gs.lo
> libibmad_la-serv.lo libibmad_la-register.lo libibmad_la-vendor.lo
> -libumad -libcommon
> grep: /usr/local/lib/libibcommon.la: No such file or directory
> /bin/sed: can't read /usr/local/lib/libibcommon.la: No such file or directory
> libtool: link: `/usr/local/lib/libibcommon.la' is not a valid libtool archive
> make[2]: *** [libibmad.la] Error 1
> make[2]: Leaving directory `/usr/src/trunk/src/userspace/management/libibmad'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/trunk/src/userspace/management/libibmad'
> make: *** [all] Error 2
>
> I worked around the problem by linking /usr/local/lib to
> /opt/openib/lib temp. and it seemed to go through just fine... I'm
> not sure if this is a hardcode somewhere or if this particuliar
> library is picking up something strange that the others didnot
It looks like libibcommon is not installed in /opt/openib/lib for some
reason. What is is that directory ? Also, what is in /opt/openib/include
? Did you do make install the other libraries and in what order (and did
those work) ?
-- Hal
> [root at linux14 libibmad]# ./autogen.sh
> + aclocal -I config
> + libtoolize --force --copy
> Putting files in AC_CONFIG_AUX_DIR, `config'.
> + autoheader
> + automake --foreign --add-missing --copy
> + autoconf
> [root at linux14 libibmad]# ./configure --prefix=/opt/openib
> LDFLAGS=-L/opt/openib/lib CFLAGS=-I/opt/openib/include
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... i686-redhat-linux-gnu
> checking host system type... i686-redhat-linux-gnu
> checking for style of include used by make... GNU
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking dependency style of gcc... gcc3
> checking for a sed that does not truncate output... /bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... g77
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether g77 accepts -g... yes
> checking the maximum length of command line arguments... 32768
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc static flag works... yes
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
> checking for g++ option to produce PIC... -fPIC
> checking if g++ PIC flag -fPIC works... yes
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> appending configuration tag "F77" to libtool
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for g77 option to produce PIC... -fPIC
> checking if g77 PIC flag -fPIC works... yes
> checking if g77 supports -c -o file.o... yes
> checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ANSI C... (cached) none needed
> checking dependency style of gcc... (cached) gcc3
> checking for sys_read_string in -libcommon... yes
> checking for umad_init in -libumad... yes
> checking for ANSI C header files... (cached) yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking for unistd.h... (cached) yes
> checking infiniband/common.h usability... yes
> checking infiniband/common.h presence... no
> configure: WARNING: infiniband/common.h: accepted by the compiler,
> rejected by the preprocessor!
> configure: WARNING: infiniband/common.h: proceeding with the compiler's result
> checking for infiniband/common.h... yes
> checking infiniband/umad.h usability... yes
> checking infiniband/umad.h presence... no
> configure: WARNING: infiniband/umad.h: accepted by the compiler,
> rejected by the preprocessor!
> configure: WARNING: infiniband/umad.h: proceeding with the compiler's result
> checking for infiniband/umad.h... yes
> checking for memset... yes
> checking for strrchr... yes
> checking for strtol... yes
> checking for an ANSI C-conforming const... yes
> checking for inline... inline
> checking whether ld accepts --version-script... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating libibmad.spec
> config.status: creating config.h
> config.status: config.h is unchanged
> config.status: executing depfiles commands
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
More information about the general
mailing list