Re: Compiling on OS/2

From: Henning Meier-Geinitz (henning@meier-geinitz.de)
Date: Sun Jun 17 2001 - 08:40:05 PDT

  • Next message: Henning Meier-Geinitz: "Re: Is my Artec AT12 broken?"

    Hi,

    On Fri, Jun 15, 2001 at 12:00:19AM +0200, Franz Bakan wrote:
    > That's the output from config.log:
    > ...
    > configure:1616: checking for sys/socket.h
    > configure:1626: gcc -E -D_GNU_SOURCE conftest.c >/dev/null 2>conftest.out
    > In file included from configure:1622:
    > G:\EMX\INCLUDE\sys/socket.h:42: warning: #warning <sys/socket.h> requires
    > <sys/types.h>
    > configure: failed program was:
    > #line 1621 "configure"

    Looks like emx fails when it encounters a #warning. I don't think we
    can fix this easily at least I don't have an idea.

    > what's in conftest.c? It's too hard for me to puzzle this out from
    > all this configure files :-(

    conftest.c is the file generated by configure. Look for the lines:

      cat > conftest.$ac_ext <<EOF
      #line 1621 "configure"
      #include "confdefs.h"
      #include <$ac_hdr>
      EOF

    in configure. That means put everything in the lines after the "cat"
    not including the "EOF" into conftest.c. $ac_hdr is substituted by
    sys/socket.h in this case. confdefs.h contains things like the package
    name and other defines.

    > gcc -E -D_GNU_SOURCE conftest.c 1>1 2>2
    > returns 0 if
    > conftest.c just contains
    >
    > #include <sys/socket.h>
    > main{}

    Maybe there is a problem with confdefs.h? But this should exist also
    when testing for other headers.

    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 : Sat Jun 23 2001 - 20:48:52 PDT