From owner-freebsd-questions Sat Jul 6 0: 9:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40BD837B400 for ; Sat, 6 Jul 2002 00:09:12 -0700 (PDT) Received: from sphinx.wuhjuhbuh.2y.net (syr-24-58-63-160.twcny.rr.com [24.58.63.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B84A43E09 for ; Sat, 6 Jul 2002 00:09:11 -0700 (PDT) (envelope-from ski@wuhjuhbuh.2y.net) Received: by sphinx.wuhjuhbuh.2y.net (Postfix, from userid 67) id D807A386D; Sat, 6 Jul 2002 03:09:09 -0400 (EDT) Received: from 192.168.1.5 (SquirrelMail authenticated user ski) by wuhjuhbuh.2y.net with HTTP; Sat, 6 Jul 2002 03:09:09 -0400 (EDT) Message-ID: <1090.192.168.1.5.1025939349.squirrel@wuhjuhbuh.2y.net> Date: Sat, 6 Jul 2002 03:09:09 -0400 (EDT) Subject: horked /usr/ports? From: "Brian Szymanski" To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 Hi, I seem to have entered a situation where I can't build anything in /usr/ports... I'm not sure what I did to enter this situation. It was a 4.6-RELEASE install, which I upgraded to -STABLE, set my processor type to k7 in /etc/make.conf, and did a {build, install}{world, kernel} sequence on. Most ports compiles seem to die with missing variables from include files. Almost every package I tried to build failed in a similar fashion to the below (some variable was undeclared) Can it be I screwed up /usr/include somehow? Or /etc/make.conf (the build/install sequence went fine so I'd be skeptical of this, especially considering the only thing I changed was the cputype)... Example included below obligatory thank you. Oh, for the record, manually trying the cc line in the proper directory without the -march=k6 gets the same results (altho it would be damn weird if setting the output binary format screwed up the parsing ;-) Thanks, Brian Example: when I try to install pcre: su-2.05a# cd /usr/ports/devel/pcre && make clean && make ===> Cleaning for pcre-3.7 ===> Extracting for pcre-3.7 >> Checksum OK for pcre-3.7.tar.bz2. ===> Patching for pcre-3.7 ===> Applying FreeBSD patches for pcre-3.7 ===> Configuring for pcre-3.7 configure: WARNING: you should use --build, --host, --target checking for i386-portbld-freebsd4.6-gcc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking for i386-portbld-freebsd4.6-ranlib... no checking for ranlib... ranlib checking how to run the C preprocessor... cc -E checking for ANSI C header files... yes checking for limits.h... yes checking for cc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for unistd.h... yes checking for size_t... yes checking for bcopy... yes checking for memmove... yes checking for strerror... yes checking build system type... i386-portbld-freebsd4.6 checking host system type... i386-portbld-freebsd4.6 checking for ld used by GCC... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking for /usr/libexec/elf/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking command to parse nm output... ok checking for dlfcn.h... yes checking for i386-portbld-freebsd4.6-ranlib... ranlib checking for i386-portbld-freebsd4.6-strip... no checking for strip... strip checking for objdir... .libs checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.lo... checking if cc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yeschecking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd4.6 ld.so checking if libtool supports shared libraries... yes checking whether -lc should be explicitly linked in... yes creating libtool configure: creating ./config.status config.status: creating Makefile config.status: creating pcre.h config.status: creating pcre-config config.status: creating RunTest config.status: creating config.h ===> Building for pcre-3.7 /bin/sh ./libtool --mode=compile cc -c -O -pipe -march=k6 -I. ./maketables.c mkdir .libs cc -c -O -pipe -march=k6 -I. ./maketables.c -fPIC -DPIC -o maketables.o In file included from ./maketables.c:42: internal.h:55: syntax error before `size_t' internal.h: In function `pcre_memmove': internal.h:58: `dest' undeclared (first use in this function) internal.h:58: (Each undeclared identifier is reported only once internal.h:58: for each function it appears in.) internal.h:58: `n' undeclared (first use in this function) internal.h:59: `src' undeclared (first use in this function) *** Error code 1 Stop in /usr/ports/devel/pcre/work/pcre-3.7. *** Error code 1 Stop in /usr/ports/devel/pcre. su-2.05a# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message