[postgis-devel] configure on HP-UX

Scott Brunza scottso at sonalysts.com
Fri Feb 25 05:18:32 PST 2011


I'm posting this to to the devel list after not having heard anything for a week, probably because I noticed I originally posted this to the users list.  I hope someone can help.



I've build and installed postgis on Mac and linux boxes without issue, but am having a hell of a time on HP-UX 11.11; it's choking on a test for libgeos_c.  I've built and installed xml2, proj, and geos into /WX/wXstation/local and postgres in /WX/wXstation/pgsql, and all their associated *config scripts run fine.  My configure line is:

./configure --with-projdir=/WX/wXstation/local --with-geosconfig=/WX/wXstation/local/bin/geos-config --with-pgconfig=/WX/wXstation/pgsql/bin/pg_config --with-xml2config=/WX/wXstation/local/bin/xml2-config


Below are sections from configure's output and config.log.  LPATH, LDPATH, SHLIB_PATH, and LD_LIBRARY_PATH are all set (to the same thing) and include /WX/wXstation/local/lib.  I hope someone can help me out.

Scott


-- snip configure output --
Using user-specified pg_config file: /WX/wXstation/pgsql/bin/pg_config
checking PostgreSQL version... PostgreSQL 8.4.2
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking for PQserverVersion in -lpq... yes
Using user-specified xml2-config file: /WX/wXstation/local/bin/xml2-config
checking libxml/tree.h usability... yes
checking libxml/tree.h presence... yes
checking for libxml/tree.h... yes
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
checking libxml/xpath.h usability... yes
checking libxml/xpath.h presence... yes
checking for libxml/xpath.h... yes
checking libxml/xpathInternals.h usability... yes
checking libxml/xpathInternals.h presence... yes
checking for libxml/xpathInternals.h... yes
checking for xmlInitParser in -lxml2... yes
Using user-specified geos-config file: /WX/wXstation/local/bin/geos-config
checking GEOS version... 3.2.2
checking geos_c.h usability... yes
checking geos_c.h presence... yes
checking for geos_c.h... yes
checking for initGEOS in -lgeos_c... no
configure: error: could not find libgeos_c - you may need to specify the directory of a geos-config file using --with-geosconfig
-- end snip --


-- snip config.log --
configure:15323: result: checking GEOS version... 3.2.2
configure:15334: checking geos_c.h usability
configure:15334: gcc -c -g -O2 -I/WX/wXstation/local/include conftest.c >&5
configure:15334: $? = 0
configure:15334: result: yes
configure:15334: checking geos_c.h presence
configure:15334: gcc -E -I/WX/wXstation/local/include conftest.c
configure:15334: $? = 0
configure:15334: result: yes
configure:15334: checking for geos_c.h
configure:15334: result: yes
configure:15346: checking for initGEOS in -lgeos_c
configure:15371: gcc -o conftest -g -O2 -I/WX/wXstation/local/include/libxml2  c
onftest.c -lgeos_c  -L-L/WX/wXstation/local/lib >&5
/usr/ccs/bin/ld: Unsatisfied symbols:
   geos::geom::GeometryFactory::createPoint(geos::geom::CoordinateSequence*) con
st(first referenced in /WX/wXstation/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_
c.o)) (code)
   geos::geom::GeometryFactory::createGeometryCollection(std::vector<geos::geom:
:Geometry*, std::allocator<geos::geom::Geometry*> >*) const(first referenced in
/WX/wXstation/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_c.o)) (code)
   __gxx_personality_v0 (first referenced in /WX/wXstation/local/lib/libgeos_c.a
(libgeos_c_la-geos_c.o)) (code)

< a lot more of these >

   std::basic_string<char, std::char_traits<char>, std::allocator<char> >::appen
d(char const*, unsigned long)(first referenced in /WX/wXstation/local/lib/libgeo
s_c.a(libgeos_c_la-geos_ts_c.o)) (code)
collect2: ld returned 1 exit status
configure:15371: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define POSTGIS_MAJOR_VERSION "1"
| #define POSTGIS_MINOR_VERSION "5"
| #define POSTGIS_MICRO_VERSION "2"
| #define YYTEXT_POINTER 1
| #define HAVE_IEEEFP_H 0
| #define PWDREGRESS 1
| #define HAVE_ICONV 1
| #define HAVE_LIBPQ 1
| #define POSTGIS_PGSQL_VERSION 84
| #define HAVE_LIBXML_TREE_H 1
| #define HAVE_LIBXML_PARSER_H 1
| #define HAVE_LIBXML_XPATH_H 1
| #define HAVE_LIBXML_XPATHINTERNALS_H 1
| #define HAVE_LIBXML2 1
| #define POSTGIS_LIBXML2_VERSION "2.7.8"
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char initGEOS ();
| int
| main ()
| {
| return initGEOS ();
|   ;
|   return 0;
| }
configure:15380: result: no
configure:15390: error: could not find libgeos_c - you may need to specify the d
irectory of a geos-config file using --with-geosconfig
 -- end snip --



--- Let us all bask in television's warm glowing warming glow ---
Scott Brunza           860.326.3637         scottso at sonalysts.com

This e-mail and any files transmitted with it may be  proprietary
and are  intended solely for the use of the  individual or entity
to whom they are addressed.  If you have received this  e-mail in
error please notify the sender.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20110225/22ebb30f/attachment.html>


More information about the postgis-devel mailing list