Thread: Problem with ./configure script?

Problem with ./configure script?

From
"Tony Culshaw"
Date:
I've been a good boy, following the instructions, but I'm a newbie and might
be missing something obvious.

I installed cygwin onto Win2000 - no worries.
I downloaded and *** compiled *** the cygipc source without errors, and
installed as a service - no worries.

I downloaded pqsql 7.1.3 and unzipped into the cygwin root preserving the
directory structure.

I then tied to run ./configure and got the following:

**********************************
$ cd /postgresql-7.1.3

tony@CULTECH1 /postgresql-7.1.3
$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-cygwin
checking which template to use... win
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character support... no
checking whether to build with Unicode conversion support... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
using CFLAGS=-O2
checking whether the C compiler (gcc -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
creat
e executables.

tony@CULTECH1 /postgresql-7.1.3
$

**********************************

Here's the config.log file:

**********************************
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:629: checking host system type
configure:655: checking which template to use
configure:818: checking whether to build with locale support
configure:847: checking whether to build with recode support
configure:877: checking whether to build with multibyte character support
configure:929: checking whether to build with Unicode conversion support
configure:960: checking for default port number
configure:994: checking for default soft limit on number of connections
configure:1118: checking for gcc
configure:1231: checking whether the C compiler (gcc  ) works
configure:1247: gcc -o conftest    conftest.c  1>&5
configure:1273: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1278: checking whether we are using GNU C
configure:1287: gcc -E conftest.c
configure:1306: checking whether gcc accepts -g
configure:1349: checking whether the C compiler (gcc -O2 ) works
configure:1365: gcc -o conftest -O2   conftest.c -lcygipc 1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -lcygipc
collect2: ld returned 1 exit status
configure: failed program was:

#line 1360 "configure"
#include "confdefs.h"

main(){return(0);}

**********************************

I'm well and truly lost here, but if someone could point me in the right
direction I'd be eternally grateful.

Cheers!

Tony.


Re: Problem with ./configure script?

From
"Henshall, Stuart - WCP"
Date:
You have to have the ipc-daemon running I believe. There is a pre-built
postgresql binary available with cygwin (plus a README). Try just doing
initdb and seeing if that works (after running the ipc-daemon (or starting
the service)).
- Stuart

> -----Original Message-----
> From:    Tony Culshaw [SMTP:tculshaw@bigpond.net.au]
> Sent:    Tuesday, September 18, 2001 12:47 PM
> To:    pgsql-cygwin@postgresql.org
> Subject:    [CYGWIN] Problem with ./configure script?
>
> I've been a good boy, following the instructions, but I'm a newbie and
> might
> be missing something obvious.
>
> I installed cygwin onto Win2000 - no worries.
> I downloaded and *** compiled *** the cygipc source without errors, and
> installed as a service - no worries.
>
> I downloaded pqsql 7.1.3 and unzipped into the cygwin root preserving the
> directory structure.
>
> I then tied to run ./configure and got the following:
>
> **********************************
> $ cd /postgresql-7.1.3
>
> tony@CULTECH1 /postgresql-7.1.3
> $ ./configure
> loading cache ./config.cache
> checking host system type... i686-pc-cygwin
> checking which template to use... win
> checking whether to build with locale support... no
> checking whether to build with recode support... no
> checking whether to build with multibyte character support... no
> checking whether to build with Unicode conversion support... no
> checking for default port number... 5432
> checking for default soft limit on number of connections... 32
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> using CFLAGS=-O2
> checking whether the C compiler (gcc -O2 ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> creat
> e executables.
>
> tony@CULTECH1 /postgresql-7.1.3
> $
>
> **********************************
>
> Here's the config.log file:
>
> **********************************
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> configure:629: checking host system type
> configure:655: checking which template to use
> configure:818: checking whether to build with locale support
> configure:847: checking whether to build with recode support
> configure:877: checking whether to build with multibyte character support
> configure:929: checking whether to build with Unicode conversion support
> configure:960: checking for default port number
> configure:994: checking for default soft limit on number of connections
> configure:1118: checking for gcc
> configure:1231: checking whether the C compiler (gcc  ) works
> configure:1247: gcc -o conftest    conftest.c  1>&5
> configure:1273: checking whether the C compiler (gcc  ) is a
> cross-compiler
> configure:1278: checking whether we are using GNU C
> configure:1287: gcc -E conftest.c
> configure:1306: checking whether gcc accepts -g
> configure:1349: checking whether the C compiler (gcc -O2 ) works
> configure:1365: gcc -o conftest -O2   conftest.c -lcygipc 1>&5
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld
> :
> cannot find -lcygipc
> collect2: ld returned 1 exit status
> configure: failed program was:
>
> #line 1360 "configure"
> #include "confdefs.h"
>
> main(){return(0);}
>
> **********************************
>
> I'm well and truly lost here, but if someone could point me in the right
> direction I'd be eternally grateful.
>
> Cheers!
>
> Tony.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

Re: Problem with ./configure script?

From
Jason Tishler
Date:
Tony,

On Tue, Sep 18, 2001 at 09:47:23PM +1000, Tony Culshaw wrote:
> I downloaded and *** compiled *** the cygipc source without errors, and
> installed as a service - no worries.

See below...

> $ ./configure
> [snip]
> checking whether the C compiler (gcc -O2 ) works... no
> configure: error: installation or configuration problem: C compiler cannot create executables.
>
> tony@CULTECH1 /postgresql-7.1.3
> $
>
> **********************************
>
> Here's the config.log file:
>
> **********************************
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> [snip]
> configure:1349: checking whether the C compiler (gcc -O2 ) works
> configure:1365: gcc -o conftest -O2   conftest.c -lcygipc 1>&5
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
> cannot find -lcygipc
              ^^^^^^^^
              ********

> collect2: ld returned 1 exit status
> configure: failed program was:

Did you forget to do a "make install" for cygipc?

BTW, why don't you just use the pre-built cygipc and PostgreSQL
distributions?

Jason