From owner-freebsd-questions Sat Sep 9 0:20:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay.mailbox.co.za (relay.mailbox.co.za [196.2.147.67]) by hub.freebsd.org (Postfix) with ESMTP id 6E18437B449 for ; Sat, 9 Sep 2000 00:20:38 -0700 (PDT) Received: from imail (imail.webmail.co.za [192.168.0.1]) by relay.mailbox.co.za (8.9.3/8.9.3) with SMTP id JAA00679 for ; Sat, 9 Sep 2000 09:17:14 +0200 Message-Id: <200009090717.JAA00679@relay.mailbox.co.za> Date: Sat, 9 Sep 2000 09:16:36 +0200 From: "Vik Nuckchady" To: freebsd-questions@FreeBSD.ORG X-Mailer: WebMail v2.21 X-Sender-Ip: 202.123.26.102 X-Account: 94904 MIME-Version: 1.0 Content-Type: text/plain Subject: Problem compiling socket program Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I am trying to compile a very simple program but it fails every time with the following errors: /* MAKE INSTRUCTIONS */ cc client.c -o client.o cc -Lnsl -Lsocket client.o -o client /* ERRORS STARTS HERE */ client.o: In function `_init': client.o(.init+0x0): multiple definition of `_init' /usr/lib/crti.o(.init+0x0): first defined here client.o(.data+0x0): multiple definition of `__progname' /usr/lib/crt1.o(.data+0x0): first defined here client.o: In function `_start': client.o(.text+0x0): multiple definition of `_start' /usr/lib/crt1.o(.text+0x0): first defined here client.o: In function `_fini': client.o(.fini+0x0): multiple definition of `_fini' /usr/lib/crti.o(.fini+0x0): first defined here /usr/lib/libc.so(.dynamic+0x0): multiple definition of `_DYNAMIC' /usr/lib/libc.so(.got.plt+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_' *** Error code 1 Stop. /* ERRORS END HERE */ The program contains the following : #include #include #include void main() { int sock_d = socket(PF_INET,SOCK_STREAM,0); } Thanks in advance for any support. Cheers Vik _______________________________________________________________ http://www.webmail.co.za the South-African free email service To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message