From owner-freebsd-hackers Sun Nov 28 15: 9:42 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from luna.lyris.net (luna.shelby.com [207.90.155.6]) by hub.freebsd.org (Postfix) with ESMTP id E28EE14A2A for ; Sun, 28 Nov 1999 15:09:39 -0800 (PST) (envelope-from kip@lyris.com) Received: from luna.shelby.com by luna.lyris.net (8.9.1b+Sun/SMI-SVR4) id PAA11298; Sun, 28 Nov 1999 15:09:15 -0800 (PST) Received: from (luna.shelby.com [207.90.155.6]) by luna.shelby.com with SMTP (MailShield v1.50); Sun, 28 Nov 1999 15:09:15 -0800 Date: Sun, 28 Nov 1999 15:09:15 -0800 (PST) From: Kip Macy X-Sender: kip@luna To: "Ronald F. Guilmette" Cc: patrik@astrom.net, freebsd-hackers@FreeBSD.ORG Subject: Re: Error compiling.. (Again, forgot the attachment) In-Reply-To: <75085.943829438@monkeys.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SMTP-HELO: luna X-SMTP-MAIL-FROM: kip@lyris.com X-SMTP-RCPT-TO: rfg@monkeys.com,patrik@astrom.net,freebsd-hackers@FreeBSD.ORG X-SMTP-PEER-INFO: luna.shelby.com [207.90.155.6] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG cuserid is in the compatibility library, from the man page: CUSERID(3) FreeBSD Library Functions Manual CUSERID(3) NAME cuserid - get user name associated with effective UID SYNOPSIS #include char * cuserid(char *s) DESCRIPTION The cuserid function is made obsolete by getpwuid. It is available from the compatibility library, libcompat. To get the program to link just add: -lcompat On Sun, 28 Nov 1999, Ronald F. Guilmette wrote: > > In message , you wrot > e: > > >Hi everyone... > > > >First of all I would like to state that IM not a programmer. > > Then you're probably not a `hacker' either. > > >Im trying to compile a program and IM getting a errormessage, I have > >included the error message bellow. > > > >viking# cc emsg1.c > >emsg1.c: In function `main': > >emsg1.c:197: warning: passing arg 2 of `connect' from incompatible pointer > >type > >/var/tmp/ccRu22801.o: In function `main': > >/var/tmp/ccRu22801.o(.text+0x5bb): undefined reference to `cuserid' > >viking# > > > >The software IM trying to compile is a network monitoring tool named > >"EMU", I've found it at "http://www.jarrix.com.au". > > > >At line 197 it looks like this... > > > >if( connect(s, &sin, sizeof(sin)) < 0) { > > Try replacing that line with: > > if( connect(s, (struct sockaddr *) &sin, sizeof(sin)) < 0) { > > That should fix your `incompatable pointer' warning. > > As regards to your link-time error (missing `cuserid') I'm afraid I > can't be of any help. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message