Re: Compiling on OS/2

From: Franz Bakan (
Date: Wed Jun 13 2001 - 09:07:44 PDT

  • Next message: Sebastien Sable: "Re: Should Snapscan e20 work?"


    On Wed, 13 Jun 2001 10:23:40 +0200, Petter Reinholdtsen wrote:

    >Check config.log to find out why the test compile failed.

    Thanks for the hint. Thats the reason:

    configure:2203: checking for socklen_t in <sys/socket.h>
    configure:2214: gcc -c -D__EMX__ -DOS2 -Zmtd -D__ST_MT_ERRNO__ -O2 -W -Wall
    -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes
    -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -D_GNU_SOURCE
    conftest.c 1>&5
    configure:2209: warning: function declaration isn't a prototype
    configure: In function `main':
    configure:2210: `socklen_t' undeclared (first use in this function)
    configure:2210: (Each undeclared identifier is reported only once
    configure:2210: for each function it appears in.)
    configure:2210: parse error before `len'
    configure: failed program was:
    #line 2205 "configure"
    #include "confdefs.h"

    #include <sys/socket.h>

    int main() {
    socklen_t len
    ; return 0; }

    include/sane/config.h contains
    #define socklen_t int
    but seems that this #define is not available at 'configure-time'
    How should this be fixed?


    Source code, list archive, and docs:
    To unsubscribe: echo unsubscribe sane-devel | mail

    This archive was generated by hypermail 2b29 : Wed Jun 13 2001 - 09:01:56 PDT