Hi, I am having problems with statically linked openmotif applications core dumping on opensuse 10.2. These applications worked fine on suse 9.3. When linked dynamically these applications seem to work fine. I get no compile or link errors. If I try to get a backtrace from the core file using gdb I just get 5 or 6 addresses but no symbols. This is a really odd error. If I can provide more information I will be glad to do that. Any ideas?
Here is the output from the build: Mon Sep 3 19:06:29 CDT 2007 Started make make[1]: Entering directory `/home/kr/odacs_4.2/app/utils/messagebox/src' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/kr/odacs_4.2/app/utils/messagebox/src' make[1]: Entering directory `/home/kr/odacs_4.2/app/utils/messagebox/obj' ...updating dependencies for messagebox.cpp make[1]: Leaving directory `/home/kr/odacs_4.2/app/utils/messagebox/obj' make[1]: Entering directory `/home/kr/odacs_4.2/app/utils/messagebox/obj' g++ -I/home/kr/odacs_4.2/app/include -I/home/kr/odacs_4.2/ate/include -I/home/kr/odacs_4.2/hpc/include -I/home/kr/devtools_4.2/include -I/home/kr/odacs_4.2/pal/include -I/usr/X11R6/include -I/home/kr/odacs_4.2/app/include -I/home/kr/odacs_4.2/ate/include -I/home/kr/odacs_4.2/hpc/include -I/home/kr/devtools_4.2/include -I/home/kr/odacs_4.2/pal/include -DOTCL_STATIC -DOS_SUSE -DOS_VERSION=100200 -DKERN_LINUX -DKERN_VERSION=20619 -DCPU_X86 -DIO_SBS618 -I../src -D_REENTRANT -D_THREADS -pipe -march=pentium2 -O2 -Wall -c ../src/messagebox.cpp -o messagebox.o make[1]: Leaving directory `/home/kr/odacs_4.2/app/utils/messagebox/obj' make[1]: Entering directory `/home/kr/odacs_4.2/app/utils/messagebox/bin' ... building version.o g++ ./version.o ../obj/messagebox.o /home/kr/odacs_4.2/pal/lib/libpalt.a /home/kr/odacs_4.2/pal/lib/libtimet.a /home/kr/odacs_4.2/pal/lib/libtpro.a /home/kr/odacs_4.2/pal/lib/libbaset.a -L/home/kr/odacs_4.2/app/lib -L/home/kr/odacs_4.2/ate/lib -L/home/kr/odacs_4.2/hpc/lib -L/home/kr/devtools_4.2/lib -L/home/kr/odacs_4.2/pal/lib -static -L/home/kr/odacs_4.2/pal/lib /home/kr/odacs_4.2/pal/lib/libpalt.a /home/kr/odacs_4.2/pal/lib/libtimet.a /home/kr/odacs_4.2/pal/lib/libtpro.a /home/kr/odacs_4.2/pal/lib/libbaset.a -L/usr/X11R6/lib -L/usr/lib -L/lib -lXmu -lXm -lXft -lfontconfig -lexpat -lfreetype -lgz -lXrender -lXmuu -lMrm -lXpm -lc -lXt -lSM -lICE -lXp -lXpm -lX11 -ldl -lXdmcp -lXau -lXext -lXcursor -lresolv -lpthread -lm -lrt -o messagebox /usr/lib/libX11.a(CrGlCur.o): In function `open_library': (.text+0x3b): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libXm.a(Xmos.o): In function `XmeGetHomeDirName': (.text+0x551): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libXm.a(Xmos.o): In function `XmeGetHomeDirName': (.text+0x5a2): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libICE.a(icetrans.o): In function `_IceTransSocketOpen': (.text+0xf6c): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libX11.a(imLcIm.o): In function `_XimLocalOpenIM': (.text+0x12f1): warning: memset used with constant zero length parameter; this could be due to transposed parameters /usr/lib/libICE.a(icetrans.o): In function `_IceTransGetPeerNetworkId': (.text+0x4ae3): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libICE.a(icetrans.o): In function `_IceTransSocketUNIXConnect': (.text+0x3a5c): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libICE.a(icetrans.o): In function `_IceTransSocketINETConnect': (.text+0x401b): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking make[1]: Leaving directory `/home/kr/odacs_4.2/app/utils/messagebox/bin' Mon Sep 3 19:06:36 CDT 2007 Completed make This is the output of running the messagebox program and then doing a backtrace using gdb on the core file: sylvester:/home/kr/odacs_4.2/app/utils/messagebox # ./bin/messagebox Segmentation fault (core dumped) sylvester:/home/kr/odacs_4.2/app/utils/messagebox # gdb -c core ./bin/messagebox GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `./bin/messagebox'. Program terminated with signal 11, Segmentation fault. #0 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () #1 0xb7d8a7e4 in ?? () #2 0x0000001e in ?? () #3 0xbff6cfec in ?? () #4 0x00000000 in ?? () (gdb) -- kr -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]