Bug 189943 - graphics/mapnik fails to build
Summary: graphics/mapnik fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-19 11:10 UTC by Frank Broniewski
Modified: 2014-07-11 21:34 UTC (History)
2 users (show)

See Also:


Attachments
Fix build when graphics/agg is installed (983 bytes, patch)
2014-07-11 13:29 UTC, littlesavage
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Broniewski 2014-05-19 11:10:00 UTC
graphics/mapnik fails to build. This seems related to the agg library:

c++ -o plugins/input/ogr.input -L/usr/local/lib -shared plugins/input/ogr/ogr_converter.os plugins/input/ogr/ogr_datasource.os plugins/input/ogr/ogr_featureset.os plugins/input/ogr/ogr_index_featureset.os -Ldeps/agg -Lsrc -L/usr/local/lib -L/usr/lib -lgdal -lmapnik -licuuc -lboost_system
src/libmapnik.so: undefined reference to `agg::comp_op_rgba_saturation<agg::rgba8, agg::order_rgba>::blend_pix(unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'
src/libmapnik.so: undefined reference to `agg::comp_op_rgba_value<agg::rgba8, agg::order_rgba>::blend_pix(unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'
src/libmapnik.so: undefined reference to `agg::comp_op_rgba_hue<agg::rgba8, agg::order_rgba>::blend_pix(unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'
src/libmapnik.so: undefined reference to `agg::comp_op_rgba_color<agg::rgba8, agg::order_rgba>::blend_pix(unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'
scons: *** [demo/c++/rundemo] Error 1
scons: building terminated because of errors.

running (notice the option -lagg):
c++ -o plugins/input/ogr.input -L/usr/local/lib -shared
plugins/input/ogr/ogr_converter.os plugins/input/ogr/ogr_datasource.os
plugins/input/ogr/ogr_featureset.os
plugins/input/ogr/ogr_index_featureset.os -Ldeps/agg -Lsrc
-L/usr/local/lib -L/usr/lib -lgdal -lmapnik -licuuc -lboost_system
-lagg 
yields no error ...

How-To-Repeat: cd /usr/ports/graphics/mapnik && make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-19 11:10:02 UTC
Maintainer of graphics/mapnik,

Please note that PR ports/189943 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/189943

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-19 11:10:03 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Mark Linimon 2014-05-20 15:05:05 UTC
----- Forwarded message from Frank Broniewski <brfr@metrico.lu> -----

Date: Tue, 20 May 2014 15:10:09 +0200
From: Frank Broniewski <brfr@metrico.lu>
To: freebsd-ports-bugs@freebsd.org
Subject: Re: ports/189943: graphics/mapnik fails to build
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don't know if this is the right place to contribute to, but if you
build mapnik from source this doesn't happen:

> git clone https://github.com/mapnik/mapnik.git cd mapnik git
> checkout v2.2.0 ./configure
> LINK_PRIORITY=system,internal,other,frameworks,user python
> scons/scons.py install

does the trick for me. I am not sure if the LINK_PRIORITY must be
really set though ...

Frank

- -- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTe1QQAAoJEHopqW0d1cQVl7wIAJ0Xj6/PM+CheduRhJ68Pqbj
xZ9ACCFgw2fxQzmig+0nGmh2ap43myrMfTR3YztjGAqYRZ6/mHX+2d0dXjMEVUe0
EQaABLpXLhNX59MtquCEar6Jk3sMhan5j4wdFHWABX7+Xn90u49RsFaQPAcgYrK1
AzY3bfyqY8m2mYBm2vfcDBJoKaqErjObfTNUOgcjLnSxlkh4cIOJsxQGue+zhIl7
QJN7zkjgiZdQTVr38aEVaBAsxD4U45VBgG6RsaMOBfO9louXNamNxp4nAdGyufC2
FsFiIxis3Mrx6vala4xjlmdaSdyozIH8KoqZQB8DDfekkiWBPTvsN3+UYQ1T4oI=
=tU2D
-----END PGP SIGNATURE-----

----- End forwarded message -----
Comment 4 John Marino freebsd_committer freebsd_triage 2014-07-11 12:30:52 UTC
mapnik has been building just fine in a clean environement according to portsmon:
http://portsmon.freebsd.org/portoverview.py?category=graphics&portname=mapnik

Closing as invalid and notifying maintainer.
Comment 5 littlesavage 2014-07-11 13:29:18 UTC
Created attachment 144573 [details]
Fix build when graphics/agg is installed

[maintaner-update] Fix build when graphics/agg is installed

I have sent this patch to the originator, but looks like it was lost when moving to bugzilla.
Comment 6 John Marino freebsd_committer freebsd_triage 2014-07-11 20:45:45 UTC
erg, this patch didn't patch cleanly.  The currently port revision is at 8, not 6.  In the future, please ensure the patch applies cleanly before uploading as attachment.
Comment 7 commit-hook freebsd_committer freebsd_triage 2014-07-11 21:33:30 UTC
A commit references this bug:

Author: marino
Date: Fri Jul 11 21:33:20 UTC 2014
New revision: 361586
URL: http://svnweb.freebsd.org/changeset/ports/361586

Log:
  graphics/mapnik: fix build with graphics/agg is installed

  PR: 		189943
  Submitted by:	brfr (metrico.lu)
  Patch by:	maintainer (Aleksey Illarionov)

Changes:
  head/graphics/mapnik/Makefile