[PATCH] Typo in source break compile on Solaris 7

Petter Reinholdtsen pere at hungry.com
Tue Dec 16 11:14:04 UTC 2003


There is a small typo in the source, breaking the compile on Solaris 7.
This is the start of the error messages.  The errors go on.

  cc-wrapper -DHAVE_CONFIG_H -I. -I. -I. -Isvr4/sparc -I./svr4/sparc
  -Isvr4 -I./svr4 -D_GNU_SOURCE -g -c `test -f 'stream.c' || echo
  './'`stream.c
  "stream.c", line 935: undefined symbol: strict
  "stream.c", line 935: syntax error before or at: ioctlent

The problem is a 'strict' which should read 'struct'.  Here is a patch
to fix it.

diff -ur src-4.5.1/stream.c src-4.5.1-local/stream.c
--- src-4.5.1/stream.c  2003-11-14 03:54:03.000000000 +0100
+++ src-4.5.1-local/stream.c    2003-12-16 20:10:57.000000000 +0100
@@ -932,7 +932,7 @@
 int arg;
 {
        struct strioctl si;
-       strict ioctlent *iop;
+       struct ioctlent *iop;
        int in_and_out;
        int timod = 0;
 #ifdef SI_GETUDATA

Please apply in the next version.




More information about the Strace-devel mailing list