[ELGIS] Trying to build mapserver package, stumbling on missing
libpgport.a
Peter Hopfgartner
peter.hopfgartner at r3-gis.com
Tue Aug 30 11:51:55 EDT 2011
I had a look at the current Fedora 5.6 spec and found this snippet:
--- devel/rpmbuild/elgis/mapserver/SPECS/mapserver.spec 2011-08-30
15:21:13.090399236 +0200
+++ rpmbuild/SPECS/mapserver.spec 2011-08-30 17:47:47.831351541 +0200
@@ -148,6 +148,11 @@
--with-experimental-png \
--with-fribidi-config
+# disable pgport library lookup.
+for makefile in `find . -type f -name 'Makefile'`; do
+sed -i 's|-lpgport||g' $makefile
+done
+
# WARNING !!!
# using %{?_smp_mflags} may break build
which does the job.
Peter
On 08/30/2011 03:55 PM, Peter Hopfgartner wrote:
> I've configured a new Virtual Machine for building EL6 packages.
>
> Starting building the MapServer 5.6.7 package, I'm struck with this
> message:
>
> (...)
> g++ -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT
> -DNEED_STRRSTR -DUSE_FASTCGI -DUSE_FRIBIDI -DUSE_FRIBIDI2
> -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL
> -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYGIS -DUSE_POSTGIS
> -DPOSTGIS_HAS_SERVER_VERSION -DUSE_TIFF -DUSE_GDAL -DUSE_OGR
> -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ
> -DUSE_RGBA_PNG -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 -DUSE_FRIBIDI
> -DUSE_FRIBIDI2 -I/usr/include -I/usr/include/freetype2
> -I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC
> -DUNIV_LINUX -I/usr/include -I/usr/include -I/usr/include/fastcgi
> -I/usr/include/libxml2 -I/usr/include/fribidi shp2img.o -L.
> -lmapserver -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm
> -lX11 -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj
> -ljpeg -lpng -lgdal -L/usr/lib64 -lpq -lpgport -lxslt -lxml2 -lpam
> -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm
> -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl
> -lcrypto -lmysqlclient -lcurl -L/usr/lib64 -lgeos_c -lpthread -lc
> -L/usr/lib -lfcgi -lz -lxml2 -lz -lm -lfribidi -lm -lstdc++ -o
> shp2img
> /usr/bin/ld: cannot find -lpgport
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
>
>
> The static lib, which in EL5 was /usr/lib64/libpgport.a, has been
> dropped from the PostgreSQL packages in
>
> http://pkgs.fedoraproject.org/gitweb/?p=postgresql.git;a=commitdiff;h=a6a1e9bfab6192bbdaea41e88368ae7d242316d7
>
>
> but I do not see any dynamically linkable libpgport.so.
>
> How could I proceed?
>
> Regards,
>
> Peter
> _______________________________________________
> el mailing list
> el at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/el
--
Dott. Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web : www.r3-gis.com
mail : peter.hopfgartner at r3-gis.com
phone: +39 0473 494949
fax : +39 0473 069902
ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail.
ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten.
WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003)
More information about the el
mailing list