From nobody@FreeBSD.org  Wed Aug 17 15:20:22 2011
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 A9496106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Aug 2011 15:20:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7F7E78FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Aug 2011 15:20:22 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7HFKLw2030892
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Aug 2011 15:20:21 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p7HFKLX7030891;
	Wed, 17 Aug 2011 15:20:21 GMT
	(envelope-from nobody)
Message-Id: <201108171520.p7HFKLX7030891@red.freebsd.org>
Date: Wed, 17 Aug 2011 15:20:21 GMT
From: Julien Cigar <jcigar@ulb.ac.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/mapserver: PDF output doesn't work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159838
>Category:       ports
>Synopsis:       graphics/mapserver: PDF output doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wen
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 17 15:30:10 UTC 2011
>Closed-Date:    
>Last-Modified:  Wed Aug 17 15:30:24 UTC 2011
>Originator:     Julien Cigar
>Release:        8.2
>Organization:
Universit Libre de Bruxelles, Belgian Biodiversity Platform
>Environment:
FreeBSD dev.be-bif.ulb.ac.be 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Feb 22 11:58:24 CET 2011     root@dev.be-bif.ulb.ac.be:/usr/obj/usr/src/sys/CUSTOM  amd64

>Description:
Hello,

I've compiled Mapserver with PDF support but it doesn't seems to work:

- PDF isn't listed as a supported OUTPUT:

jcigar@dev mapserver % /usr/local/www/cgi-bin/mapserv -v
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

- Adding an OUTPUTFORMAT fails too:

"""
    OUTPUTFORMAT
        NAME pdf
        DRIVER "PDF"
        MIMETYPE "application/x-pdf"
        FORMATOPTION "OUTPUT_TYPE=RASTER"
    END
"""

fails with:

loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver PDF, but this driver isn't configured. 

I've compiled Mapserver with the following OPTIONS:

jcigar@dev mapserver % cat /var/db/ports/mapserver/options 
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for mapserver-6.0.1
_OPTIONS_READ=mapserver-6.0.1
WITHOUT_AGG=true
WITH_TIFF=true
WITH_PDF=true
WITH_GDAL=true
WITH_GEOS=true
WITHOUT_MING=true
WITHOUT_MYGIS=true
WITH_POSTGIS=true
WITHOUT_PHP=true
WITHOUT_PERL=true
WITH_PYTHON=true
WITH_WMS=true
WITH_WFS=true
WITH_MAPSERV=true
WITH_FASTCGI=true
WITHOUT_DEBUG=true

Another thing: it looks like CAIRO is used instead of PDFLIB in 6.0 (?), if I can trust the official doc:

"""
Note

From version 6.0, PDF output is supported through Cairo. This is not reflected in the current documentation.
"""

(http://www.mapserver.org/output/pdf.html)

Thanks,
Julien
>How-To-Repeat:

>Fix:
use CAIRO .. ?

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wen 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Aug 17 15:30:21 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159838 
>Unformatted:
