- From: Maz The Northener <mazziesaccount_at_gmail.com>
- Date: Wed, 17 May 2006 18:55:32 +0300
> Do you have /usr/local/lib listed in your /etc/ld.so.conf file? If not,
> stick it in there and run 'ldconfig'.
>
> Having said that, I just tried to build comedi_calibrate for the first
> time and got loads of compiler errors (but at least I got past the
> configure stage).
I did not. Well, I added it (or actually I did a libcomedi.conf file
containing the path in /etc/ld.so.conf.d/ folder), and ran ldconfig.
Then I tried ./autogen.sh again. No avail:
.
.
checking for comedilib.h... yes
checking for comedi_open in -lcomedi... no
configure: error: Failed to find libcomedi.
.
.
Then I checked ldconfig -v |grep "comedi", and result was
libcomedi-0.7.22.so -> libcomedi.so
So it seems the comedilib is there.
Now I checked config.log file, and found following piece of text:
configure:4960: checking for comedi_open in -lcomedi
configure:4990: gcc -o conftest -g -O2 conftest.c -lcomedi >&5
/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libcomedi.so: undefined
reference to `floor'
collect2: ld returned 1 exit status
configure:4996: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "comedi_calibrate"
| #define PACKAGE_TARNAME "comedi_calibrate"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "comedi_calibrate 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "comedi_calibrate"
| #define VERSION "0"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char comedi_open ();
| int
| main ()
| {
| comedi_open ();
| ;
| return 0;
| }
configure:5022: result: no
configure:5032: error: Failed to find libcomedi.
.
.
.
For some reason the comedi.org is not too stable for me.. It seems to
be half of the time unreachable? Well, I found some old google page
about link errors with floor() function in comedilib, but I'm not sure
if it was anyways related to this problem... And I seem not to be able
to connect to comedi.org to search more.. :/
Well, I feel I'm being a bit annoying with my problems :D But I still
once more ask... Any ideas anyone?
Received on 2006-05-17Z14:55:32