From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 10:26:22 2003 Return-Path: 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 F161E16A4CE for ; Tue, 11 Nov 2003 10:26:22 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DAC243FB1 for ; Tue, 11 Nov 2003 10:26:16 -0800 (PST) (envelope-from ljwu@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2657.72) id ; Tue, 11 Nov 2003 13:25:45 -0500 Message-ID: From: Loh John Wu To: "'freebsd-questions@freebsd.org'" Date: Tue, 11 Nov 2003 13:25:43 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Subject: undefined reference to `_getopt_internal' when doing 'make buildw orld' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 18:26:23 -0000 Hello, I'm getitng this error when I try to a make buildworld on a 4.7-RELEASE tree. It's very strange because both getopt.c and getopt1.c have the same reference to _getopt_internal but only getopt1.c has an undefined reference to it, see below: /src/gnu/usr.bin/gperf/../../../contrib/gperf/lib -I/src/gnu/usr.bin/gperf -static -o gperf b ool-array.o gen-perf.o hash-table.o iterator.o key-list.o list-node.o main.o new .o options.o read-line.o trace.o vectors.o version.o hash.o getopt.o getopt1.o getopt1.o: In function `getopt_long': /src/gnu/usr.bin/gperf/../../../contrib/gperf/lib/getopt1.c(.text+0x22): undefined reference to `_getopt_internal' getopt1.o: In function `getopt_long_only': /src/gnu/usr.bin/gperf/../../../contrib/gperf/lib/getopt1.c(.text+0x52): undefined reference to `_getopt_internal' *** Error code 1 Stop in /src/gnu/usr.bin/gperf. *** Error code 1 Stop in /src. *** Error code 1 any help would be greatly appreciated. Thanks, John