Hello All, I've just attempted to build from -cvs on AIX and get the following: $ gcc [snip] -c ssh-agent.c ssh-agent.c: In function `main': ssh-agent.c:975: `BSDoptarg' undeclared (first use in this function) ssh-agent.c:975: (Each undeclared identifier is reported only once ssh-agent.c:975: for each function it appears in.) make: 1254-004 The error code from the last command is 1. Adding "extern char *BSDoptarg;" to ssh-agent.c allows the build to complete. -Daz. -- Darren Tucker (dtucker at zip.com.au) GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
do you have HAVE_GETOPT_OPTRESET or HAVE_GETOPT set? - Ben On Sat, 22 Jun 2002, Darren Tucker wrote:> Hello All, > I've just attempted to build from -cvs on AIX and get the following: > > $ gcc [snip] -c ssh-agent.c > ssh-agent.c: In function `main': > ssh-agent.c:975: `BSDoptarg' undeclared (first use in this function) > ssh-agent.c:975: (Each undeclared identifier is reported only once > ssh-agent.c:975: for each function it appears in.) > make: 1254-004 The error code from the last command is 1. > > Adding "extern char *BSDoptarg;" to ssh-agent.c allows the build to > complete. > > -Daz. > > -- > Darren Tucker (dtucker at zip.com.au) > GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 > Good judgement comes with experience. Unfortunately, the experience > usually comes from bad judgement. > _______________________________________________ > openssh-unix-dev at mindrot.org mailing list > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev >
can you do: extern char *optarg; instead? On Sat, 22 Jun 2002, Darren Tucker wrote:> Hello All, > I've just attempted to build from -cvs on AIX and get the following: > > $ gcc [snip] -c ssh-agent.c > ssh-agent.c: In function `main': > ssh-agent.c:975: `BSDoptarg' undeclared (first use in this function) > ssh-agent.c:975: (Each undeclared identifier is reported only once > ssh-agent.c:975: for each function it appears in.) > make: 1254-004 The error code from the last command is 1. > > Adding "extern char *BSDoptarg;" to ssh-agent.c allows the build to > complete. > > -Daz. > > -- > Darren Tucker (dtucker at zip.com.au) > GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 > Good judgement comes with experience. Unfortunately, the experience > usually comes from bad judgement. > _______________________________________________ > openssh-unix-dev at mindrot.org mailing list > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev >