Before I start to fight this battle, I was wondering if anyone else
has already fought this and won....
I'm building R3.14.2 on a linux RH8.0 box. The iocSh example runs
just fine build with shared libraries [STATIC_BUILD=NO]. But I'd like
to build static binaries so they can be simply copied to a pc104 card
w/o chasing down all the shared libraries. With STATIC_BUILD=YES the
iocSh example seg. faults upon iocInit.....gdb dump follows.
epics> iocInit()
Program received signal SIG32, Real-time event 32.
0x081667e6 in sigsuspend ()
(gdb) where
#0 0x081667e6 in sigsuspend ()
#1 0x080fff91 in __pthread_wait_for_restart_signal ()
#2 0x080ffdb7 in pthread_create ()
#3 0x080f4e45 in epicsThreadCreate (name=0x81e06c9 "errlog",
priority=10, stackSize=0, funptr=0x80e91d4 <errlogThread>, parm=0x0)
at ../../../src/libCom/osi/os/posix/osdThread.c:363
#4 0x080e9035 in errlogInitPvt (arg=0xbffff210) at
../../../src/libCom/error/errlog.c:322
#5 0x080f4d09 in epicsThreadOnceOsd (id=0x820668c, func=0x80e8ed0
<errlogInitPvt>, arg=0xbffff210) at
../../../src/libCom/osi/os/posix/osdThread.c:344
#6 0x080e9086 in errlogInit (bufsize=0) at
../../../src/libCom/error/errlog.c:334
#7 0x080e8869 in errlogPrintf (pFormat=0x81cf021 "Starting
iocInit\n") at ..../../../src/libCom/error/errlog.c:107
#8 0x0806eccd in iocInit () at ../iocInit.c:82
#9 0x0806eb8c in iocInitCallFunc (args=0x826dbc8) at
../dbAccessRegister.c:68
#10 0x0806d1c0 in iocsh (pathname=0x0) at ../iocsh.cpp:431
#11 0x0804879c in main (argc=1, argv=0xbffff394) at
../casa-apf1Main.cpp:19
#12 0x0815f8a6 in __libc_start_main ()
Other details:
RH8.0 linux
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
If anyone needs more information let me know.....
THANKS!
arne
---
Arne Freyberger
Jefferson Lab Phone: (757) 269-6268
12000 Jefferson Avenue Pager: (757) 680-8884 [email protected]
Newport News, VA 23606 Phax: (757) 269-5800 http://casa.jlab.org