From owner-freebsd-ports Sat Nov 4 1:35:43 2000 Delivered-To: freebsd-ports@freebsd.org Received: from puck.firepipe.net (mcut-b-167.resnet.purdue.edu [128.211.209.167]) by hub.freebsd.org (Postfix) with ESMTP id 1E79037B4E5 for ; Sat, 4 Nov 2000 01:35:41 -0800 (PST) Received: by puck.firepipe.net (Postfix, from userid 1000) id 9444F19AB; Sat, 4 Nov 2000 04:35:29 -0500 (EST) Date: Sat, 4 Nov 2000 04:35:29 -0500 From: Will Andrews To: Rob Cc: "freebsd-ports@FreeBSD.ORG" Subject: Re: newby porting Q: getopt_long Message-ID: <20001104043529.C1456@puck.firepipe.net> Reply-To: Will Andrews References: <3A03960D.74367EEF@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A03960D.74367EEF@home.com>; from europax@home.com on Fri, Nov 03, 2000 at 08:52:29PM -0800 X-Operating-System: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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