[MBDyn-users] Install MBDyn in debian lenny

masarati at aero.polimi.it masarati at aero.polimi.it
Wed Jul 15 22:59:43 CEST 2009


> Hi Jinwei
>
> I followed your advice...
>
> Libs=-LGFORTRAN cc=Gcc-4.2 CXX=g++-4.2 F77=gfortran-4.2
> ./configure --prefix=/home/alex/Desktop/target
> make
>
>
> the build resulted in this error....  :
>
>
> /bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2   -o mbdyn
> dummy_c.o dummy_f.o mbdyn.o ../mbdyn/base/libbase.la aero/libaero.la
> struct/libstruct.la elec/libelec.la thermo/libthermo.la
> hydr/libhydr.la base/libbase.la ../libraries/libmbwrap/libmbwrap.la
> ../libraries/libann/libann.la -lginac -lcln
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/libraries/liby12/liby12.la
> -lm -larpack -llapack -lblas  -lm -lpthread -lrt -lltdl -lginac -lcln
>  -lltdl
> g++ -g -O2 -o mbdyn dummy_c.o dummy_f.o mbdyn.o
> ../mbdyn/base/.libs/libbase.a aero/.libs/libaero.a
> struct/.libs/libstruct.a elec/.libs/libelec.a thermo/.libs/libthermo.a
> hydr/.libs/libhydr.a base/.libs/libbase.a
> ../libraries/libmbwrap/.libs/libmbwrap.a
> ../libraries/libann/.libs/libann.a
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/libraries/liby12/.libs/liby12.a
> -larpack -llapack -lblas -lm -lpthread -lrt /usr/lib/libginac.so
> /usr/lib/libcln.so /usr/lib/libgmp.so /usr/lib/libltdl.so -ldl
> -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib
> dummy_f.o: In function `dummy_f__':
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn/dummy_f.f:40:
> undefined reference to `s_rsle'
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn/dummy_f.f:40:
> undefined reference to `do_lio'
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn/dummy_f.f:40:
> undefined reference to `e_rsle'
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn/dummy_f.f:41:
> undefined reference to `s_wsle'
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn/dummy_f.f:41:
> undefined reference to `do_lio'
> /home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn/dummy_f.f:41:
> undefined reference to `e_wsle'
> collect2: ld returned 1 exit status
> make[2]: *** [mbdyn] Error 1
> make[2]: Leaving directory
> `/home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory
> `/home/alex/Desktop/FEA/mbdyn/src/mbdyn-1.3.7/mbdyn'
> make: *** [install-recursive] Error 1
>
>
>
> Is there some mor extensive hacking that should be done for MBDyn to
> compile under Debian Lenny 5.0.0 amd64 stable...   wether using
> gfortran or ifort...?

Those functions are defined in libg2c.  But if you compile with gfortran,
libg2c may not be linked by default.  Fortran library functions changed
from 4.2 to later gfortran versions.  You should follow the advice you
received, check whether your system has libg2c, install it if not present,
and explicitly link it by using --with-libf2c=g2c when running configure. 
Or, you can upgrade to a more recent gcc/g++/gfortran.

Cheers, p.



More information about the MBDyn-users mailing list