Hi Benjamin,
I had the same problem with "threadInit" when compiling against
3.13.4 under Solaris 8.
My solution was to comment the call out of the code.
Cheers,
Andy
On Mon, 21 Jan 2002, Benjamin Sailer wrote:
> Hello,
>
> trying to compile caTCL extension (version 3/00 downloaded from
> http://www.aps.anl.gov/epics/extensions/tcl/index.php)
> with EPICS base R3.14beta1, I got a warning due to undeclared and
> missing function:
> ...
> gcc -pedantic -O -Wall -I -I -I -I -I/usr/X11R6/include/X11 -DHAVE_STDLIB_H=1 -DUNIX_SOCKET=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_MALLOC_H=1 -D_X86_ -Dlinux -DUNIX -I. -I.. -I/home/bsailer/hades/epics/2_4/include -I/home/bsailer/hades/epics/2_4/include/os/Linux -I/home/bsailer/hades/epics/2_4/extensions/include -I/home/bsailer/hades/epics/2_4/base_3_14beta1/include -I/home/bsailer/hades/epics/2_4/base_3_14beta1/include/os/Linux -fPIC -c ../tclCaCmd.c
> ../tclCaCmd.c: In function `tclCaCmd':
> ../tclCaCmd.c:159: warning: implicit declaration of function `atof'
> ../tclCaCmd.c:127: warning: unused variable `number'
> ../tclCaCmd.c:127: warning: unused variable `offset'
> ../tclCaCmd.c:127: warning: unused variable `code'
> ../tclCaCmd.c:126: warning: unused variable `status'
> ../tclCaCmd.c:126: warning: unused variable `chan'
> ../tclCaCmd.c:125: warning: unused variable `listArgv'
> ../tclCaCmd.c:125: warning: unused variable `listArgc'
> ../tclCaCmd.c:124: warning: unused variable `res'
> ../tclCaCmd.c:124: warning: unused variable `group'
> ../tclCaCmd.c:124: warning: unused variable `value'
> ../tclCaCmd.c: In function `Tclca_Init':
> ../tclCaCmd.c:440: warning: implicit declaration of function `threadInit'
> ... (while compiling, and) ...
> g++ -o libtclCa8.so -O -Wall -I -I -I -I -I/usr/X11R6/include/X11 -DHAVE_STDLIB_H=1 -DUNIX_SOCKET=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_MALLOC_H=1 -D_X86_ -Dlinux -DUNIX -I. -I.. -I/home/bsailer/hades/epics/2_4/include -I/home/bsailer/hades/epics/2_4/include/os/Linux -I/home/bsailer/hades/epics/2_4/extensions/include -I/home/bsailer/hades/epics/2_4/base_3_14beta1/include -I/home/bsailer/hades/epics/2_4/base_3_14beta1/include/os/Linux -fPIC -shared -Wl,-soname,libtclCa8.so -L/home/bsailer/hades/epics/2_4/base_3_14beta1/lib/linux-x86/ -L/usr/X11R6/lib/ -lpthread -lreadline -lcurses -lrt tclCa.o tclCaHash.o tclCaCmd.o -lBLT -ltk -ltcl -lca -lCom -lX11 -lts
> /usr/bin/ld: cannot find -lts
> ...
> If I skip the library "ts", I can compile "litclCa8.so", but then making
> the et_wish in the interpreters tree, I get
> ...
> g++ -o et_wish -O -Wall -D_X86_ -Dlinux -DUNIX -I. -I.. -I/home/bsailer/hades/epics/2_4/include -I/home/bsailer/hades/epics/2_4/include/os/Linux -I/home/bsailer/hades/epics/2_4/extensions/include -I/home/bsailer/hades/epics/2_4/base_3_14beta1/include -I/home/bsailer/hades/epics/2_4/base_3_14beta1/include/os/Linux -L/home/bsailer/hades/epics/2_4/base_3_14beta1/lib/linux-x86/ -L/home/bsailer/hades/epics/2_4/lib/linux-x86/ -L/usr/X11R6/lib/ -lpthread -lreadline -lcurses -lrt et_wishAppInit.o -ltclCa8 -ltk -ltcl -lBLT -lca -lCom -lX11 -lm
> /home/bsailer/hades/epics/2_4/lib/linux-x86//libtclCa8.so: undefined reference to `threadInit'
> ...
>
> Has anybody tried and managed to compile ET with the new EPICS release?
> Is this extension supported and did I get the appropriate version for
> R3.14?
>
> Thanks
>
> Benjamin
>
> --
> *****************************************************************
> Benjamin Sailer
> eMail: [email protected]
> *****************************************************************
> You'll see it's all a show, keep on laughing as You go
> just remember that the last laugh is on You
>
>
>
--------------------------------------------------------------------
Observatory Sciences Limited Email: [email protected]
William James House Tel: 44 - (0)1223 - 508259
Cowley Road Fax: 44 - (0)1223 - 508258
Cambridge, CB4 0WX, UK http://www.observatorysciences.co.uk
- Replies:
- Re: caTCL with R3.14 and Linux Benjamin Sailer
- References:
- caTCL with R3.14 and Linux Benjamin Sailer
- Navigate by Date:
- Prev:
caTCL with R3.14 and Linux Benjamin Sailer
- Next:
[no subject] Lynn Foth
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
caTCL with R3.14 and Linux Benjamin Sailer
- Next:
Re: caTCL with R3.14 and Linux Benjamin Sailer
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|