[postgis-users] PostGIS Solaris 10 compile issue - detecting iconv versions [SEC=UNCLASSIFIED]

Roppola, Antti - BRS Antti.Roppola at brs.gov.au
Wed Jan 14 20:13:39 PST 2009


Hi all,
 
I have a Solaris 10 build of PostGIS, but so far I've had to disable
unicode support (--without-unicode).
 
The issue seems pretty close to the one described in this mapserver
ticket, http://trac.osgeo.org/mapserver/ticket/1017
 
That is, my build seems to be finding the Sun library or headers, which
(according to the Mapserver ticket) do not implement UTF-8.
It should (I think) be using the GNU libiconv is in /usr/local/, which
does implement UTF-8. I have "iconv.h" in /usr/include/
and /usr/local/include/. That or some other sort of confusion between
the two.
 
So far I haven't been able to find a configure option that will allow me
to specifiy use of the correct iconv. Has anyone
else encountered this and/or have any ideas on how it could be resolved?
 
Other than that, my non-unicode version seems to be working OK.
 
Thanks,

Antti
 
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=83
-DPOSTGIS_VERSION='"1.3.5"'   -c -o shp2pgsql.o shp2pgsql.c
shp2pgsql.c: In function `ParseCmdline':
shp2pgsql.c:1325: warning: implicit declaration of function
`pgis_getopt'
shp2pgsql.c: In function `utf8':
shp2pgsql.c:1812: warning: passing arg 2 of `libiconv' from incompatible
pointer type
gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=83
-DPOSTGIS_VERSION='"1.3.5"' shpopen.o dbfopen.o getopt.o shp2pgsql.o  -o
shp2pgsql 
Undefined                       first referenced
 symbol                             in file
libiconv_close                      shp2pgsql.o
libiconv_open                       shp2pgsql.o
libiconv                            shp2pgsql.o
ld: fatal: Symbol referencing errors. No output written to shp2pgsql

 


------
IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain sensitive and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. 

Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF 

------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090115/5920749b/attachment.html>


More information about the postgis-users mailing list