Thread: postgresql cygwin install
Hi,
I am having a problem when I try execute ./configure at postgresql-7.4.2 source. I have the follow message:
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lkernel32
Can you help me please?
I am trying to install the postgresql 7.4.2 in cygwin. I have installed the cygwin and unziped the cygipc-2.00.tar.bz2 in "/" dir.
Regards,
Janio
P.S:
See the config.log file:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
running configure, to aid debugging if configure makes a mistake.
It was created by PostgreSQL configure 7.4.2, which was
generated by GNU Autoconf 2.53. Invocation command line was
generated by GNU Autoconf 2.53. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
## Platform. ##
## --------- ##
hostname = pc02
uname -m = i686
uname -r = 1.5.10(0.116/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2004-05-25 22:07
uname -m = i686
uname -r = 1.5.10(0.116/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2004-05-25 22:07
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/d/WINDOWS/system32
PATH: /cygdrive/d/WINDOWS
PATH: /cygdrive/d/WINDOWS/System32/Wbem
PATH: /cygdrive/d/Program Files/Panda Software/Panda Antivirus Platinum
PATH: /cygdrive/d/Program Files/Microsoft SQL Server/80/Tools/BINN
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/d/WINDOWS/system32
PATH: /cygdrive/d/WINDOWS
PATH: /cygdrive/d/WINDOWS/System32/Wbem
PATH: /cygdrive/d/Program Files/Panda Software/Panda Antivirus Platinum
PATH: /cygdrive/d/Program Files/Microsoft SQL Server/80/Tools/BINN
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1296: checking build system type
configure:1314: result: i686-pc-cygwin
configure:1322: checking host system type
configure:1336: result: i686-pc-cygwin
configure:1346: checking which template to use
configure:1446: result: cygwin
configure:1565: checking whether to build with 64-bit integer date/time support
configure:1596: result: no
configure:1603: checking whether NLS is wanted
configure:1637: result: no
configure:1645: checking for default port number
configure:1674: result: 5432
configure:1899: checking for gcc
configure:1915: found /usr/bin/gcc
configure:1925: result: gcc
configure:1944: checking for C compiler version
configure:1947: gcc --version </dev/null >&5
gcc (GCC) 3.3.1 (cygming special)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1314: result: i686-pc-cygwin
configure:1322: checking host system type
configure:1336: result: i686-pc-cygwin
configure:1346: checking which template to use
configure:1446: result: cygwin
configure:1565: checking whether to build with 64-bit integer date/time support
configure:1596: result: no
configure:1603: checking whether NLS is wanted
configure:1637: result: no
configure:1645: checking for default port number
configure:1674: result: 5432
configure:1899: checking for gcc
configure:1915: found /usr/bin/gcc
configure:1925: result: gcc
configure:1944: checking for C compiler version
configure:1947: gcc --version </dev/null >&5
gcc (GCC) 3.3.1 (cygming special)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1950: $? = 0
configure:1952: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,f77,pascal,java,objc --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --disable-win32-registry --enable-java-gc=boehm --disable-hash-synchronization --verbose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)
configure:1955: $? = 0
configure:1957: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1960: $? = 1
configure:1986: checking for C compiler default output
configure:1989: gcc conftest.c >&5
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lkernel32
collect2: ld returned 1 exit status
configure:1992: $? = 1
configure: failed program was:
#line 1963 "configure"
#include "confdefs.h"
configure:1952: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,f77,pascal,java,objc --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --disable-win32-registry --enable-java-gc=boehm --disable-hash-synchronization --verbose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)
configure:1955: $? = 0
configure:1957: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1960: $? = 1
configure:1986: checking for C compiler default output
configure:1989: gcc conftest.c >&5
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lkernel32
collect2: ld returned 1 exit status
configure:1992: $? = 1
configure: failed program was:
#line 1963 "configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
;
return 0;
}
configure:2019: error: C compiler cannot create executables
return 0;
}
configure:2019: error: C compiler cannot create executables
## ---------------- ##
## Cache variables. ##
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-cygwin
ac_cv_build_alias=i686-pc-cygwin
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DOCBOOKSTYLE_set=
ac_cv_env_DOCBOOKSTYLE_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-cygwin
ac_cv_host_alias=i686-pc-cygwin
ac_cv_prog_ac_ct_CC=gcc
ac_cv_build_alias=i686-pc-cygwin
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DOCBOOKSTYLE_set=
ac_cv_env_DOCBOOKSTYLE_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-cygwin
ac_cv_host_alias=i686-pc-cygwin
ac_cv_prog_ac_ct_CC=gcc
## ----------- ##
## confdefs.h. ##
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "PostgreSQL"
#define PACKAGE_TARNAME "postgresql"
#define PACKAGE_VERSION "7.4.2"
#define PACKAGE_STRING "PostgreSQL 7.4.2"
#define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
#define PG_VERSION "7.4.2"
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
#define PACKAGE_TARNAME "postgresql"
#define PACKAGE_VERSION "7.4.2"
#define PACKAGE_STRING "PostgreSQL 7.4.2"
#define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
#define PG_VERSION "7.4.2"
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
configure: exit 77