Trying to emerge postgresql. I've installed gentoo 1.4rc1 error: configure:1420: `__CYGWIN32__' undeclared (first use in this function) configure:1420: (Each undeclared identifier is reported only once configure:1420: for each function it appears in.) configure: failed program was: #line 1413 "configure" #include "confdefs.h" int main() { #ifndef __CYGWIN__ #define __CYGWIN__ __CYGWIN32__ #endif return __CYGWIN__; "config.log" 686 lines, 33107 characters configure:7490: gcc -o conftest -march=i686 -O3 -pipe conftest.c -lpam - lssl -lcrypto -lz -lcrypt -lresolv -lnsl -ldl -lm -lbsd -lreadline -ltermcap 1>&5 /var/tmp/portage/postgresql-7.2.3-r1/temp/cc2T3DW1.o: In function `main': /var/tmp/portage/postgresql-7.2.3-r1/temp/cc2T3DW1.o(.text+0xc): undefined refer ence to `optreset' collect2: ld returned 1 exit status configure: failed program was: #line 7483 "configure" #include "confdefs.h" #include <unistd.h> int main() { extern int optreset; optreset = 1; ; return 0; } configure:7516: checking test program configure:7525: gcc -o conftest -march=i686 -O3 -pipe conftest.c -lpam - lssl -lcrypto -lz -lcrypt -lresolv -lnsl -ldl -lm -lbsd -lreadline -ltermcap 1>&5 configure: failed program was: #line 7521 "configure" #include "confdefs.h" int main() { return 0; } ------------ Thanks Efrain
I starting playing a little more with it.. It fails on the ./configure process... aparently is looking for a optreset .... gcc -o conftest -O2 er.c -lz -lcrypt -lresolv -lnsl -ldl -lm -lbsd - lreadline -ltermcap er.c ---------- #line 7483 "configure" #include "confdefs.h" #include <unistd.h> int main() { extern int optreset; optreset = 1; ; return 0; } -------------- /tmp/cc0XsDop.o: In function `main': /tmp/cc0XsDop.o(.text+0xc): undefined reference to `optreset' collect2: ld returned 1 exit status
upgraded gcc or stock? emerge info would help
Ran rsync and installed latest gcc and autoconf. Re-emerged postgresql and complied fine.