From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15314 invoked from network); 9 Jan 1999 22:06:44 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 9 Jan 1999 22:06:44 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA18876 for ; Sat, 9 Jan 1999 16:46:06 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id OAA00860; Sat, 9 Jan 1999 14:46:02 -0700 From: Michal Jaegermann Message-Id: <199901092146.OAA00860@ellpspace.math.ualberta.ca> Subject: Re: shell tools for addding/deleting users? To: axp-list@redhat.com Date: Sat, 9 Jan 1999 14:46:02 -0700 (MST) Cc: cprice@missing.its.to In-Reply-To: from "Chris Price" at Jan 9, 99 12:15:55 pm Content-Type: text Chris Price wrote: > > > and tried > to compile. Here's where I had problems: > > adduser.o: In function `main': > /root/adduser-shadow-1.6/adduser.c:690: undefined reference to `crypt' > /root/adduser-shadow-1.6/adduser.c:690: undefined reference to `crypt' > collect2: ld returned 1 exit status > make: *** [adduser] Error 1 ... > Any input you can provide is really appreciated... Add '-lcrypt' to a list of libraries you are linking. This is not Alpha; this is glibc on any platform and the real reason behind this are ITAR regulations we all love so deeply. An old Slackware distribution was using libc5, where crypt functions were not split into a separate library, and yes, C-standard **requires** for 'main()' to return 'int'. Michal