[6833] in Athena Bugs
pmax 7.2: saber3 & C library?
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Tue Jan 8 22:18:05 1991
Date: Tue, 8 Jan 91 22:17:51 -0500
From: Ken Raeburn <Raeburn@MIT.Edu>
To: bugs@ATHENA.MIT.EDU
% saber3
Saber-C - Version 3.0 beta-3
Copyright (C) 1986, 1990 by Saber Software, Inc.
Saber-C licensed for: MIT
For customer service, use the 'email' command.
Attaching: /lib/libc.a
1 -> #include <X11/Xlib.h>
2 -> Display *d;
3 -> d = XOpenDisplay ((char *) 0);
Error #156: Calling undefined function XOpenDisplay().
4 -> load -lX
Attaching: /lib/libX.a
5 -> d = XOpenDisplay ((char *) 0);
Linking from '/lib/libX.a' ......... Linking completed.
Linking from '/lib/libc.a' .................................. Linking completed.
(struct _XDisplay *) 0x1015d848 /* (allocated) */
6 -> Screen* s;
Error #512: 's' is ambiguous
7 -> Screen *s;
Error #512: 's' is ambiguous
8 -> Screen *scr;
9 -> whatis s
static <data> s;
static <data> s;
10 -> xref s
Referenced by:
<text> _res_close
<text> res_send
References to:
(nothing)
11 ->
My .saberinit file declares some routines like malloc (for 3.0 I don't
even have it "setopt ansi" -- oops), and includes a couple of standard
header files, but doesn't use the identifier "s" anywhere.
Running nm over libc.a, I do find:
/lib/libc.a:res_send.o: 000006ac T _res_close
/lib/libc.a:res_send.o: V errno
/lib/libc.a:res_send.o: 00000720 b no_addr
/lib/libc.a:res_send.o: 00000000 T res_send
/lib/libc.a:res_send.o: 00000714 g s
/lib/libc.a:res_send.o: 00000710 g sccsid
But from nm(1):
g local small initialized data
This shouldn't be visible to me...