Date: Sun, 28 Nov 1999 14:50:38 -0800 From: "Ronald F. Guilmette" <rfg@monkeys.com> To: patrik@astrom.net Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Error compiling.. (Again, forgot the attachment) Message-ID: <75085.943829438@monkeys.com> In-Reply-To: Your message of Sun, 28 Nov 1999 23:01:56 %2B0100. <Pine.BSF.4.10.9911282300440.56372-200000@styx.astrom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.10.9911282300440.56372-200000@styx.astrom.net>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75085.943829438>