From: sean <sea...@ho...> - 2004-05-01 23:32:22
|
ffmpeg configure uses this to test for imlib2: # imlib probe cat > $TMPC << EOF #include <X11/Xlib.h> #include <Imlib2.h> int main( void ) { return (int) imlib_load_font("foo"); } EOF imlib2=no if $cc -o $TMPE $TMPC -lImlib2 > /dev/null 2>&1 ; then imlib2=yes fi which fails with imlib2-1.1: cat tmpc.c #include <X11/Xlib.h> #include <Imlib2.h> int main( void ) { return (int) imlib_load_font("foo"); } gcc -o tmpe tmpc.c -lImlib2 /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `sqrt' /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `floor' /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `cos' /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `sin' /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `pow' /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `atan' /usr/lib/gcc-lib/athlon-redhat-linux/3.3.3/../../../libImlib2.so: undefined reference to `hypot' collect2: ld returned 1 exit status I've rebuilt imlib2. Is this an imlib2 issue or is the configure test incorrect? sean |