Re: Service logs only when exiting
Jurjen Oskam <[email protected]> Thu, 28 Aug 2003 20:26:51 +0200
| Newsgroups | gmane.comp.lib.ptyget,gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 28, 2003 at 12:34:28PM -0400, Paul Jarc wrote:
> > ./compile ptyget.c
> > "hasptmx.h", line 1: 1506-229 (W) File is empty.
> > "ptyget.c", line 97.3: 1506-045 (S) Undeclared identifier s.
> > make: 1254-004 The error code from the last command is 1.
>
> Try this patch:
This results in a compilation failure further down the road, but
with different results depending on the OS/compiler:
AIX 5.2, gcc 2.95-aix51:
./compile ptyspawn.c
In file included from ptyspawn.c:12:
readwrite.h:4: conflicting types for `read'
/usr/include/unistd.h:179: previous declaration of `read'
readwrite.h:5: conflicting types for `write'
/usr/include/unistd.h:191: previous declaration of `write'
ptyspawn.c: In function `main':
ptyspawn.c:34: warning: return type of `main' is not `int'
make: *** [ptyspawn.o] Error 1
AIX 4.3.3, IBM C for AIX version 5:
./compile ptyio.c
1500-030: (I) INFORMATION: main: Additional optimization may be attained by
recompiling and specifying MAXMEM option with a value greater than 2048.
./compile ttyctrl.c
./compile ttymodes.c
"ttymodes.c", line 90.22: 1506-045 (S) Undeclared identifier _POSIX_VDISABLE.
make: 1254-004 The error code from the last command is 1.
On AIX 4.3.3, ptyspawn compiles correctly. On AIX 5.2, it fails.
(I have sent this message to both the ptyget and log mailing lists. I'll
send further messages to the ptyget mailing list only. If a conclusion is
reached that might benefit daemontools/multilog users, I'll report here.)
--
Jurjen Oskam
PGP Key available at http://www.stupendous.org/