delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/16/14:40:27

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=Ac5
QFeDkfN5qVlIHAOXJFePGkdUaa4R2JY0E3JpzFXAEevs0lx3Wrux7DBn2R3qjiRA
C3tIfaL9aMHIkwbg6oejSY+2VWWTA6iBTaeFAgSujw8t0i28gOinjsGVgPp5eFxA
5uKUIg7zKxtCPvECcV9q3EijZ3GHwakROnIoJDWI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:content-type
:content-transfer-encoding:mime-version; s=default; bh=ioK8yvIu3
lUMECK8VZHlbaLWFqI=; b=XUkl76Giu1NGriViTf+OtnL4DKFj/pkw0v7dv9BiT
fllmF4PcVKVD6A10Km99tg1o5+/MheoATHKfoqnHTX88eUE33vZ1WulMiW2Q4AHo
2snwd3qWA8mdpbeuwgbXt5IRDi7EL3aSAB+V/jTK+ifEL9eUrCSvJ6pj4TNgoPVy
5w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: DUB004-OMC1S7.hotmail.com
X-TMN: [gNHEM0tb+S8kvjpI61klsoEAEH/qlHDv]
Message-ID: <DUB129-W19C4AA39E1A06E97929EDDB0D60@phx.gbl>
From: "Gery ." <gamejihou AT hotmail DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: i686-pc-cygwin/bin/ld: cannot find -lpostgres
Date: Sat, 16 Aug 2014 18:39:57 +0000
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s7GIeL9d024702

Hello,

I'm trying to install postgis 2.2.0dev (http://postgis.net/stuff/postgis-2.2.0dev.tar.gz), but I got an error saying:

/usr/lib/gcc/i686-pc-cygwin/4.8.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lpostgres
collect2: error: ld returned 1 exit status
/usr/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.shlib:377: recipe for target 'postgis-2.2.dll' failed
make[1]: *** [postgis-2.2.dll] Error 1

In my cygwin (latest version, 32-bit), postgres.exe is in /usr/sbin and this path is already in $LD_LIBRARY_PATH in my .bashrc.

How can I solve that?

Thanks for any hints,

Gery

PS: The full error message is here:

--
Gery AT gery /opt/postgis/postgis-2.2.0dev
$ make
/usr/bin/perl utils/svn_repo_revision.pl
Can't fetch local revision (neither .svn nor .git found)
Not updating existing rev file at 12889
for s in liblwgeom libpgcommon postgis regress raster topology loader utils extensions; do \
        echo "---- Making all in ${s}"; \
        make -C ${s} all || exit 1; \
done;
---- Making all in liblwgeom
make[1]: Entering directory '/opt/postgis/postgis-2.2.0dev/liblwgeom'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/postgis/postgis-2.2.0dev/liblwgeom'
---- Making all in libpgcommon
make[1]: Entering directory '/opt/postgis/postgis-2.2.0dev/libpgcommon'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/postgis/postgis-2.2.0dev/libpgcommon'
---- Making all in postgis
make[1]: Entering directory '/opt/postgis/postgis-2.2.0dev/postgis'
gcc -ggdb -O2 -pipe -Wimplicit-function-declaration -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard   -shared -o postgis-2.2.dll  -Wl,--out-implib=libpostgis-2.2.a postgis_module.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_functions_basic.o lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_geos.o lwgeom_backend_api.o lwgeom_geos_prepared.o lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_geohash.o lwgeom_in_geojson.o lwgeom_in_encoded_polyline.o lwgeom_triggers.o lwgeom_dump.o lwgeom_dumppoints.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o lwgeom_transform.o gserialized_typmod.o gserialized_gist_2d.o gserialized_gist_nd.o gserialized_estimate.o geography_inout.o geography_btree.o geography_measurement.o geography_measurement_trees.o geometry_inout.o -L/usr/lib -Wl,--allow-multiple-definition -Wl,--enable-auto-import  -L/usr/local/lib -Wl,--as-needed   ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a  -L/usr/local/lib  -lgeos_c -lproj  -ljson-c -L/usr/lib -lxml2 -lz -liconv -lm  -L/usr/lib -lpostgres -lpgport -lpgcommon -lintl -lssl -lcrypto -lz -lreadline -lcrypt -lldap
/usr/lib/gcc/i686-pc-cygwin/4.8.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lpostgres
collect2: error: ld returned 1 exit status
/usr/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.shlib:377: recipe for target 'postgis-2.2.dll' failed
make[1]: *** [postgis-2.2.dll] Error 1
make[1]: Leaving directory '/opt/postgis/postgis-2.2.0dev/postgis'
GNUmakefile:14: recipe for target 'all' failed
make: *** [all] Error 1
-- 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019