Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11212 - Postgresql fails to build
Summary: Postgresql fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-25 12:20 UTC by Efrain Rocha
Modified: 2007-09-22 23:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Efrain Rocha 2002-11-25 12:20:24 UTC
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
Comment 1 Efrain Rocha 2002-11-25 16:01:26 UTC
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



Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-11-26 17:30:47 UTC
upgraded gcc or stock?

emerge info would help
Comment 3 Efrain Rocha 2002-11-27 15:50:20 UTC
Ran rsync and installed latest gcc and autoconf.  Re-emerged postgresql and complied fine.