From owner-freebsd-questions Sun Sep 9 6: 7: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gamma.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id 31CBF37B405 for ; Sun, 9 Sep 2001 06:07:03 -0700 (PDT) Received: (qmail 61109 invoked from network); 9 Sep 2001 13:07:01 -0000 Received: from dclient217-162-128-224.hispeed.ch (HELO athlon550) (217.162.128.224) by 0 with SMTP; 9 Sep 2001 13:07:01 -0000 Date: Sun, 9 Sep 2001 15:10:54 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.53bis) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <121193273776.20010909151054@buz.ch> To: questions@freebsd.org Subject: Strange ld problems... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hello, I'm trying to get ld link a custom program but keep stumbling across the following problem: ld -L/usr/local/lib -lboost_regex -lxml2 -leasysoap -lstdc++ monitoring.o action.o resource.o host.o resource_container.o bdpopen.o host_container.o class_logfiles.o globals.o soapserver.o -o monitoring /usr/libexec/elf/ld: warning: cannot find entry symbol _start; defaulting to 0804af44 /usr/lib/libc.so.4: undefined reference to `environ' /usr/lib/libc.so.4: undefined reference to `__progname' *** Error code 1 g++ compiles the sources to object files just like it should and even with -Wall, there aren't any bad problems except for one variable about which it thinks is defined but not used (where I think it is wrong about it anyway, cause while it isn't used in the header, it sure as hell is used in the cpp file). What am I doing wrong? Any help would be greatly appreciated. TIA & best regards, Gabriel  -----BEGIN PGP SIGNATURE----- Version: PGP 6.5i iQEVAwUBO5tcUsZa2WpymlDxAQF7BAf/UwAuL5EvGtR9ZIjSSGBGRo9drf0vcQNc byZS1O0alNm8wHEoUqNzRwqP9vc9wpmmA7Z9xkEN2+vfBmO9fnpjdA3E9NjGnzvY UDSZa9LTHxIdH3inoYjVmS8nn//RsqbVUmgeiBFszmfSMJ0D0NY7ZxQflOAPspoZ SwgM4+ellHvx4QB4MwAaWaPMn4EB2U0pfsOaIVs1UDNpaZlCyWzrl5JihCDja7n5 hHHVkjF+Tt/XzJdtklcAJEOX7+JQpt3mCcwvj7ob01OjjoDmy0fY5zjCptJ3xZEW rd1lPb295xH2D8xLcc5lnLhwGbcKqdzI024r/nlHLuMXtBuUWP2CUA== =dp7e -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message