From: | <kob(at)norkart(dot)no> |
---|---|
To: | <jason(at)tishler(dot)net> |
Cc: | <pgsql-cygwin(at)postgresql(dot)org> |
Subject: | Re: Problem configuring Postgres under Cygwin |
Date: | 2002-10-31 17:10:12 |
Message-ID: | 32856.195.159.178.212.1036084212.squirrel@mail.norkart.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin |
Hi..
Thanks for helping:
ls -l /usr/local/lib/libcygipc.a output:
-rw-r--r-- 1 kob None 26912 Nov 27 2001
/usr/local/lib/libcygipc.a
This seems like the Cygwin installer has given wrong permissions on all
the files..
gcc -v -o conftest conftest.c -lcygipc output:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure
--enable-languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls
--with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions
--disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux
--host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr
--exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include
--libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)
[snip]
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/collect2.exe -Bdynamic
--dll-search-prefix=
cyg -o conftest.exe /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../crt0.o
/usr/lib
/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o
-L/usr/lib/gcc-lib/i686-pc-cygwin/3.2 -L/
usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../..
/cygdrive/c/DOCUME~1/KOB~1.SAN/LOCAL
S~1/Temp/ccotfJYK.o -lcygipc -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32
-lshe
ll32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtend.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
cannot fi
nd -lcygipc
collect2: ld returned 1 exit status
kjell-olav
> Kjell-Olav,
>
> On Thu, Oct 31, 2002 at 04:11:47PM +0100, Kjell-Olav Bjerknes wrote:
>> And get this output on screen:
>> [snip]
>> configure: error: installation or configuration problem: C compiler
>> cannot create executables. [snip]
>>
>> The config.log shows this:
>>
>> [snip]
>> configure:1361: checking whether the C compiler (gcc -O2 ) works
>> configure:1377: gcc -o conftest -O2 conftest.c -lcygipc 1>&5
>> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
>> cannot find -lcygipc collect2: ld returned 1 exit status
>> configure: failed program was:
>
> The above implies that either libcygipc.a is not installed (in the
> normal place) on your system or that the default library search path has
> changed in the gcc 3.x package.
>
> Please perform the following and report back to the list:
>
> $ ls -l /usr/local/lib/libcygipc.a
> -rwxrwxrwx 1 Administ Domain U 26912 Nov 26 2001
> /usr/local/lib/libcygipc.a
>
> $ echo 'main(){return(0);}' >conftest.c
> $ gcc -v -o conftest conftest.c -lcygipc
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
> gcc version 2.95.3-5 (cygwin special)
> [snip]
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic
> --dll-search-prefix=cyg -o conftest.exe /usr/lib/crt0.o
> -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api
> -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5
> /mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/cchqAaau.o -lcygipc -lgcc
> -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
>
> Note that I'm still using the gcc 2.95.3-5 package and with this package
> "-L/usr/local/lib" is automatically passed during linking. Maybe this
> is not the case in the gcc 3.x package?
>
> Jason
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Tishler | 2002-10-31 17:50:55 | Re: Problem configuring Postgres under Cygwin |
Previous Message | Brian Murphy | 2002-10-31 17:06:57 | Cygwin: ip-daemon install service problem |