Subject: Re: kernel compile, 20 Oct. sources
To: the Riz <>
From: Chris Csanady <>
List: port-alpha
Date: 10/22/1997 10:39:21
>Perry Metzger wrote:
>> Comment out rnd in GENERIC. It doesn't work. It should have been
>> marked "experimental".
>> > cc -g -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
>> > -Wno-format -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc
>> > -Dalpha  -c ../../../../dev/rnd.c
>> > cc1: warnings being treated as errors
>> > ../../../../dev/rnd.c:728: warning: function declaration isn't a prototype
>> > *** Error code 1
>> > 
>OK, now in the final link, I get about 800k of error messages, of the form:

I get the 800k of error messages as well.  For what its worth, I still can not
build anything from current sources.  The libraries seem to be worthless or 

swiss# make DESTDIR=/altroot
cc  -static -o cat -nostdlib -L/altroot/usr/lib /altroot/usr/lib/crt0.o 
/altroot/usr/lib/crtbegin.o cat.o  -lgcc -lc -lgcc /altroot/usr/lib/crtend.o
/altroot/usr/lib/crt0.o: In function `rtld_setup':
crt0.c(.text+0x1c8): undefined reference to `__syscall'
crt0.c(.text+0x1cc): undefined reference to `__syscall'
crt0.c(.text+0x1e0): undefined reference to `__syscall'
crt0.c(.text+0x1e4): undefined reference to `__syscall'
crt0.c(.text+0x20c): undefined reference to `__syscall'
/altroot/usr/lib/crt0.o(.text+0x210):crt0.c: more undefined references to 
`__syscall' follow
cat.o: In function `raw_args':
cat.c(.text+0xae0): undefined reference to `open'
cat.c(.text+0xae4): undefined reference to `open'
cat.c(.text+0xba0): undefined reference to `close'
cat.c(.text+0xba4): undefined reference to `close'
cat.o: In function `raw_cat':
cat.c(.text+0xc30): undefined reference to `__fstat13'
cat.c(.text+0xc34): undefined reference to `__fstat13'
cat.c(.text+0xcec): undefined reference to `read'
. . .

Upon looking at the library, none of these seem to have addresses with them.
These are the functions that all programs seem to complain about, and are
in the old libraries.  What does the U stand for anyway?

Any ideas?

swiss# nm -Dv | more
                 U __fstat13
                 U __getlogin
                 U __lstat13
                 U __msync13
                 U __progname
                 U __semctl
                 U __stat13
                 U __syscall
                 U __sysctl
                 U _exit
                 U accept
                 U access
                 U bind
                 U chdir
                 U close
                 U connect
                 U dup2
                 U environ
                 U execve
                 U fchdir
                 U fcntl
                 U flock
                 U fstatfs
                 U fsync
                 U getdents
                 U getegid
                 U geteuid
                 U getfsstat
                 U getgroups
                 U getpid
                 U getpriority
                 U getrlimit
                 U getrusage
                 U getsockname
                 U gettimeofday
                 U getuid
                 U ioctl
                 U kill
                 U listen
                 U munmap
                 U nanosleep
                 U open
                 U poll
                 U profil
                 U read
                 U readlink
                 U readv
                 U recvfrom
                 U rmdir
                 U select
                 U sendto
                 U setegid
                 U seteuid
                 U setgroups
                 U setitimer
                 U setpgid
                 U setpriority
                 U setregid
                 U setreuid
                 U setsid
                 U setsockopt
                 U setuid
                 U sigaction
                 U sigaltstack
                 U socket
                 U socketpair
                 U swapctl
                 U umask
                 U unlink
                 U utimes
                 U wait4
                 U write
                 U writev
000000000001b530 ? __init
000000000001b680 T yperr_string
000000000001b800 T yp_order
000000000001b9f0 T yp_master
000000000001bc20 T yp_maplist
000000000001bdb0 T yp_all
000000000001bf90 T timer_getoverrun
000000000001bfc8 T timer_settime
000000000001c000 T timer_gettime
000000000001c038 T timer_delete
000000000001c070 T timer_create
000000000001c0a8 T getdirentries