<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Thanks, changed my configure line to include --enable-shared. I'm doing this on a 32-bit system:<br><br>./configure --prefix=/home/rajeev/FATHOM/lib/CGM --with-cubit=/home/rajeev/cubit-32 --enable-debug --enable-shared <br><br>I'm getting a seg fault now. It seems to be related to Ubuntu distribution:<br><span><a target="_blank" href="https://bugs.launchpad.net/ubuntu/+source/pciutils/+bug/690431">https://bugs.launchpad.net/ubuntu/+source/pciutils/+bug/690431</a></span><br><br><br>rajeev@nix:~/FATHOM/source/CGM/itaps/.libs$ ./testgeom<br>Segmentation fault<br>rajeev@nix:~/FATHOM/source/CGM/itaps/.libs$ gdb testgeom<br>This GDB was configured as "i686-linux-gnu".<br>.<br>Reading symbols from /home/rajeev/FATHOM/source/CGM/itaps/.libs/testgeom...done.<br>(gdb) r<br>Starting program:
/home/rajeev/FATHOM/source/CGM/itaps/.libs/testgeom <br>[Thread debugging using libthread_db enabled]<br><br>Program received signal SIGSEGV, Segmentation fault.<br>__memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:1279<br>1279 ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S: No such file or directory.<br> in ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S<br>(gdb) <br><br><br> <font style="font-family:arial, helvetica, sans-serif;" size="2">Rajeev</font><br><div><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Steve Jackson <sjackson@cae.wisc.edu><br><b><span style="font-weight: bold;">To:</span></b> Rajeev Jain <jain@mcs.anl.gov><br><b><span style="font-weight: bold;">Cc:</span></b> Developer
information for cgma <cgma-dev@lists.mcs.anl.gov><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, December 17, 2010 10:31:41<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [cgma-dev] error in make check<br></font><br>If you're building against 32-bit CUBIT on a 64-bit machine, you probably need to add "--enable-32bit" to your CGM configure line.<br>~S<br><br>On Dec 16, 2010, at 18:56 , Rajeev Jain wrote:<br><br>> Hi,<br>> <br>> 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: <br>> <br>> ./configure --prefix=/home/rajeev/FATHOM/lib/CGM --with-cubit=/home/rajeev/cubit-32 --enable-debug<br>> <br>> <br>> rajeev@nix:~/FATHOM/source/CGM/itaps$ make testgeom<br>> <br>> <br>> /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<br>> 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<br>> ./.libs/libiGeom.a(iGeom_CGMA.o): In function `iGeom_load_cub_geometry':<br>> /home/rajeev/FATHOM/source/CGM/itaps/iGeom_CGMA.cc:6260: warning: the use of `tmpnam' is dangerous, better use `mkstemp'<br>> <br>> <br>> /usr/bin/ld.bfd.real: ./.libs/libiGeom.a(iGeom_CGMA.o): undefined reference to symbol 'MergeTool::merge_volumes(DLIList<RefVolume*>&, bool)'<br>> /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<br>> /home/rajeev/cubit-32/bin/libcubit_geom.so: could not read symbols: Invalid operation<br>> collect2: ld returned 1 exit status<br>> make: *** [testgeom] Error 1<br>> <br>> <br>> rajeev@nix:~/FATHOM/source/CGM/itaps$ ls -l .libs/<br>> <br>> <br>> total 1420<br>> -rw-r--r-- 1 rajeev rajeev 1444022 2010-12-16 18:10 libiGeom.a<br>> lrwxrwxrwx 1 rajeev rajeev 14 2010-12-16 18:10 libiGeom.la -> ../libiGeom.la<br>> -rw-r--r-- 1 rajeev rajeev 1020 2010-12-16 18:10 libiGeom.lai<br>> <br>> <br>> 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.<br>> <br>> Rajeev<br>> <br>> Send to CGMA announce instead of dev.<br><br></div></div>
</div><br></body></html>