From owner-freebsd-ports Sat Nov 4 11:29:37 2000 Delivered-To: freebsd-ports@freebsd.org Received: from femail7.sdc1.sfba.home.com (femail7.sdc1.sfba.home.com [24.0.95.87]) by hub.freebsd.org (Postfix) with ESMTP id 3007B37B479 for ; Sat, 4 Nov 2000 11:29:35 -0800 (PST) Received: from home.com ([24.12.186.185]) by femail7.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001104192935.EFFM2350.femail7.sdc1.sfba.home.com@home.com>; Sat, 4 Nov 2000 11:29:35 -0800 Message-ID: <3A0463D8.90A8F3F8@home.com> Date: Sat, 04 Nov 2000 11:30:32 -0800 From: Rob X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Will Andrews Cc: "freebsd-ports@FreeBSD.ORG" Subject: Re: newby porting Q: getopt_long References: <3A03960D.74367EEF@home.com> <20001104043529.C1456@puck.firepipe.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Will Andrews wrote: > > On Fri, Nov 03, 2000 at 08:52:29PM -0800, Rob wrote: > > I am trying to port the Synaptics touch pad utility as my first port. I > > am stuck at a point where the linker cannot find getopt_long. I have > > installed the libgnugetop port, but I am not certain what I have to do > > to get the linker to find getopt_long in the libgnugetopt.so. Gcc > > complains with "undefined reference". > > You must tell configure (if there is one) or the source Makefile to add > -lgnugetopt -L/usr/local/lib to its linking flags, and make sure you > #undef __GNU_LIBRARY__, by adding -U__GNU_LIBRARY__ to the CFLAGS, or > just #undef __GNU_LIBRARY__ somewhere appropriate in the source code > (i.e. before is included or something). > > -- > wca > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message Thanks! I was just thrilled to get to the stage where I saw ".o" files :). Rob. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message