[Nut-upsuser] nut 2.0.4 won't compile on AIX 5.3
Hi there, I'm trying to compile nut 2.0.4 on an AIX 5.3 machine, but it fails: $ make common/ /usr/vac/bin/cc -I../include -O -c common.c /usr/vac/bin/cc -I../include -O -c upsconf.c /usr/vac/bin/cc -I../include -O -c parseconf.c /usr/vac/bin/cc -I../include -O -c state.c Target all is up to date. drivers/ /usr/vac/bin/cc -I../include -O -c bestups.c serial.h, line 11.4: 1506-205 (S) #error No sys/termios.h available. Unable to continue. serial.h, line 20.45: 1506-046 (S) Syntax error. bestups.c, line 405.43: 1506-045 (S) Undeclared identifier B2400. make: The error code from the last command is 1. Stop. make: The error code from the last command is 1. Stop. $ The config.log file is on http://www.stupendous.org/config.log . This error (and the config.log file I mentioned) occurred using the IBM C compiler, vac.c version 6. I also tried using gcc 3.3.2, but it failed in the same way. The AIX version is 5.3, TL4-CSP. Since the AIX machines only need to talk to a upsd on another machine (Linux), I don't even need the serial things to work. So, I also tried to compile without any drivers (--with-drivers=), but it still fails when compiling dummycons.c. If anybody could help me trying to get it to successfully compile, I'd be happy. :) Thanks, -- Jurjen Oskam Savage's Law of Expediency: You want it bad, you'll get it bad. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] nut 2.0.4 won't compile on AIX 5.3
On 10/18/06, Jurjen Oskam [EMAIL PROTECTED] wrote: Since the AIX machines only need to talk to a upsd on another machine (Linux), I don't even need the serial things to work. So, I also tried to compile without any drivers (--with-drivers=), but it still fails when compiling dummycons.c. Since the drivers are separate executables, you can run 'make -k' to have it build as much as it can (instead of stopping at the first error). You will still see errors, but all of the necessary client code should compile. I am a little surprised, though, because I thought termios.h was part of POSIX. What is the error when compiling dummycons.c? -- - Charles Lepple ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] nut 2.0.4 won't compile on AIX 5.3
On Wed, Oct 18, 2006 at 08:03:21AM -0400, Charles Lepple wrote: Since the drivers are separate executables, you can run 'make -k' to have it build as much as it can (instead of stopping at the first error). You will still see errors, but all of the necessary client code should compile. This didn't work, but cd clients ; make did. I now have executables in that directory, including upsmon. Thanks! I am a little surprised, though, because I thought termios.h was part of POSIX. There is a termios.h, but it's in /usr/include. What is the error when compiling dummycons.c? dummycons.c, line 32.10: 1506-296 (S) #include file sys/termios.h not found. Thanks, -- Jurjen Oskam Savage's Law of Expediency: You want it bad, you'll get it bad. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] nut 2.0.4 won't compile on AIX 5.3
On 10/18/06, Jurjen Oskam [EMAIL PROTECTED] wrote: On Wed, Oct 18, 2006 at 08:03:21AM -0400, Charles Lepple wrote: Since the drivers are separate executables, you can run 'make -k' to have it build as much as it can (instead of stopping at the first error). You will still see errors, but all of the necessary client code should compile. This didn't work, but cd clients ; make did. I now have executables in that directory, including upsmon. Thanks! Cool! The following discussion is probably more appropriate for the nut-upsdev list: I am a little surprised, though, because I thought termios.h was part of POSIX. There is a termios.h, but it's in /usr/include. Sure enough, when I looked at the comments in /usr/include/termios.h from glibc, it has a POSIX reference, and /usr/include/sys/termios.h simply includes the former file. Actually, on the SVN trunk, dummycons has been replaced with what appears to be a rewrite called dummy-ups, and it does not include sys/termios.h. So it appears that the problem will go away soon. Also, serial.h has an #ifdef switch that checks to see whether you have sys/termios.h, and includes just termios.h if that's what is there. If you have a chance to test the SVN trunk, instructions are here under Development tree: http://www.networkupstools.org/source.html What is the error when compiling dummycons.c? dummycons.c, line 32.10: 1506-296 (S) #include file sys/termios.h not found. Silly me, I should have known... regards, -- - Charles Lepple ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser