not compiling

Help
2004-08-19
2004-08-19
  • Stephen Durham
    Stephen Durham
    2004-08-19

    I use arch linux, with kernel 2.6.8 and gcc 3.4.
    I have libusb installed and the ./configure works fine, I have tried both with and without libusb and usbdevfs. When I issue the make command I get the following errors, from both cvs and the release:

    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT rio.lo -MD -MP -MF ".deps/rio.Tpo" -c -o rio.lo rio.c; \ then mv -f ".deps/rio.Tpo" ".deps/rio.Plo"; else rm -f ".deps/rio.Tpo"; exit 1; fi
    mkdir .libs
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT rio.lo -MD -MP -MF .deps/rio.Tpo -c rio.c  -fPIC -DPIC -o .libs/rio.o
    In file included from ../include/rio_internal.h:31,
                     from rio.c:44:
    ../include/rio.h:42:1: warning: "EINTR" redefined
    In file included from /usr/include/linux/errno.h:4,
                     from /usr/include/bits/errno.h:25,
                     from /usr/include/errno.h:36,
                     from rio.c:41:
    /usr/include/asm/errno.h:7:1: warning: this is the location of the previous definition
    rio.c: In function `get_flist_riohd':
    rio.c:400: warning: use of cast expressions as lvalues is deprecated
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT rio.lo -MD -MP -MF .deps/rio.Tpo -c rio.c -o rio.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT rioio.lo -MD -MP -MF ".deps/rioio.Tpo" -c -o rioio.lo rioio.c; \ then mv -f ".deps/rioio.Tpo" ".deps/rioio.Plo"; else rm -f ".deps/rioio.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT rioio.lo -MD -MP -MF .deps/rioio.Tpo -c rioio.c  -fPIC -DPIC -o .libs/rioio.o
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT rioio.lo -MD -MP -MF .deps/rioio.Tpo -c rioio.c -o rioio.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT mp3.lo -MD -MP -MF ".deps/mp3.Tpo" -c -o mp3.lo mp3.c; \ then mv -f ".deps/mp3.Tpo" ".deps/mp3.Plo"; else rm -f ".deps/mp3.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT mp3.lo -MD -MP -MF .deps/mp3.Tpo -c mp3.c  -fPIC -DPIC -o .libs/mp3.o
    In file included from ../include/rio_internal.h:31,
                     from mp3.c:50:
    ../include/rio.h:42:1: warning: "EINTR" redefined
    In file included from /usr/include/linux/errno.h:4,
                     from /usr/include/bits/errno.h:25,
                     from /usr/include/errno.h:36,
                     from mp3.c:23:
    /usr/include/asm/errno.h:7:1: warning: this is the location of the previous definition
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT mp3.lo -MD -MP -MF .deps/mp3.Tpo -c mp3.c -o mp3.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT downloadable.lo -MD -MP -MF ".deps/downloadable.Tpo" -c -o downloadable.lo downloadable.c; \ then mv -f ".deps/downloadable.Tpo" ".deps/downloadable.Plo"; else rm -f ".deps/downloadable.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT downloadable.lo -MD -MP -MF .deps/downloadable.Tpo -c downloadable.c  -fPIC -DPIC -o .libs/downloadable.o
    In file included from ../include/rio_internal.h:31,
                     from downloadable.c:37:
    ../include/rio.h:42:1: warning: "EINTR" redefined
    In file included from /usr/include/linux/errno.h:4,
                     from /usr/include/bits/errno.h:25,
                     from /usr/include/errno.h:36,
                     from downloadable.c:21:
    /usr/include/asm/errno.h:7:1: warning: this is the location of the previous definition
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT downloadable.lo -MD -MP -MF .deps/downloadable.Tpo -c downloadable.c -o downloadable.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT byteorder.lo -MD -MP -MF ".deps/byteorder.Tpo" -c -o byteorder.lo byteorder.c; \ then mv -f ".deps/byteorder.Tpo" ".deps/byteorder.Plo"; else rm -f ".deps/byteorder.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT byteorder.lo -MD -MP -MF .deps/byteorder.Tpo -c byteorder.c  -fPIC -DPIC -o .libs/byteorder.o
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT byteorder.lo -MD -MP -MF .deps/byteorder.Tpo -c byteorder.c -o byteorder.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT song_managment.lo -MD -MP -MF ".deps/song_managment.Tpo" -c -o song_managment.lo song_managment.c; \ then mv -f ".deps/song_managment.Tpo" ".deps/song_managment.Plo"; else rm -f ".deps/song_managment.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT song_managment.lo -MD -MP -MF .deps/song_managment.Tpo -c song_managment.c  -fPIC -DPIC -o .libs/song_managment.o
    In file included from ../include/rio_internal.h:31,
                     from song_managment.c:31:
    ../include/rio.h:42:1: warning: "EINTR" redefined
    In file included from /usr/include/linux/errno.h:4,
                     from /usr/include/bits/errno.h:25,
                     from /usr/include/errno.h:36,
                     from song_managment.c:29:
    /usr/include/asm/errno.h:7:1: warning: this is the location of the previous definition
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT song_managment.lo -MD -MP -MF .deps/song_managment.Tpo -c song_managment.c -o song_managment.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT cksum.lo -MD -MP -MF ".deps/cksum.Tpo" -c -o cksum.lo cksum.c; \ then mv -f ".deps/cksum.Tpo" ".deps/cksum.Plo"; else rm -f ".deps/cksum.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT cksum.lo -MD -MP -MF .deps/cksum.Tpo -c cksum.c  -fPIC -DPIC -o .libs/cksum.o
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT cksum.lo -MD -MP -MF .deps/cksum.Tpo -c cksum.c -o cksum.o >/dev/null 2>&1
    if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -MT bsd.lo -MD -MP -MF ".deps/bsd.Tpo" -c -o bsd.lo bsd.c; \ then mv -f ".deps/bsd.Tpo" ".deps/bsd.Plo"; else rm -f ".deps/bsd.Tpo"; exit 1; fi
    gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -MT bsd.lo -MD -MP -MF .deps/bsd.Tpo -c bsd.c  -fPIC -DPIC -o .libs/bsd.o
    bsd.c:28:27: sys/syslimits.h: No such file or directory
    make[1]: *** [bsd.lo] Error 1
    make[1]: Leaving directory `/home/stephen/downloads/source/rioutil/librioutil'
    make: *** [all-recursive] Error 1

     
    • Nathan Hjelm
      Nathan Hjelm
      2004-08-19

      Opps, guess it was time to re-do how rioutil reported errors. Both problems are now fixed.

      Note: rioutil now uses standard error codes from errno.h

       
    • Stephen Durham
      Stephen Durham
      2004-08-19

      Well I synced the CVS files that I had on my arch linux system and I got the same error.  I also tried to do this on a Redhat Advanced Server 3.0 system that I have and I recieved the same error. I must be doing something wrong though not sure what. I used the following commands: ./configure --with-libusb --without-usbdevfs (which i believe are default anyways) and then make
      Thanks,
      Steve