Re: make error - libpqdll.def No such file or directory - Mailing list pgsql-hackers

From Igal @ Lucee.org
Subject Re: make error - libpqdll.def No such file or directory
Date
Msg-id 569E7B8D.2070908@lucee.org
Whole thread Raw
In response to Re: make error - libpqdll.def No such file or directory  ("Igal @ Lucee.org" <igal@lucee.org>)
Responses Re: make error - libpqdll.def No such file or directory  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: make error - libpqdll.def No such file or directory  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 1/17/2016 8:17 PM, Igal @ Lucee.org wrote:<br /><blockquote cite="mid:569C6740.2060407@lucee.org" type="cite"> On
1/17/20163:24 PM, Igal @ Lucee.org wrote:<br /><blockquote cite="mid:569C22C0.70404@lucee.org" type="cite"> When
runningmake I encounter the following error:<br /><br /><tt>gcc.exe: error: libpqdll.def: No such file or directory<br
/>/home/Admin/sources/postgresql-9.5.0/src/Makefile.shlib:393: recipe for target 'libpq.dll' failed<br /> make[3]: ***
[libpq.dll]Error 1<br /> make[3]: Leaving directory '/home/Admin/builds/postgresql-9.5.0/src/interfaces/libpq'<br />
Makefile:17:recipe for target 'all-libpq-recurse' failed<br /> make[2]: *** [all-libpq-recurse] Error 2<br /> make[2]:
Leavingdirectory '/home/Admin/builds/postgresql-9.5.0/src/interfaces'<br /> Makefile:34: recipe for target
'all-interfaces-recurse'failed<br /> make[1]: *** [all-interfaces-recurse] Error 2<br /> make[1]: Leaving directory
'/home/Admin/builds/postgresql-9.5.0/src'<br/> GNUmakefile:11: recipe for target 'all-src-recurse' failed<br /> make:
***[all-src-recurse] Error 2</tt><br /><br /> But /home/Admin/builds/postgresql-9.5.0/src/interfaces/libpq does contain
thefile libpqdll.def<br /></blockquote><br /> The file <tt>/home/Admin/sources/postgresql-9.5.0/src/Makefile.shlib</tt>
existsas well.<br /><br /> It's hard for me to decipher which file is reporting the error and which file is not
found.<br/><br /> Any feedback would be greatly appreciated, thanks!<br /></blockquote> So when I try to run `make` I
stillget that error.  Please note that I am doing a VPATH build (the build in a separate directory from the downloaded
sources),which might play a role here:<br /><pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal;
font-weight:normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform:none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space:
pre-wrap;">x86_64-w64-mingw32-gcc.exe:error: libpqdll.def: No such file or directory
 
make[3]: *** [libpq.dll] Error 1
make[2]: *** [all-libpq-recurse] Error 2
make[1]: *** [all-interfaces-recurse] Error 2
make: *** [all-src-recurse] Error 2</pre> I found a script that builds postgresql via MinGW-w64, and in it the author
specificallycreates symlinks to libpqdll.def<br /><a class="moz-txt-link-freetext"
href="https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-postgresql/PKGBUILD#L72">https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-postgresql/PKGBUILD#L72</a>
--excerpt below:<br /><br /><tt>  # Make DLL definition file visible during each arch build</tt><tt><br /></tt><tt>  ln
-s"${srcdir}/postgresql-$pkgver/src/interfaces/libpq/libpqdll.def" src/interfaces/libpq/</tt><tt><br /></tt><tt>  ln -s
"${srcdir}/postgresql-$pkgver/src/interfaces/ecpg/ecpglib/libecpgdll.def"src/interfaces/ecpg/ecpglib/</tt><tt><br
/></tt><tt> ln -s "${srcdir}/postgresql-$pkgver/src/interfaces/ecpg/pgtypeslib/libpgtypesdll.def"
src/interfaces/ecpg/pgtypeslib/</tt><tt><br/></tt><tt>  ln -s
"${srcdir}/postgresql-$pkgver/src/interfaces/ecpg/compatlib/libecpg_compatdll.def"
src/interfaces/ecpg/compatlib/</tt><br/><br /> Why are the symlinks needed to make the definition files visible?<br
/><br/> Is this an issue with VPATH builds?  It is not mentioned in the docs where VPATH builds are discussed (section
15.4<a class="moz-txt-link-freetext"
href="http://www.postgresql.org/docs/9.5/static/install-procedure.html">http://www.postgresql.org/docs/9.5/static/install-procedure.html</a>
)<br/><br /> What is my best solutions?<br /><br /> Thanks!<br /><br /><br /> 

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Re: [JDBC] 9.4-1207 behaves differently with server side prepared statements compared to 9.2-1102
Next
From: "Shulgin, Oleksandr"
Date:
Subject: Re: Stream consistent snapshot via a logical decoding plugin as a series of INSERTs