From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 14 21:30:05 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE846106564A for ; Thu, 14 Aug 2008 21:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BC86F8FC19 for ; Thu, 14 Aug 2008 21:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7ELU5vr099373 for ; Thu, 14 Aug 2008 21:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7ELU53R099370; Thu, 14 Aug 2008 21:30:05 GMT (envelope-from gnats) Date: Thu, 14 Aug 2008 21:30:05 GMT Message-Id: <200808142130.m7ELU53R099370@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Tom Russo" Cc: Subject: Re: ports/126397: graphics/libgeotiff fails to build X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tom Russo List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 21:30:05 -0000 The following reply was made to PR ports/126397; it has been noted by GNATS. From: "Tom Russo" To: "bug-followup@FreeBSD.org" Cc: Subject: Re: ports/126397: graphics/libgeotiff fails to build Date: Thu, 14 Aug 2008 15:22:16 -0600 On further analysis, the problem is entirely due to the presence in CFLAGS of -L/usr/local/lib and -I/usr/local/include, and a prior installation of libgeotiff. These CFLAGS cause the compilation of listgeo.c to use the previously installed header files. "geotiff.h" in 1.2.5 has the right definitions to allow geo_simpletags.h to be included without error and without a previous include of geo_tiffp.h. In 1.2.4 the definition of TIFFMethod is in geo_tiffp.h. Including 1.2.4's geotiff.h in 1.2.5's listgeo.c gets it all wrong. So one can install libgeotiff just fine as long as there is no previous installation. Upgrading is a problem because the CFLAGS and other flags variables are set up so that the previous installation's headers and libraries are used instead of the ones appropriate for the new code. I was able to get 1.2.5 installed by deinstalling my 1.2.4 libgeotiff and starting from scratch. Unfortunately, I have no patch to provide to help with the upgrade problem. Somehow the makefile needs to be massaged so that the build uses the headers in the current source code instead of /usr/local/include, and similarly with libraries.