[CGMa-announce] error in make check

Tim Tautges tautges at mcs.anl.gov
Fri Dec 17 08:21:08 CST 2010


Also, you won't be able to build a fully static version of CGM using the cubit libraries, since they're only shared.

- tim

On 12/16/2010 10:08 PM, Jason Kraftcheck wrote:
> On 12/16/2010 06:57 PM, Rajeev Jain wrote:
>> Please ignore: This must addressed to "Developer information for
>> cgma"<cgma-dev at lists.mcs.anl.gov>;
>>
>> Rajeev
>>
>> ----- Original Message -----
>> From: "Rajeev Jain"<jain at mcs.anl.gov>
>> To: "Announcements for CGM-Argonne"<cgma-announce at lists.mcs.anl.gov>
>> Sent: Thursday, December 16, 2010 6:41:07 PM
>> Subject: [CGMa-announce] error in make check
>>
>> Hi,
>>
>> I'm trying to build a serial, static version of CGM. autoreconf,
>> ./configure and make goes well, but, make check fails with the
>> following error, looking for /libcubit_geom.so. I'm attaching my
>> config.log file. My config options are:
>>
>> ./configure --prefix=/home/rajeev/FATHOM/lib/CGM
>> --with-cubit=/home/rajeev/cubit-32 --enable-debug
>>
>>
>> rajeev at nix:~/FATHOM/source/CGM/itaps$ make testgeom
>>
>>
>> /bin/bash ../libtool --tag=CXX --mode=link g++ -Wall -pipe -pedantic
>> -g -R/home/rajeev/cubit-32/bin -L/home/rajeev/cubit-32/bin -o testgeom
>> testgeom.o libiGeom.la -lm
>> libtool: link: g++ -Wall -pipe -pedantic -g -o testgeom testgeom.o
>> -L/home/rajeev/cubit-32/bin ./.libs/libiGeom.a
>> /home/rajeev/FATHOM/source/CGM/.libs/libcgm.a -lcubiti19 -lm
>> -Wl,-rpath -Wl,/home/rajeev/cubit-32/bin
>> ./.libs/libiGeom.a(iGeom_CGMA.o): In function `iGeom_load_cub_geometry':
>> /home/rajeev/FATHOM/source/CGM/itaps/iGeom_CGMA.cc:6260: warning: the
>> use of `tmpnam' is dangerous, better use `mkstemp'
>>
>>
>> /usr/bin/ld.bfd.real: ./.libs/libiGeom.a(iGeom_CGMA.o): undefined
>> reference to symbol 'MergeTool::merge_volumes(DLIList<RefVolume*>&,
>> bool)'
>> /usr/bin/ld.bfd.real: note:
>> 'MergeTool::merge_volumes(DLIList<RefVolume*>&, bool)' is defined in
>> DSO /home/rajeev/cubit-32/bin/libcubit_geom.so so try adding it to the
>> linker command line
>> /home/rajeev/cubit-32/bin/libcubit_geom.so: could not read symbols:
>> Invalid operation
>> collect2: ld returned 1 exit status
>> make: *** [testgeom] Error 1
>>
>>
>> rajeev at nix:~/FATHOM/source/CGM/itaps$ ls -l .libs/
>>
>>
>> total 1420
>> -rw-r--r-- 1 rajeev rajeev 1444022 2010-12-16 18:10 libiGeom.a
>> lrwxrwxrwx 1 rajeev rajeev 14 2010-12-16 18:10 libiGeom.la ->
>> ../libiGeom.la
>> -rw-r--r-- 1 rajeev rajeev 1020 2010-12-16 18:10 libiGeom.lai
>>
>>
>> Tried explicitly adding the linker by using
>> "LDFLAGS=-L/home/rajeev/cubit-32/bin LIBS=-lcubit_geom" in the config
>> line, it doesn't work.
>>
>
> You need to have the cubit 'bin' directory in your LD_LIBRARY_PATH
>
> - jason
>

-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
          phone: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



More information about the cgma-announce mailing list