[comp.os.minix] libc.a problem

unpowell@csvax.liv.ac.uk (05/18/88)

I have just got hold of MINIX V1.1 and tried to write a small who am i
program. The source code wouldn't compile because my copy of libc.a
doesn't contain getpwuid(). Can anybody help me.

p.s. I know I look like unpowell@uk.ac.liv.csvax but really I'm
     mjh3@uk.ac.york.vaxa

			Thanks

Bruno_Kieba.SBDERX@xerox.com (05/21/88)

As far as I remember,  getpwuid( ) is in the source file getpwent.c and
getpwent.c is in the archive file libsrc.a; the .s version of getpwent has not
been included in the libc.a library.  To get your who am I program going,
extract getpwent.c from libsrc.a,  compile it with the -c and -LIB options to
produce a library module, and  include the produced .s file in the library
libc.a.  Well that's it!

ps:  getpwent.c compiles with the #include file 'pwd.h' which is in the "kernel"
diskette of the 1.1 distribution. libsrc.a is in the "FS sources" diskette.
 
I hope this will tell you who you are!
/Bruno