From nobody@FreeBSD.org  Tue Mar 23 21:31:16 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C0A891065672
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Mar 2010 21:31:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7A55B8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Mar 2010 21:31:16 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2NLVF7I041983
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Mar 2010 21:31:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2NLVFni041982;
	Tue, 23 Mar 2010 21:31:15 GMT
	(envelope-from nobody)
Message-Id: <201003232131.o2NLVFni041982@www.freebsd.org>
Date: Tue, 23 Mar 2010 21:31:15 GMT
From: Julien Cigar <jcigar@ulb.ac.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/mapserver: cannot find -lpgport
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144985
>Category:       ports
>Synopsis:       graphics/mapserver: cannot find -lpgport
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    wen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 23 21:40:00 UTC 2010
>Closed-Date:    Wed Mar 24 00:24:40 UTC 2010
>Last-Modified:  Wed Mar 24 00:30:02 UTC 2010
>Originator:     Julien Cigar
>Release:        8.0-RELEASE-p2
>Organization:
Belgian Biodiversity Platform, Universit Libre de Bruxelles
>Environment:
FreeBSD jack.vub.ac.be 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Mar 23 17:11:15 CET 2010     root@jack.vub.ac.be:/usr/obj/usr/src/sys/CUSTOM  amd64

>Description:
graphics/mapserver fails to build properly, I think it's a problem with PostgreSQL (PostGIS) :

cc -c -O2 -pipe -fno-strict-aliasing -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRRSTR     -DUSE_FASTCGI   -DUSE_WMS_LYR -DUSE_WFS_LYR   -DUSE_CURL  -DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY   -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG     -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB     -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include    -I/usr/local/include     -I/usr/local/include -I/usr/local/include  -I/usr/local/include   -I/usr/local/include  -I/usr/local/include -I/usr/local/include/fastcgi     shp2img.c -o shp2img.o
c++ -O2 -pipe -fno-strict-aliasing -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRRSTR     -DUSE_FASTCGI   -DUSE_WMS_LYR -DUSE_WFS_LYR   -DUSE_CURL  -DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS  -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY   -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG     -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB     -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include    -I/usr/local/include     -I/usr/local/include -I/usr/local/include  -I/usr/local/include   -I/usr/local/include  -I/usr/local/include -I/usr/local/include/fastcgi     shp2img.o -R/usr/local/lib -R/usr/ports/graphics/mapserver/work/mapserver-5.6.1 -L. -lmapserver -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz       -ljpeg -lfreetype -lpng -lz   -L/usr/local/lib -lproj -ljpeg -lpng  -L/usr/local/lib -lgdal -L/usr/local/lib -lproj -L/usr/local/lib -lgeos_c -L/usr/loca
 l/lib -lexpat -L/usr/local -L/usr/local/lib -ljasper -lungif -L/usr/local -L/usr/local/lib -ljpeg -lgeotiff -L/usr/local/lib -ltiff -L/usr/local -L/usr/local/lib -lpng -lpq -L/usr/local/lib -lpq -lz -L/usr -L/usr/lib -lm -lrt  -L/usr/local/lib -lpq -lpgport -lssl -lcrypto -lz -lreadline -lcrypt -lm   -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -lssl -lcrypto -lldap -lz  -L/usr/local/lib -lgeos_c  -liconv -L/usr/local/lib -lfcgi -lz   -lm -lstdc++    -o shp2img
/usr/bin/ld: cannot find -lpgport
gmake: *** [shp2img] Error 1
*** Error code 1

Stop in /usr/ports/graphics/mapserver.
*** Error code 1

Stop in /usr/ports/graphics/mapserver.


The port has been configured with the following OPTIONS :
jcigar@jack mapserver % make showconfig
===> The following configuration options are available for mapserver-5.6.1_2:
     AGG=off "Support for AGG image rendering (req: FreeType)"
     TIFF=on "Support for TIFF (but not GeoTIFF) files"
     MING=off "Support for Macromedia Flash output"
     PDF=off "Support for PDF output via pdflib"
     GDAL=on "Support for a number of input raster formats"
     GEOS=on "Use GEOS engine where possible"
     POSTGIS=on "Support for PostGIS"
     PHP=off "Support for MapScript/PHP"
     PERL=off "Support for MapScript/PERL"
     WMS=on "Support for web map service server and client"
     WFS=on "Support for web feature service (req: GDAL)"
     MAPSERV=on "Install mapserv cgi interface"
     FASTCGI=on "Support FASTCGI"
     DEBUG=off "Enable debugging output"

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Mar 23 21:40:10 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144985 

From: Julien Cigar <jcigar@ulb.ac.be>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/144985: graphics/mapserver: cannot find -lpgport
Date: Tue, 23 Mar 2010 23:27:24 +0100

 I searched I bit and the problem is that ("rivendell" is the database
 server, "jack" is where mapserver is installed) :
 
 jcigar@rivendell:/home/jcigar % sudo find /usr -type f -iname "*pgport*"
 /usr/local/lib/libpgport.a
 jcigar@rivendell:/home/jcigar % pkg_info -W /usr/local/lib/libpgport.a
 /usr/local/lib/libpgport.a was installed by package
 postgresql-server-8.3.7
 
 However, on the other machine (jack) only postgresql-client-8.4.2_1 is
 installed (where the file is missing) altough -lpgport is listed in
 pg_config output :
 
 jcigar@jack ~ % pg_config --libs
 -lpgport -lssl -lcrypto -lz -lreadline -lcrypt -lm
 
 so the problem may comes from PostgreSQL (or an error in a Makefile ?)
 
 Thanks,
 Julien
 
 On Tue, 2010-03-23 at 21:40 +0000, FreeBSD-gnats-submit@FreeBSD.org
 wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `ports/144985'.
 > The individual assigned to look at your
 > report is: freebsd-ports-bugs. 
 > 
 > You can access the state of your problem report at any time
 > via this link:
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=144985
 > 
 > >Category:       ports
 > >Responsible:    freebsd-ports-bugs
 > >Synopsis:       graphics/mapserver: cannot find -lpgport
 > >Arrival-Date:   Tue Mar 23 21:40:00 UTC 2010
 
 -- 
 No trees were killed in the creation of this message.
 However, many electrons were terribly inconvenienced.
 
State-Changed-From-To: open->closed 
State-Changed-By: wen 
State-Changed-When: Wed Mar 24 00:24:39 UTC 2010 
State-Changed-Why:  
Build error fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144985 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144985: commit references a PR
Date: Wed, 24 Mar 2010 00:23:28 +0000 (UTC)

 wen         2010-03-24 00:23:20 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics/mapserver   Makefile distinfo 
   Log:
   - Update to 5.6.3
   - Fix the build with postgis support
   
   PR:             ports/144985
   Submitted by:   Julien Cigar <jcigar@ulb.ac.be>
   
   Revision  Changes    Path
   1.41      +3 -4      ports/graphics/mapserver/Makefile
   1.14      +3 -3      ports/graphics/mapserver/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
