From owner-freebsd-questions@FreeBSD.ORG Thu Jul 17 03:28:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C8E2106566B for ; Thu, 17 Jul 2008 03:28:29 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57008.mail.re3.yahoo.com (web57008.mail.re3.yahoo.com [66.196.97.112]) by mx1.freebsd.org (Postfix) with SMTP id 2ECF38FC13 for ; Thu, 17 Jul 2008 03:28:28 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 23515 invoked by uid 60001); 17 Jul 2008 03:28:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=HbL1DPrKJ5wmvxnDEplG66ncDFEmnwXCs3HzC48QXwS1Nr5mHzTXPGAntW2E75cko3nVzdel4qBKf7XrPKCUL8MNcoNrDoEeijyGLAXjM0pzvWNDHm0QkibmgGiC/bkpqBPFiUVGuv8XWuKobeHDVJLOj7eeEDTw+Xhw1QfPnSY=; Received: from [220.255.7.223] by web57008.mail.re3.yahoo.com via HTTP; Wed, 16 Jul 2008 20:28:28 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Wed, 16 Jul 2008 20:28:28 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <322832.23474.qm@web57008.mail.re3.yahoo.com> Subject: Why this linking fail? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 03:28:29 -0000 Hi all I have compiled and installed following libraries separately: /usr/src/lib/csu /usr/src/lib/libc /usr/src/lib/msun When I link to them, I get following errors: /usr/lib/libc.so: undefined reference to `_nsyylex' /usr/lib/libc.so: undefined reference to `_nsyyin' /usr/lib/libc.so: undefined reference to `_nsyytext' /usr/lib/libc.so: undefined reference to `_nsyyerror' /usr/lib/libc.so: undefined reference to `_nsyylineno' collect2: ld returned 1 exit status Search for those names shows following: cd /usr/src/ grep -lr _nsyylex . ./include/nsswitch.h ./lib/libc/net/Symbol.map grep -lr _nsyyin . ./lib/libc/net/nsdispatch.c grep -lr _nsyytext . ./lib/libc/net/nsparser.y grep -lr _nsyyerror . ./include/nsswitch.h ./lib/libc/net/Symbol.map ./lib/libc/net/nslexer.l grep -lr _nsyylineno . ./include/nsswitch.h ./lib/libc/net/Symbol.map ./lib/libc/net/nsparser.y That is, they are all from /usr/src/lib/libc/net. Does this means the /usr/src/lib/libc/net is not in the new libc.so.7? What does above errors shows? Appreciate your help in this regard. Many thanks in advance. Kind regards Unga