Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"make work" fails #4362

Closed
vicuna opened this issue Aug 13, 2007 · 2 comments
Closed

"make work" fails #4362

vicuna opened this issue Aug 13, 2007 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Aug 13, 2007

Original bug ID: 4362
Reporter: scottr8
Status: closed (set by @xavierleroy on 2007-10-25T08:46:06Z)
Resolution: won't fix
Priority: normal
Severity: block
Version: 3.10.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: scottr8

Bug description

"make world" fails as follows:
make[1]: Entering directory /software/unison/install/ocaml-3.10.0/otherlibs/unix' gcc -I../../byterun -O -fno-defer-pop -Wall -D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o accept.o 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[1]: *** [accept.o] Error 1 make[1]: Leaving directory /software/unison/install/ocaml-3.10.0/otherlibs/unix'
make: *** [otherlibraries] Error 2

Environment:
AIX 5.2 gcc 3.3.2 GNU make 3.80

@vicuna
Copy link
Author

vicuna commented Aug 13, 2007

Comment author: scottr8

Tried using xlc_r and "make world fails as follows:

make[1]: Entering directory /software/unison/install/ocaml-3.10.0/otherlibs/unix' xlc_r -I../../byterun -O -D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o accept.o accept.c "socketaddr.h", line 28.10: 1506-007 (S) "struct sockaddr_in6" is undefined. "socketaddr.h", line 47.36: 1506-310 (I) The type "struct in6_addr" was introduced in a parameter list, and will go out of scope at the end of the function declaration or definition. make[1]: *** [accept.o] Error 1 make[1]: Leaving directory /software/unison/install/ocaml-3.10.0/otherlibs/unix'
make: *** [otherlibraries] Error 2

@vicuna
Copy link
Author

vicuna commented Oct 25, 2007

Comment author: @xavierleroy

System include files in AIX are often organized differently than in more mainstream systems like Linux or BSD. I can't track the source of the problem by lack of access to an AIX machine. One workaround, if you don't need IPv6, is to manually edit config/s.h after running "configure", removing the
"#define HAS_IPV6" line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant