public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* i686-pc-cygwin/bin/ld: cannot find -lpostgres
@ 2014-08-16 18:40 Gery .
  2014-08-16 19:43 ` Marco Atzeri
  0 siblings, 1 reply; 4+ messages in thread
From: Gery . @ 2014-08-16 18:40 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: i686-pc-cygwin/bin/ld: cannot find -lpostgres
  2014-08-16 18:40 i686-pc-cygwin/bin/ld: cannot find -lpostgres Gery .
@ 2014-08-16 19:43 ` Marco Atzeri
  0 siblings, 0 replies; 4+ messages in thread
From: Marco Atzeri @ 2014-08-16 19:43 UTC (permalink / raw)
  To: cygwin



On 16/08/2014 20:39, Gery . wrote:
> 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:
>

probably my fault.
Could you copy
http://matzeri.altervista.org/works/postgres/libpostgres.a

on /usr/lib
and see if this solve the issue ?

Thanks
Marco


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: i686-pc-cygwin/bin/ld: cannot find -lpostgres
  2014-08-16 21:02 Gery .
@ 2014-08-17  5:29 ` Marco Atzeri
  0 siblings, 0 replies; 4+ messages in thread
From: Marco Atzeri @ 2014-08-17  5:29 UTC (permalink / raw)
  To: cygwin

On 16/08/2014 23:02, Gery . wrote:
> Thanks a lot Marco for this email and the one I sent before about the shared libraries. I didn't answer before because I was inscribed as digest, so I just dropped that recently and subscribed again.
>
> That *.a file definitely did the trick, many thanks for that. I just explained what I did in the PostGIS mailing list also, perhaps someone else can find the solution there.
>
> Thanks again,
>
> Gery

libpostgres.a should be needed only to link vs the internal of postgres.

I am uploading a 9.3.5-2 version that will include it.


Regards
Marco


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: i686-pc-cygwin/bin/ld: cannot find -lpostgres
@ 2014-08-16 21:02 Gery .
  2014-08-17  5:29 ` Marco Atzeri
  0 siblings, 1 reply; 4+ messages in thread
From: Gery . @ 2014-08-16 21:02 UTC (permalink / raw)
  To: cygwin

Thanks a lot Marco for this email and the one I sent before about the shared libraries. I didn't answer before because I was inscribed as digest, so I just dropped that recently and subscribed again.

That *.a file definitely did the trick, many thanks for that. I just explained what I did in the PostGIS mailing list also, perhaps someone else can find the solution there.

Thanks again,

Gery


On 16/08/2014 20:39, Gery . wrote:
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:

probably my fault.
Could you copy
http://matzeri.altervista.org/works/postgres/libpostgres.a

on /usr/lib
and see if this solve the issue ?

Thanks
Marco

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-17  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-16 18:40 i686-pc-cygwin/bin/ld: cannot find -lpostgres Gery .
2014-08-16 19:43 ` Marco Atzeri
2014-08-16 21:02 Gery .
2014-08-17  5:29 ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).