[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: [GENERAL] Problems building from source
From: "Bidski" <bidski () bigpond ! net ! au>
Date: 2010-06-30 22:30:31
Message-ID: 570EB8794F914CA4AFA7B4237E8AC4FE () Panda
[Download RAW message or body]
Hi all,
I recently had some problems with a pre-built version of PostgreSQL and so I decided \
to try and build my own copy from source, but have run into even more problems.
I downloaded a copy of the source, unpacked it into a directory and had a quick look \
at the possible configure options (./configure --help) just to see if anything \
specific caught my eye. The only thing I saw was --with-gnu-ld. So I ran configure in \
the postgresql src root directory as ./configure --with-gnu-ld --prefix=/mingw. I got \
as far as the zlib checks when configure told me that I didnt have zlib installed (a \
quick look at my files confirmed this), so I went to www.zlib.net and downloaded \
version 1.2.5 (this appears to be the latest), I then built and installed this. \
Running configure again (with the same options) gave me a wonderful error.
configure: error: zlib version is too old
Use --without-zlib to disable zlib support.
How can the latest version be too old????? Seeing this, I uninstalled that version \
and went in search of other versions. The versions I found may not have been newer \
(may have been older) but I tried them anyways, all with the same results, apparently \
all versions were too old. The other versions I found were on the MinGW/MSYS download \
site (http://sourceforge.net/projects/mingw/files/), I tried the most recent versions \
listed on there.
Faced with that, I then changed my configure line to be ./configure --prefix=/mingw \
--with-gnu-ld --without-zlib (who needs zlib anyways, right?). Now I was thinking \
that surely this would be the end of it and I would soon have a fully built version \
of PostgreSQL ........ sadly not. I now get this error.
checking for atexit... yes
checking test program... failed
configure: error:
Could not execute a simple test program. This may be a problem
related to locating shared libraries. Check the file 'config.log'
for the exact reason.
And now I have no idea. I had a look at config.log and to find this.
configure:21835: checking for atexit
configure:21891: gcc -qlanglvl=extc89 -o conftest.exe -O2 -Wall \
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels \
-fno-strict-aliasing -fwrapv -I./src/include/port/win32 -DEXEC_BACKEND \
-Wl,--allow-multiple-definition conftest.c >&5 gcc.exe: unrecognized option \
'-qlanglvl=extc89' configure:21898: $? = 0
configure:21920: result: yes
configure:23234: checking test program
configure:23254: gcc -qlanglvl=extc89 -o conftest.exe -O2 -Wall \
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels \
-fno-strict-aliasing -fwrapv -I./src/include/port/win32 -DEXEC_BACKEND \
-Wl,--allow-multiple-definition conftest.c >&5 gcc.exe: unrecognized option \
'-qlanglvl=extc89' configure:23258: $? = 0
configure:23264: ./conftest.exe
./configure: line 23266: ./conftest.exe: Invalid argument
configure:23268: $? = 126
configure: program exited with status 126
configure: failed program was:
Having a look at line 23266 of configure and Im lost (never could understand those \
things).
Can anyone tell me what is going on here? I have built other libraries/packages with \
this toolchain (wxWidgets, xerces-c, boost), so I dont think it is broken.
Some system info.....
OS: Windows 7 64-bit
MSYS ver: 1.0.14
MinGW ver: 4.5.0
Make ver: GNU make 3.81
If it matters ..... My IDE is Eclipse Galileo and I am compiling my project using the \
MinGW toolchain.
If you need any more info just let me know.
Regards
Bidski
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16588"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>
<P><FONT size=3>Hi all,</FONT></P>
<P>I recently had some problems with a pre-built version of PostgreSQL and so I
decided to try and build my own copy from source, but have run into even more
problems.</P>
<P><FONT size=3>I downloaded a copy of the source, unpacked it into a directory
and had a quick look at the possible configure options (./configure --help) just
to see if anything specific caught my eye. The only thing I saw was
--with-gnu-ld. So I ran configure in the postgresql src root directory as
./configure --with-gnu-ld --prefix=/mingw. I got as far as the zlib checks when
configure told me that I didnt have zlib installed (a quick look at my files
confirmed this), so I went to <A
title="wlmailhtml:{8717F04F-CF92-488C-92E6-BD129F648049}mid://00000261/!x-usc:http://www.zlib.net/ CTRL \
+ Click to follow link" \
href="wlmailhtml:{8717F04F-CF92-488C-92E6-BD129F648049}mid://00000261/!x-usc:http://www.zlib.net/">www.zlib.net</A> \
and downloaded version 1.2.5 (this appears to be the latest), I then built and
installed this. Running configure again (with the same options) gave me a
wonderful error.</FONT></P>
<P><FONT size=3> configure: error: zlib version is too
old<BR> Use --without-zlib to disable zlib
support.</FONT></P>
<P><FONT size=3>How can the latest version be too old????? Seeing this, I
uninstalled that version and went in search of other versions. The versions I
found may not have been newer (may have been older) but I tried them anyways,
all with the same results, apparently all versions were too old. The other
versions I found were on the MinGW/MSYS download site (<A
href="http://sourceforge.net/projects/mingw/files/">http://sourceforge.net/projects/mingw/files/</A>), \
I tried the most recent versions listed on there.</FONT></P>
<P><FONT size=3>Faced with that, I then changed my configure line to be
./configure --prefix=/mingw --with-gnu-ld --without-zlib (who needs zlib
anyways, right?). Now I was thinking that surely this would be the end of it and
I would soon have a fully built version of PostgreSQL ........ sadly not. I now
get this error.</FONT></P>
<P><FONT size=3> checking for atexit...
yes<BR> checking test program...
failed<BR> configure:
error:<BR> Could not execute a simple test program.
This may be a problem<BR> related to locating shared
libraries. Check the file 'config.log'<BR> for the
exact reason.</FONT></P>
<P><FONT size=3>And now I have no idea. I had a look at config.log and to find
this.</FONT></P>
<P><FONT size=3> configure:21835: checking for
atexit<BR> configure:21891: gcc -qlanglvl=extc89 -o
conftest.exe -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-I./src/include/port/win32 -DEXEC_BACKEND
-Wl,--allow-multiple-definition conftest.c
>&5<BR> gcc.exe: unrecognized option
'-qlanglvl=extc89'<BR> configure:21898: $? =
0<BR> configure:21920: result:
yes<BR> configure:23234: checking test
program<BR> configure:23254: gcc -qlanglvl=extc89 -o
conftest.exe -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
-I./src/include/port/win32 -DEXEC_BACKEND
-Wl,--allow-multiple-definition conftest.c
>&5<BR> gcc.exe: unrecognized option
'-qlanglvl=extc89'<BR> configure:23258: $? =
0<BR> configure:23264:
./conftest.exe<BR> ./configure: line 23266:
./conftest.exe: Invalid argument<BR> configure:23268: $?
= 126<BR> configure: program exited with status
126<BR> configure: failed program was:</FONT></P>
<P><FONT size=3>Having a look at line 23266 of configure and Im lost (never
could understand those things).</FONT></P>
<P><FONT size=3>Can anyone tell me what is going on here? I have built other
libraries/packages with this toolchain (wxWidgets, xerces-c, boost), so I dont
think it is broken.</FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>Some system info.....</FONT></P>
<P><FONT size=3>OS: Windows 7 64-bit</FONT></P>
<P><FONT size=3>MSYS ver: 1.0.14</FONT></P>
<P><FONT size=3>MinGW ver: 4.5.0</FONT></P>
<P><FONT size=3>Make ver: GNU make 3.81</FONT></P>
<P><FONT size=3>If it matters ..... My IDE is Eclipse Galileo and I am compiling
my project using the MinGW toolchain.</FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>If you need any more info just let me know.</FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>Regards</FONT></P>
<P><FONT size=3>Bidski</FONT></P></FONT></DIV></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic