[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    [postgis-users] configure on HP-UX
From:       Scott Brunza <scottso () sonalysts ! com>
Date:       2011-02-17 14:50:38
Message-ID: 1DED9861-6F15-4AC6-9274-CEEE5E1292DD () sonalysts ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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.


[Attachment #5 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; ">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. &nbsp;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. &nbsp;My configure line \
is:<div><br></div><div>./configure&nbsp;--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<br><div><br \
class="webkit-block-placeholder"></div><div><br></div><div>Below are sections from \
configure's output and config.log. &nbsp;LPATH, LDPATH, SHLIB_PATH, and \
LD_LIBRARY_PATH are all set (to the same thing) and include /WX/wXstation/local/lib. \
&nbsp;I hope someone can help me \
out.</div><div><br></div><div>Scott</div><div><br></div><div><br \
class="webkit-block-placeholder"></div><div> <span class="Apple-style-span" \
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; \
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: \
0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><span class="Apple-style-span" \
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><span class="Apple-style-span" \
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; \
font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span \
class="Apple-style-span" style="font-size: 12px; "><div>-- snip configure output \
--</div><div><div>Using user-specified pg_config file: \
/WX/wXstation/pgsql/bin/pg_config</div><div>checking PostgreSQL version... PostgreSQL \
8.4.2</div><div>checking libpq-fe.h usability... yes</div><div>checking libpq-fe.h \
presence... yes</div><div>checking for libpq-fe.h... yes</div><div>checking for \
PQserverVersion in -lpq... yes</div><div>Using user-specified xml2-config file: \
/WX/wXstation/local/bin/xml2-config</div><div>checking libxml/tree.h usability... \
yes</div><div>checking libxml/tree.h presence... yes</div><div>checking for \
libxml/tree.h... yes</div><div>checking libxml/parser.h usability... \
yes</div><div>checking libxml/parser.h presence... yes</div><div>checking for \
libxml/parser.h... yes</div><div>checking libxml/xpath.h usability... \
yes</div><div>checking libxml/xpath.h presence... yes</div><div>checking for \
libxml/xpath.h... yes</div><div>checking libxml/xpathInternals.h usability... \
yes</div><div>checking libxml/xpathInternals.h presence... yes</div><div>checking for \
libxml/xpathInternals.h... yes</div><div>checking for xmlInitParser in -lxml2... \
yes</div><div>Using user-specified geos-config file: \
/WX/wXstation/local/bin/geos-config</div><div>checking GEOS version... \
3.2.2</div><div>checking geos_c.h usability... yes</div><div>checking geos_c.h \
presence... yes</div><div>checking for geos_c.h... yes</div><div>checking for \
initGEOS in -lgeos_c... no</div><div>configure: error: could not find libgeos_c - you \
may need to specify the directory of a geos-config file using \
--with-geosconfig</div><div>-- end snip --</div><div><br></div><div><br></div><div>-- \
snip config.log --</div><div><div>configure:15323: result: checking GEOS version... \
3.2.2</div><div>configure:15334: checking geos_c.h \
usability</div><div>configure:15334: gcc -c -g -O2 -I/WX/wXstation/local/include \
conftest.c &gt;&amp;5</div><div>configure:15334: $? = 0</div><div>configure:15334: \
result: yes</div><div>configure:15334: checking geos_c.h \
presence</div><div>configure:15334: gcc -E -I/WX/wXstation/local/include \
conftest.c</div><div>configure:15334: $? = 0</div><div>configure:15334: result: \
yes</div><div>configure:15334: checking for geos_c.h</div><div>configure:15334: \
result: yes</div><div>configure:15346: checking for initGEOS in \
-lgeos_c</div><div>configure:15371: gcc -o conftest -g -O2 \
-I/WX/wXstation/local/include/libxml2 &nbsp;c</div><div>onftest.c -lgeos_c \
&nbsp;-L-L/WX/wXstation/local/lib &gt;&amp;5</div><div>/usr/ccs/bin/ld: Unsatisfied \
symbols:</div><div>&nbsp;&nbsp; \
geos::geom::GeometryFactory::createPoint(geos::geom::CoordinateSequence*) \
con</div><div>st(first referenced in \
/WX/wXstation/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_</div><div>c.o)) \
(code)</div><div>&nbsp;&nbsp; \
geos::geom::GeometryFactory::createGeometryCollection(std::vector&lt;geos::geom:</div><div>:Geometry*, \
std::allocator&lt;geos::geom::Geometry*&gt; &gt;*) const(first referenced \
in</div><div>/WX/wXstation/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_c.o)) \
(code)</div><div>&nbsp;&nbsp; __gxx_personality_v0 (first referenced in \
/WX/wXstation/local/lib/libgeos_c.a</div><div>(libgeos_c_la-geos_c.o)) \
(code)</div></div><div><br></div><div>&lt; a lot more of these \
&gt;</div><div><br></div><div><div>&nbsp;&nbsp; std::basic_string&lt;char, \
std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::appen</div><div>d(char \
const*, unsigned long)(first referenced in \
/WX/wXstation/local/lib/libgeo</div><div>s_c.a(libgeos_c_la-geos_ts_c.o)) \
(code)</div><div>collect2: ld returned 1 exit status</div><div>configure:15371: $? = \
1</div><div>configure: failed program was:</div><div>| /* confdefs.h */</div><div>| \
#define PACKAGE_NAME ""</div><div>| #define PACKAGE_TARNAME ""</div><div>| #define \
PACKAGE_VERSION ""</div><div>| #define PACKAGE_STRING ""</div><div>| #define \
PACKAGE_BUGREPORT ""</div><div>| #define PACKAGE_URL ""</div><div>| #define \
STDC_HEADERS 1</div><div>| #define HAVE_SYS_TYPES_H 1</div><div>| #define \
HAVE_SYS_STAT_H 1</div><div>| #define HAVE_STDLIB_H 1</div><div>| #define \
HAVE_STRING_H 1</div><div>| #define HAVE_MEMORY_H 1</div><div>| #define \
HAVE_STRINGS_H 1</div><div>| #define HAVE_INTTYPES_H 1</div><div>| #define \
HAVE_UNISTD_H 1</div><div>| #define HAVE_DLFCN_H 1</div><div>| #define LT_OBJDIR \
".libs/"</div><div>| #define POSTGIS_MAJOR_VERSION "1"</div><div>| #define \
POSTGIS_MINOR_VERSION "5"</div><div>| #define POSTGIS_MICRO_VERSION "2"</div><div>| \
#define YYTEXT_POINTER 1</div><div>| #define HAVE_IEEEFP_H 0</div><div>| #define \
PWDREGRESS 1</div><div>| #define HAVE_ICONV 1</div><div>| #define HAVE_LIBPQ \
1</div><div>| #define POSTGIS_PGSQL_VERSION 84</div><div>| #define HAVE_LIBXML_TREE_H \
1</div></div><div><div>| #define HAVE_LIBXML_PARSER_H 1</div><div>| #define \
HAVE_LIBXML_XPATH_H 1</div><div>| #define HAVE_LIBXML_XPATHINTERNALS_H 1</div><div>| \
#define HAVE_LIBXML2 1</div><div>| #define POSTGIS_LIBXML2_VERSION \
"2.7.8"</div><div>| /* end confdefs.h. &nbsp;*/</div><div>|</div><div>| /* Override \
any GCC internal prototype to avoid an error.</div><div>| &nbsp; &nbsp;Use char \
because int might match the return type of a GCC</div><div>| &nbsp; &nbsp;builtin and \
then its argument prototype would still apply. &nbsp;*/</div><div>| #ifdef \
__cplusplus</div><div>| extern "C"</div><div>| #endif</div><div>| char initGEOS \
();</div><div>| int</div><div>| main ()</div><div>| {</div><div>| return initGEOS \
();</div><div>| &nbsp; ;</div><div>| &nbsp; return 0;</div><div>| \
}</div></div><div><div>configure:15380: result: no</div><div>configure:15390: error: \
could not find libgeos_c - you may need to specify the d</div><div>irectory of a \
geos-config file using --with-geosconfig</div></div><div>&nbsp;-- end snip \
--</div><br class="khtml-block-placeholder"></div><div><font class="Apple-style-span" \
face="Courier New">---&nbsp;Let us all bask in television's warm glowing warming glow \
---</font></div><div><font class="Apple-style-span" face="Courier New">Scott \
Brunza&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;860.326.3637&nbsp; &nbsp;&nbsp; \
&nbsp;&nbsp; &nbsp;<a \
href="mailto:scottso@sonalysts.com">scottso@sonalysts.com</a></font></div></span></div><div><br></div></div></span><font \
class="Apple-style-span" face="'Courier New'" size="3"><span class="Apple-style-span" \
style="font-size: 12px; ">This</span><span class="Apple-style-span" style="font-size: \
12px; "><span class="Apple-converted-space">&nbsp;</span></span><span \
class="Apple-style-span" style="font-size: 12px; ">e-mail and any files transmitted \
with it may be &nbsp;proprietary</span></font></span><div><span \
class="Apple-style-span" style="border-collapse: separate; font-variant: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; font-style: normal; font-weight: normal; color: \
rgb(0, 0, 0); "><font class="Apple-style-span" face="'Courier New'" size="3"><span \
class="Apple-style-span" style="font-size: 12px; ">and&nbsp;are &nbsp;intended solely \
for the use of the &nbsp;individual or entity</span></font></span></div><div><span \
class="Apple-style-span" style="border-collapse: separate; font-variant: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; font-style: normal; font-weight: normal; color: \
rgb(0, 0, 0); "><font class="Apple-style-span" face="'Courier New'" size="3"><span \
class="Apple-style-span" style="font-size: 12px; ">to whom&nbsp;they are addressed. \
&nbsp;If you have received this &nbsp;e-mail in</span></font></span></div><div><span \
class="Apple-style-span" style="border-collapse: separate; font-variant: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; \
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; font-style: normal; font-weight: normal; color: \
rgb(0, 0, 0); "><font class="Apple-style-span" face="'Courier New'" size="3"><span \
class="Apple-style-span" style="font-size: 12px; ">error please&nbsp;notify the \
sender.</span></font></span></div></span> </div>
<br></div></body></html>



_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic