From owner-freebsd-questions@FreeBSD.ORG Sun Oct 19 07:52:25 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 69DD616A4B3 for ; Sun, 19 Oct 2003 07:52:25 -0700 (PDT) Received: from lilith.bellavista.cz (lilith.bellavista.cz [213.235.167.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5217243F85 for ; Sun, 19 Oct 2003 07:52:24 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by lilith.bellavista.cz (Postfix) with ESMTP id 54DA15C; Sun, 19 Oct 2003 16:52:22 +0200 (CEST) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 2D4DB2FDA09; Sun, 19 Oct 2003 16:52:22 +0200 (CEST) Date: Sun, 19 Oct 2003 16:52:22 +0200 From: Roman Neuhauser To: Peter Cornelius Message-ID: <20031019145221.GE48233@freepuppy.bellavista.cz> Mail-Followup-To: Peter Cornelius , FreeBSD-Questions@FreeBSD.Org References: <31243.1066521585@www67.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31243.1066521585@www67.gmx.net> User-Agent: Mutt/1.5.4i cc: FreeBSD-Questions@FreeBSD.Org Subject: Re: ? getopt_long(), iopl() and ioperm() ? 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: Sun, 19 Oct 2003 14:52:25 -0000 # pcc@gmx.net / 2003-10-19 01:59:45 +0200: > I'm hacking at a piece of code that I want to turn into a port. It's from > Linux and uses libpci and some other 'strange' functions. > While I think that I've managed to modify the libpci port to install the > required lib, I'm more or less lost at getopt_long() which I > assume is in the libgnugetopt port. However, for some reason, even if I > include it explicitly (#include "/usr/local/include/getopt.h"), I > run into problems. Please note that I'm not a programmer at all, so it's > very much hacking along, so I may look for someone patient > to bear with me ;-) But I am willing to learn. AFAICT you need to tell the compiler about the library. The rule in your Makefile needs to have "-L /usr/local/lib -lgnugetopt". -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html