- From: Jeremiah Johnson <johns839_at_casews.com>
- Date: Mon, 27 Oct 2003 08:59:11 -0500
I think your right. If it happens when you run comedi_calibrate it's trying to run functions stored in .so files. If it happens at compile time it's looking for .a files. Are there any other libcomedi.so* files? Maybe you have a corrupted libcomedi.so* somewhere. you might try to delete every instance of the comedi libraries on your filesystem. Did you specify an install directory? I don't think it should be an issue but the double slashes ( for example: /usr/lib//libcomedi.so) might cause problems. /Jermieha ----- Original Message ----- From: "Mark Hounschell" <markh_at_compro.net> To: <comedi_at_comedi.org> Cc: "Jeremiah Johnson" <johns839_at_casews.com> Sent: Monday, October 27, 2003 8:44 AM Subject: Re: compile problems > Jeremiah Johnson wrote: > > > > It looks like libcomedi.a isn't installed (just compiled). I'd do a make > > install and then add the localtion to your ld.so.conf and run ldconfig. > > /Jeremiah > > > > Ok, if I comment out the comedi_calibrate and testing references in the top > Makefile of the library tree, all builds and installs. The install of the lib > went to /usr/lib. I run ldconfig then cd back into the comedi_calibrate or > testing dir and do a make again with the same results. Correct me if I'm wrong, > but aren't the .so files for runtime and the .a files for compile/link time? > > pc244:/usr/src/Advantech/comedilib-0.7.19 # make install > install -d /usr//include > install -m 644 include/comedilib.h /usr//include > install -m 644 include/comedi.h /usr//include > ln -sf libcomedi.so.0.7.19 /usr/lib//libcomedi.so > install -m 644 lib/libcomedi.a /usr/lib/ > install lib/libcomedi.so.0.7.19 /usr/lib/ > ln -sf libcomedi.so.0.7.19 /usr/lib//libcomedi.so.0 > install -s -m 755 comedi_config/comedi_config /usr/sbin/ > #install -s -m 755 comedi_calibrate/comedi_calibrate /usr/bin/ > install -d /usr/share/doc/libcomedi/ > install README doc/FAQ doc/drivers.txt /usr/share/doc/libcomedi/ > install -d /usr/share/doc/libcomedi//html/ > install doc/html/*.html /usr/share/doc/libcomedi//html/ > install -d /usr/share/doc/libcomedi//etc/ > install -m 755 etc/das1600.conf /usr/share/doc/libcomedi//etc/ > install -m 755 etc/dt282x.conf /usr/share/doc/libcomedi//etc/ > install -d /usr/share/doc/libcomedi//examples/ > install -m 644 demo/README demo/*.c /usr/share/doc/libcomedi//examples/ > install -d /usr/share/man//man3/ > install -d /usr/share/man//man7/ > install -d /usr/share/man//man8/pc244 > install doc/man/*.3 /usr/share/man//man3/ > install man/*.7 /usr/share/man//man7/ > install man/*.8 /usr/share/man//man8/ > > pc244:/usr/src/Advantech/comedilib-0.7.19 # ldconfig > pc244:/usr/src/Advantech/comedilib-0.7.19 # cd comedi_calibrate > pc244:/usr/src/Advantech/comedilib-0.7.19 # make > > > same results > . > . > > > Thanks > Mark > > > ----- Original Message ----- > > From: "Mark Hounschell" <markh_at_compro.net> > > To: <comedi_at_comedi.org> > > Sent: Monday, October 27, 2003 8:06 AM > > Subject: compile problems > > > > > We have a pci-1756 card I am trying to configure. The driver compiles, > > installs, > > > and loads. > > > I'm having problems compiling/linking some things in the library tree. I'm > > using > > > gcc-3.3 and glibc-2.3.2. The library and demo part builds ok but the > > > comedi_calibrate part compiles but won't link. It looks like everything > > > referenced in the library cannot be found. Below is the error. > > > > > > pc244:/usr/src/Advantech/comedilib-0.7.19 # make > > > set -e;for i in lib demo comedi_calibrate testing comedi_config;do make -C > > $i ; > > > done > > > make[1]: Entering directory `/usr/src/Advantech/comedilib-0.7.19/lib' > > > make[1]: `libcomedi.a' is up to date. > > > make[1]: Leaving directory `/usr/src/Advantech/comedilib-0.7.19/lib' > > > make[1]: Entering directory `/usr/src/Advantech/comedilib-0.7.19/demo' > > > make[1]: Nothing to be done for `all'. > > > make[1]: Leaving directory `/usr/src/Advantech/comedilib-0.7.19/demo' > > > make[1]: Entering directory > > > `/usr/src/Advantech/comedilib-0.7.19/comedi_calibrate' > > > gcc -o comedi_calibrate comedi_calibrate.o ni.o cb.o > > other.o -L../lib/ -lcomedi > > > -lm > > > comedi_calibrate.o(.text+0x9f): In function `main': > > > : undefined reference to `comedi_open' > > > > > > . > > > . > > > . > > > many more references to the lib undefined > > > . > > > . > > > > > > > > > collect2: ld returned 1 exit status > > > make[1]: *** [comedi_calibrate] Error 1 > > > make[1]: Leaving directory > > > `/usr/src/Advantech/comedilib-0.7.19/comedi_calibrate' > > > make: *** [subdirs] Error 2 > > > > > > The library seems ok: > > > pc244:/usr/src/Advantech/comedilib-0.7.19/lib # nm libcomedi.a | grep > > > comedi_open > > > 00000080 T comedi_open > > > 00000080 T comedi_open_at_v0.7.18 > > > > > > Any ideas?? > > > > > > Thanks in advance > > > Mark > > > > > > _______________________________________________ > > > comedi mailing list > > > comedi_at_comedi.org > > > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi > > > > > > > > > > > >
Received on 2003-10-27Z13:59:11