ocaml / ocaml

The core OCaml system: compilers, runtime system, base libraries
https://ocaml.org
Other
5.48k stars 1.11k forks source link

Socketaddr.h:28 error: s_inet6 has a incomplete Type #4474

Closed vicuna closed 16 years ago

vicuna commented 16 years ago

Original bug ID: 4474 Reporter: bdw238 Status: closed (set by @xavierleroy on 2008-08-04T12:03:45Z) Resolution: unable to duplicate Priority: normal Severity: tweak Version: 3.10.0 Category: ~DO NOT USE (was: OCaml general) Monitored by: mermade

Bug description

Error appears with make world

Target "all" is up to date. for i in unix str num dynlink bigarray systhreads threads graph dbm; do (cd otherlibs/$i; make RUNTIME= all) || exit $?; done gcc -I../../byterun -O -fno-defer-pop -Wall -D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c accept.c In file included from accept.c:25: socketaddr.h:28: error: field 's_inet6' has incomplete type socketaddr.h:47: warning: 'struct in6_addr' declared inside parameter list socketaddr.h:47: warning: its scope is only this definition or declaration, which is probably not what you want make: 1254-004 The error code from the last command is 1.

Stop. make: 1254-004 The error code from the last command is 2.

Stop.

Regards

Brian Walker

Additional information

Platform: IBM Aix 5.3 ML4CSP Complier: gcc Version 4.0

Config: ./configure -no-tk -with-pthread

vicuna commented 16 years ago

Comment author: bdw238

Built on model:

System Model: IBM,7028-6C4 Machine Serial Number: 65A5B1A Processor Type: PowerPC_POWER4 Number Of Processors: 2 Processor Clock Speed: 1453 MHz CPU Type: 64-bit Kernel Type: 64-bit LPAR Info: 1 NULL

vicuna commented 16 years ago

Comment author: mermade

me too

I can get the build to proceed past this point by undef'ing HAS_IPV6 (which would be an ok workaround for me). I then see another failure but in my naive way, undef'ing USE_ASYNC_IO seems to get past that.

AIX 5.3, gcc 3.3.2

vicuna commented 16 years ago

Comment author: @xavierleroy

I haven't had access to an AIX system for a long time, but when I did I often ran into problems with system include files. System code that works well under Linux, Solaris, BSD and MacOSX would often fail to compile under AIX. Disabling the features that you don't need, as suggested by the second post, is a good idea. Being unable to diagnose the problem, I'm going to close this PR. But if someone figures out what needs to be done, please keep me informed.