Hello,

I'll try tomorrow to run midgard 1.4b4 on a non-SMP-computer...
(1.2.5 was running ok here).


> are the .so's built with -fPIC? And which glibc version do you have
> (reported when running the library)?


It's glibc 2.1:

 # ldd /usr/local/lib/libmidgard.so
         libz.so.1 => /usr/lib/libz.so.1 (0x40023000)
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x40032000)
         libc.so.6 => /lib/libc.so.6 (0x4005f000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

and gcc:    gcc-2.95.2  and  libg++-2.8.1.3

 # gcc -v
 Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs
 gcc version 2.95.2 19991024 (release)


midgard-lib-1.4beta4/configure:
...
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/i486-suse-linux/bin/ld
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
...
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
...
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i486-suse-linux/bin/ld) supports shared
libraries... yes
...
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/i486-suse-linux/bin/ld option to reload object files...
-r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
...


Files were compiled with (not all calls use option -fPIC):

gcc -DPACKAGE=\"midgard-lib\" -DVERSION=\"1.4-beta4\" -DSTDC_HEADERS=1
-DHAVE_CRYPT_H=1 -DHAVE_LIBMYSQLCLIENT=1 -DHAVE_ERRMSG_H=1
-DHAVE_MYSQL_H=1 -I. -I. -I/usr/include/mysql -g -O2
-Wp,-MD,.deps/midgard.pp -c  -fPIC -DPIC midgard.c -o .libs/midgard.lo
...
gcc -DPACKAGE=\"midgard-lib\" -DVERSION=\"1.4-beta4\" -DSTDC_HEADERS=1
-DHAVE_CRYPT_H=1 -DHAVE_LIBMYSQLCLIENT=1 -DHAVE_ERRMSG_H=1 -DHAVE_MYSQL_H=1
-I. -I. -I/usr/include/mysql -g -O2 -Wp,-MD,.deps/repligard.pp -c repligard.c 
-o repligard.o >/dev/null 2>&1

/bin/sh ./libtool --mode=link gcc  -g -O2 -L/usr/lib/mysql -o libmidgard.la
-rpath /usr/local/lib -version-info 4:0:1 midgard.lo format.lo
fmt_russian.lo md5.lo tree.lo repligard.lo  -lz -lcrypt  -lmysqlclient

gcc -shared  midgard.lo format.lo fmt_russian.lo md5.lo tree.lo
repligard.lo  -L /usr/lib/mysql -lz -lcrypt -lmysqlclient -lc  -Wl,-soname
-Wl,libmidgard.so.3 -o .libs/libmidgard.so.3.1.0

ar cru .libs/libmidgard.a  midgard.o format.o fmt_russian.o md5.o tree.o
repligard.o 
ranlib .libs/libmidgard.a


Reiner
-- 
----------------------------------------------------------------------
Deutsche Lebens-Rettungs-Gesellschaft e.V.
AK Internet                                        Reiner Keller
http://www.DLRG.de/                                [EMAIL PROTECTED]
----------------------------------------------------------------------

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to