Privacy and Security Notice

Archived Messages for CDEV_1997@cebaf.gov: Re: first cdev application

Re: first cdev application

Walt Akers (akers@CEBAF.GOV)
Wed, 02 Jul 1997 08:24:19 -0400 (EDT)

Ted:

I'd be interested to here what Jie has to say about this
because he has more experience with CDEV on Solaris than
I do, however, it looks as though you may not have fully
compiled the CDEV library.

The objects that the compiler is having troubl finding are
components of the libcdev.so. So, I would ask the following
questions:

1) Did the utility programs that are distributed with CDEV
(cdevUtil, cddl, uncompile) compile correctly and do they run?

2) Did you get any peculiar warning messages or errors when you
were compiling CDEV.

3) If you rerun make in the CDEV/src directory does it attempt
to remake any of the object files (this would indicate that
at least one of the sources is out of date).

Barring any of the above, it is also possible that you are employing
the cdevDevice -OR- cdevCollection in a way that is contradictory to
the original design... If the above options don't shed any light,
get back to me and we'll look into it further.

Walt

P.S. There could also be a bug in our Solaris implementation,
but, I like to hope that's not the case.

>
> Well, I think I've got a service layer written for
> one of our APIs and I've just written my first simple
> test app. The link step fails with unresolved globals
> in the cdev library. Perhaps you could give me a clue
> of where to look.
>
> ************************************
>
> I've set both the CDEVSHOBJ and CDEVDDL variables.
> The service is in libcdevAdo.so, which I assume should
> not be on the link line. The cdev library was compiled
> into libcdev.so. I've adjusted my LD_LIBRARY_PATH
> to pick it up.
>
> Here is the output from the compile on a solaris-gcc
> machine.
>
> g++ -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib
> -R/usr/openwin/lib:/usr/dt/lib:/usr/ucblib -L/vobs/store/SUN/lib
> -L/ride/ISTK/new/lib/SUN
> -R/home/cfsa/ted/cdev/lib/solaris-gnu:/vobs/store/SUN/lib SUN/cat.o -o
> SUN/cat -ladoIf -lcns -lifHandlerLib -lsvcHandlerLib -lcommToolsLib
> -lrhicError -lAsync -lclient -lsds
> -lcdev -ly -ll -lm -lthread -lposix4 -lrpcsoc -lsocket -lnsl -lgen -lg++
>
> Undefined first referenced
> symbol in file
> __as__14cdevCollectionRC14cdevCollection
> /home/cfsa/ted/cdev/lib/solaris-gnu/libcdev.so
> __10cdevDeviceRC10cdevDevice
> /home/cfsa/ted/cdev/lib/solaris-gnu/libcdev.so
> __as__10cdevDeviceRC10cdevDevice
> /home/cfsa/ted/cdev/lib/solaris-gnu/libcdev.so
> __14cdevCollectionRC14cdevCollection
> /home/cfsa/ted/cdev/lib/solaris-gnu/libcdev.so
>
> ld: fatal: Symbol referencing errors. No output written to SUN/cat
> *** Error code 1
>
> Thanks again for you help.
>
> Ted D'Ottavio
> Brookhaven National Lab
> dottavio@bnl.gov
>

--
=============================================================
Walt Akers Voice: (757)269-7669 E-Mail: akers@cebaf.gov
Thomas Jefferson National Accelerator Facility
12000 Jefferson Avenue, MS 16A
Newport News, Va 23606
=============================================================