Date: Sun, 28 Nov 1999 22:59:29 +0100 (CET) From: patrik@astrom.net To: freebsd-hackers@freebsd.org Subject: Error compiling.. Message-ID: <Pine.BSF.4.10.9911282245280.56372-100000@styx.astrom.net>
next in thread | raw e-mail | index | archive | help
Hi everyone... First of all I would like to state that IM not a programmer. 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) { close(s); sleep(rand[count]); count++; } else { send(s, msg, strlen(msg), 0); if(q_option) { fp = fdopen(s, "r"); while ((c = fgetc(fp)) != EOF) { putchar(c); } close(s); exit(0); } close(s); exit(0); } And where it complains about the "cuserid" bit it looks like this... /* get my user name */ if (u_flag == 0) { cuserid(myuser); } As stated above IM not a programmer and I would be most grateful for any hints or suggestions. Im attaching the emsg1.c file to if someone should get intressted. Regards Patrik Astrom 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?Pine.BSF.4.10.9911282245280.56372-100000>