Judith.Fait at HVBIS.com
2006-Oct-16 14:40 UTC
AIX 5.2/53 issue "Undeclared identifier O_RDWR"
Hi, I tried to build on AIX 5.2 and 5.3 and found a problem with openssh-4.4p1 / openssl-0.9.8d during make: when using gcc I get make echo (cd openbsd-compat && make) /usr/bin/gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c daemon.c daemon.c:81: warning: implicit declaration of function `open' daemon.c:81: error: `O_RDWR' undeclared (first use in this function) daemon.c:81: error: (Each undeclared identifier is reported only once daemon.c:81: error: for each function it appears in.) make: 1254-004 The error code from the last command is 1. (using IBMs vac: "openbsd-compat/daemon.c", line 81.51: 1506-045 (S) Undeclared identifier O_RDWR.) Any help would be appreciated regards, J. Fait
Judith.Fait at HVBIS.com wrote:> I tried to build on AIX 5.2 and 5.3 and found a problem with > openssh-4.4p1 / openssl-0.9.8d during make:[...]> /usr/bin/gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized > -Wsign-compare -I. -I.. -I. -I./.. -DHAVE_CONFIG_H -c daemon.c > daemon.c:81: warning: implicit declaration of function `open' > daemon.c:81: error: `O_RDWR' undeclared (first use in this function) > daemon.c:81: error: (Each undeclared identifier is reported only once > daemon.c:81: error: for each function it appears in.) > make: 1254-004 The error code from the last command is 1.That's kinda odd, it ought to be declared in fcntl.h. What is HAVE_FCNTL_H set to in config.h? For that matter do you have a /usr/include/fcntl.h file? -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Seemingly Similar Threads
- OpenSSH 4.4p1 under Mac OS X 10.3.9
- [Bug 3744] New: openssh-SNAP-20241015 sshd-auth.c:467:2: error: use of undeclared identifier 'saved_argc'; did you mean 'saved_argv'?
- R-2.3.0 make error on AIX 5.2
- [LLVMdev] Compile-rt throw error undeclared identifier 'O_CLOEXEC'
- libFLAC with Android NDK: use of undeclared identifier 'SIZE_MAX'