From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 8 23:50:14 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E33D516A400 for ; Thu, 8 Feb 2007 23:50:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id C053E13C46B for ; Thu, 8 Feb 2007 23:50:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l18NoEFL022995 for ; Thu, 8 Feb 2007 23:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l18NoEYC022994; Thu, 8 Feb 2007 23:50:14 GMT (envelope-from gnats) Resent-Date: Thu, 8 Feb 2007 23:50:14 GMT Resent-Message-Id: <200702082350.l18NoEYC022994@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tuure Laurinolli Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E44F516A400 for ; Thu, 8 Feb 2007 23:43:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id D640513C494 for ; Thu, 8 Feb 2007 23:43:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l18NhICl093624 for ; Thu, 8 Feb 2007 23:43:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l18NhIox093623; Thu, 8 Feb 2007 23:43:18 GMT (envelope-from nobody) Message-Id: <200702082343.l18NhIox093623@www.freebsd.org> Date: Thu, 8 Feb 2007 23:43:18 GMT From: Tuure Laurinolli To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/108953: libcdio port not robust wrt. C_INCLUDE_PATH X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2007 23:50:15 -0000 >Number: 108953 >Category: ports >Synopsis: libcdio port not robust wrt. C_INCLUDE_PATH >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 08 23:50:14 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tuure Laurinolli >Release: 6.1-RC >Organization: >Environment: FreeBSD vortex.home.lan 6.1-RC FreeBSD 6.1-RC #0: Fri Apr 14 22:32:04 EEST 2006 root@vortex.home.lan:/usr/obj/usr/src/sys/VORTEX2 i386 >Description: When trying to install libcdio with "sudo make build", build fails with : .. if cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib/driver -I../include/ -I/usr/local/include -O2 -pipe -march=pentium3 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cd-info.o -MD -MP -MF ".deps/cd-info.Tpo" -c -o cd-info.o cd-info.c; \ then mv -f ".deps/cd-info.Tpo" ".deps/cd-info.Po"; else rm -f ".deps/cd-info.Tpo"; exit 1; fi In file included from cd-info.c:29: getopt.h:82: error: redefinition of `struct option' gmake[3]: *** [cd-info.o] Error 1 gmake[3]: Leaving directory `/usr/ports/sysutils/libcdio/work/libcdio-0.77/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/sysutils/libcdio/work/libcdio-0.77/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/sysutils/libcdio/work/libcdio-0.77' gmake: *** [all] Error 2 *** Error code 2 Apparently this is because '/usr/include' leaks into include path from my C_INCLUDE_PATH, and some files in libcdio do #include instead of #include "getopt.h". My C_INCLUDE_PATH setting in .zshrc is: C_INCLUDE_PATH=/usr/include:/usr/local/include:/usr/X11R6/include:$C_INCLUDE_PATH >How-To-Repeat: Running 'sudo make build' in the port directory repeats the problem. >Fix: Setting C_INCLUDE_PATH="" on the build command line enables completion of the build, but a real fix would be cleaning up C_INCLUDE_PATH in the Makefile, I think. >Release-Note: >Audit-Trail: >Unformatted: