From owner-freebsd-hackers Thu Nov 4 11:20:19 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f224.law3.hotmail.com [209.185.241.224]) by hub.freebsd.org (Postfix) with SMTP id 22FD714EEC for ; Thu, 4 Nov 1999 11:20:15 -0800 (PST) (envelope-from rbernardini@hotmail.com) Received: (qmail 17391 invoked by uid 0); 4 Nov 1999 19:19:27 -0000 Message-ID: <19991104191927.17390.qmail@hotmail.com> Received: from 200.32.103.30 by www.hotmail.com with HTTP; Thu, 04 Nov 1999 11:19:25 PST X-Originating-IP: [200.32.103.30] From: "Ricardo Bernardini" To: crandall@matchlogic.com Cc: freebsd-hackers@freebsd.org Subject: Re: Compiling elf gcc 2.7.2.3 on FreeBSD 3.3-R? Date: Thu, 04 Nov 1999 16:19:25 ART Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems you're missing the src distribution. It should resolve your crt0.o and your gnumalloc problems. ...I think. ----Original Message Follows---- From: Charles Randall After an unsuccessful attempt at asking this on -questions... I believe that I could work my way through the problem below if I could build a vanilla gcc 2.7.2.3 on FreeBSD 3.3-R. Attempting to build a fresh 2.7.2.3, 1. configure 2. remove references to gnumalloc in Makefile and cp/Makefile 3. make LANGUAGES=c and I get --- snip --- ./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire /usr/libexec/elf/ld: cannot open crt0.o: No such file or directory *** Error code 1 Stop. --- snip --- I presume that this is an a.out vs elf issue -- gcc is trying to build an a.out version and 3.3-R is elf. However, I get the same problem if I try configure with "configure i386-elf-freebsd". Suggestions? Charles P.S. I know that 3.3-R uses gcc 2.7.2.3 internally. However, I would like to build a separate binary for StackGuard. -----Original Message----- From: Charles Randall [mailto:crandall@matchlogic.com] Sent: Tuesday, November 02, 1999 9:37 AM To: freebsd-questions@freebsd.org Subject: Immunix Stackguard for FreeBSD? Has anyone successfully built Immunix stackguard on FreeBSD? Here's a link to the original research project, http://www.cse.ogi.edu/DISC/projects/immunix/StackGuard/ The latest development seems to be reflected here, http://www.wirex.com/ and http://immunix.org/ On the downloads page at immunix.org, there's an RPM of patches to gcc 2.7.2.3. I've un-packed that on my 3.3-R system, applied all of the patches, run 'configure', and 'make LANGUAGES=c'. First, the build fails trying to find gnumalloc. After removing that dependency in Makefile and cp/Makefile (assuming that BSD malloc will be used), the build eventually dies with: --- snip --- ./xgcc -B./ -DIN_GCC -O -I./include enquire.o -o enquire /usr/libexec/elf/ld: cannot open crt0.o: No such file or directory *** Error code 1 Stop. --- snip --- I presume that this is because 3.3-R uses elf and gcc is trying to build an a.out version. Thinking about that a bit, I ran 'make distclean', 'configure i386-elf-freebsd', and 'make LANGUAGES=c' in an attempt to build an elf-specific version. After removing the dependencies on gnumalloc again, the build died in the same place, --- snip --- ./xgcc -B./ -DIN_GCC -O -I./include enquire.o -o enquire /usr/libexec/elf/ld: cannot open crt0.o: No such file or directory *** Error code 1 Stop. --- snip --- Am I missing a compatibility library or something? Suggestions? Charles To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message +------------------------------+-----------------------------------+ |Ricardo Bernardini | "No entiendo por que todos ponen | |rbernardini@hotmail.com | alguna frase celebre aqui" | |+54-11-4404-4525 | "I don't understand why everybody | |Buenos Aires, Argentina | puts a quote in here" | +------------------------------+-----------------------------------+ ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message