Current compilation status

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Mon Jul 17 2000 - 11:08:08 PDT

  • Next message: Ralph F. De Witt: "Re: Possible sane problem with version 1.0.2 or system"

    Hi,

    The Plustek problems seem to be solved. But there are other compilation
    problems.

    This is the result from compilation for the following platforms:

    *** Linux x86 egcs-2.91.66
    compiles and installs without errors but with many warnings.

    *** Irix 6.2 cc
    making all in sanei
    gmake[1]: Entering directory /tmp/sane/sanei'
    rm -f .libs/sanei_pio.lo
    cc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
    -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g
    -DSCSIBUFFERSIZE=131072 sanei_pio.c -DPIC -o .libs/sanei_pio.lo
    cfe: Warning 596: ../include/sane/sanei_backend.h: 19: text following #endif
    violates the ANSI C standard.
    cfe: Error: /usr/include/sys/types.h, line 297: redeclaration of 'u_int8_t';
    previous declaration at line 24 in file '../include/sane/sanei_backend.h'
     typedef unsigned char u_int8_t ;
     ------- ------------- ^
    cfe: Error: /usr/include/sys/types.h, line 298: redeclaration of
    'u_int16_t'; previous declaration at line 28 in file
    '../include/sane/sanei_backend.h'
     typedef unsigned short u_int16_t ;
     ------- -------------- ^
    cfe: Error: /usr/include/sys/types.h, line 299: redeclaration of
    'u_int32_t'; previous declaration at line 32 in file
    '../include/sane/sanei_backend.h'
     typedef __uint32_t u_int32_t ;
     ------- ---------- ^
    gmake[1]: *** [sanei_pio.o] Error 1
    gmake[1]: Leaving directory /tmp/sane/sanei'
    gmake: *** [all-recursive] Error 1

    The first warning is a C++-style comment. I will fix this one.
    If I comment out the u_int??_t stuff I get the following:

    cc -c -g -DSCSIBUFFERSIZE=131072 -DHAVE_CONFIG_H -I. -I. -I../include
    -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
    -DBACKEND_NAME=coolscan -DLIBDIR=/usr/local/lib/sane coolscan.c -DPIC -o
    .libs/coolscan.lo
    cfe: Error: ../include/sane/sanei_debug.h: 57: Unknown directive type warning
    gmake[1]: *** [coolscan.lo] Error 1
    gmake[1]: Leaving directory /tmp/sane/backend'
    gmake: *** [all-recursive] Error 1

    It doesn't like the #warning.

    If I comment out the #warning ....

    cc -c -g -DSCSIBUFFERSIZE=131072 -DHAVE_CONFIG_H -I. -I. -I../include
    -I../inclu
    de -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_D
    IR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=djpeg
    -DLIBDIR=/usr/l
    ocal/lib/sane djpeg.c -DPIC -o .libs/djpeg.lo
    cfe: Error: ./cdjpeg.h, line 53: Syntax Error
     extern (djpeg_dest_ptr) sanei_jpeg_jinit_write_ppm (j_decompress_ptr cinfo) ;
     --------^
    cfe: Error: ./cdjpeg.h, line 53: Empty declaration specifiers
     extern (djpeg_dest_ptr) sanei_jpeg_jinit_write_ppm (j_decompress_ptr cinfo) ;
     ------------------------^
    cfe: Error: djpeg.c, line 61: Syntax Error
     static (void)
     ---------^
    cfe: Error: djpeg.c, line 76: Syntax Error
     static (void)
     ---------^
    cfe: Error: djpeg.c, line 92: Syntax Error
     static (void)
     ---------^
    cfe: Error: djpeg.c, line 117: Syntax Error
     static (void)
     ---------^
    cfe: Error: djpeg.c, line 144: Syntax Error
     static (void)
     ---------^
    cfe: Error: djpeg.c, line 164: Syntax Error
       (djpeg_dest_ptr)
     ---^
    gmake[1]: *** [djpeg.lo] Error 1
    gmake[1]: Leaving directory /tmp/sane/backend'
    gmake: *** [all-recursive] Error 1

    Ok, I stop it now. This compiler seems to be quite nasty.

    *** AIX gcc
    making all in frontend
    gmake[1]: Entering directory /tmp/sane/frontend'
    gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
    -I/usr/local/include -
    D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall
    -DSCSIBUFFERSIZE=131072 scanimage.c
    scanimage.c: In function sighandler':
    scanimage.c:100: warning: unused parameter signum'
    scanimage.c: In function print_option':
    scanimage.c:165: warning: comparison between signed and unsigned
    scanimage.c:175: warning: comparison between signed and unsigned
    scanimage.c:187: warning: comparison between signed and unsigned
    scanimage.c:210: warning: comparison between signed and unsigned
    scanimage.c: In function parse_vector':
    scanimage.c:439: warning: comparison between signed and unsigned
    scanimage.c:487: warning: comparison between signed and unsigned
    scanimage.c: In function process_backend_option':
    scanimage.c:654: warning: implicit declaration of function strncasecmp'
    gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
    -I/usr/local/include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall
    -DSCSIBUFFERSIZE=131072 stiff.c
    mkdir .libs
    libtool: link: warning: this platform does not like uninstalled shared
    libraries
    libtool: link: scanimage' will be relinked during installation
    gcc -o .libs/scanimage scanimage.o stiff.o -L/tmp/sane/backend/.libs -lsane
    ../lib/liblib.a -ldl -lnsl -lm -L/tmp/sane/backend/.libs -L/usr/local/lib
    creating scanimage
    gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
    -I/usr/local/include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
    -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall
    -DSCSIBUFFERSIZE=131072 saned.c
    saned.c: In function decode_handle':
    saned.c:313: warning: comparison between signed and unsigned
    saned.c: In function check_host':
    saned.c:342: warning: passing arg 3 of ngetpeername' from incompatible
    pointertype
    saned.c:362: warning: implicit declaration of function strcasecmp'
    saned.c: In function start_scan':
    saned.c:480: warning: passing arg 3 of ngetsockname' from incompatible
    pointertype
    saned.c:514: warning: passing arg 3 of ngetsockname' from incompatible
    pointertype
    libtool: link: warning: this platform does not like uninstalled shared
    librarieslibtool: link: saned' will be relinked during installation
    gcc -o .libs/saned saned.o ../sanei/libsanei.a -L/tmp/sane/backend/.libs
    -lsane
    ../lib/liblib.a -ldl -lnsl -lm -L/tmp/sane/backend/.libs -L/usr/local/lib
    collect2: ld returned 8 exit status
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_config_open
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_config_skip_whitespace
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_config_get_string
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_config_read
    ld: 0711-224 WARNING: Duplicate symbol: sanei_debug_sanei_config
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_init_debug
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_debug
    ld: 0711-224 WARNING: Duplicate symbol: .sanei_debug_max
    ld: 0711-224 WARNING: Duplicate symbol: sanei_debug_sanei_debug
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    ld: 0711-317 ERROR: Undefined symbol: .isfdtype
    ld: 0711-317 ERROR: Undefined symbol: .vsyslog
    gmake[1]: *** [saned] Error 1
    gmake[1]: Leaving directory /tmp/sane/frontend'
    gmake: *** [all-recursive] Error 1

    *** Solaris gcc
    making all in frontend
    gmake[1]: Entering directory /tmp/sane/frontend'
    gcc -o .libs/scanimage scanimage.o stiff.o ../backend/.libs/libsane.so
    ../lib/liblib.a -ldl -lsocket -lnsl -ljpeg -lintl -lm -R/usr/local/lib
    Undefined first referenced
     symbol in file
    isfdtype ../backend/.libs/libsane.so
    ld: fatal: Symbol referencing errors. No output written to .libs/scanimage
    collect2: ld returned 1 exit status
    gmake[1]: *** [scanimage] Error 1
    gmake[1]: Leaving directory /tmp/sane/frontend'
    gmake: *** [all-recursive] Error 1

    What's this isfdtype? I can't find it on Solaris and AIX. I can't find
    vsyslog on AIX.

    Bye,
      Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Mon Jul 17 2000 - 11:12:40 PDT