strace 4.4.90 test release

John Hughes john at Calva.COM
Mon Jan 13 07:43:03 UTC 2003


Another problem on UnixWare 7.1.1:

$ make
        make  all-am
        cc  -D_GNU_SOURCE -g   -o strace  strace.o version.o syscall.o
util.o desc.o file.o ipc.o  io.o ioctl.o mem.o net.o  process.o bjm.o
resource.o  signal.o sock.o system.o term.o  time.o proc.o stream.o
-lnsl 
Undefined                       first referenced
 symbol                             in file
print_sock_optmgmt                  stream.o
UX:ld: ERROR: strace: fatal error: Symbol referencing errors. No output
written to strace
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.

No "print_sock_optmgmt" (should be in net.o):

	#ifdef HAVE_OPTHDR

	void
	print_sock_optmgmt (tcp, addr, len)
	struct tcb *tcp;
	long addr;
	...

Hum, where's "HAVE_OPTHDR"?  Seems to have been renamed
"HAVE_STRUCT_OPTHDR".  Changing the #ifdef fixes the problem:

--- net.c.orig  Mon Dec 30 01:51:30 2002
+++ net.c       Mon Jan 13 16:29:24 2003
@@ -1425,7 +1425,7 @@
 }
 
 
-#ifdef HAVE_OPTHDR
+#ifdef HAVE_STRUCT_OPTHDR
 
 void
 print_sock_optmgmt (tcp, addr, len)








More information about the Strace-devel mailing list