X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 800E6D1B7D8 for ; Tue, 15 Jun 2004 12:39:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39429-01 for ; Tue, 15 Jun 2004 15:39:47 +0000 (GMT) Received: from localhost.localdomain (203-204-136-228.adsl.static.giga.net.tw [203.204.136.228]) by svr1.postgresql.org (Postfix) with ESMTP id AFABDD1B21B for ; Tue, 15 Jun 2004 12:39:41 -0300 (ADT) Received: from frank (michael [192.168.1.20]) (authenticated bits=0) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id i5FFePSJ020190; Tue, 15 Jun 2004 23:40:26 +0800 Message-ID: <000d01c452ee$f8f11620$1401a8c0@frank> From: "frank" To: Subject: problem with 7.4.2 for RH-9 Date: Tue, 15 Jun 2004 23:39:38 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C45332.060249E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.3 tagged_above=0.0 required=5.0 tests=DEAR_SOMETHING, HTML_FONT_BIG, HTML_MESSAGE X-Spam-Level: * X-Archive-Number: 200406/255 X-Sequence-Number: 13915 This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C45332.060249E0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Dear Sir: After complied my postgresql-7.4.2 with the RH-linux9 operation system, there showed a problem on my configure.log as the file below with bold type= word, =2E =2E =2E configure: failed program was: #ifndef __cplusplus choke me #endif =2E =2E =2E configure: failed program was: #line 2642 "configure" #include "confdefs.h" =2E =2E =2E Would u please tell me what kind of the problem with the first one? And As checked the mail-list at this web-site, I supposed the second problem is= that the path link problme. Seems the way to solve it is link the path of LD_LIBRARY_PATH , but HOW TO = DO IT?? Also checking my /usr/local/pgsql/src/include there are no any file named c= onfdefs.h, how could it work after I set the path?? Thanks for ur kindly help in advance..... Frank Chiu frank (at) whtiecrane (dot) homeip (dot) net Note: Before my installation there was postgresql-7.3.2 existed, but the fi= le was directly reased directly by manuel (:(````) , all of the file relate= d was be erased but seems the man linking was still exist since I have try = to install 7.4.2 by postgresql-7.4.2*.rpm with failure. This file contains any messages produced by compilers while 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 $ ./configure=20 ## --------- ## ## Platform. ## ## --------- ## hostname =3D whitecrane uname -m =3D i586 uname -r =3D 2.4.20-8 uname -s =3D Linux uname -v =3D #1 Thu Mar 13 16:42:56 EST 2003 /usr/bin/uname -p =3D unknown /bin/uname -X =3D unknown /bin/arch =3D i586 /usr/bin/arch -k =3D unknown /usr/convex/getsysinfo =3D unknown hostinfo =3D unknown /bin/machine =3D unknown /usr/bin/oslevel =3D unknown /bin/universe =3D unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/X11R6/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1296: checking build system type configure:1314: result: i586-pc-linux-gnu configure:1322: checking host system type configure:1336: result: i586-pc-linux-gnu configure:1346: checking which template to use configure:1446: result: linux configure:1565: checking whether to build with 64-bit integer date/time sup= port 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 &5 gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) Copyright (C) 2002 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: $? =3D 0 configure:1952: gcc -v &5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --i= nfodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --disable= -checking --with-system-zlib --enable-__cxa_atexit --host=3Di386-redhat-lin= ux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) configure:1955: $? =3D 0 configure:1957: gcc -V &5 gcc: argument to `-V' is missing configure:1960: $? =3D 1 configure:1986: checking for C compiler default output configure:1989: gcc conftest.c >&5 configure:1992: $? =3D 0 configure:2025: result: a.out configure:2030: checking whether the C compiler works configure:2036: ./a.out configure:2039: $? =3D 0 configure:2054: result: yes configure:2061: checking whether we are cross compiling configure:2063: result: no configure:2066: checking for suffix of executables configure:2068: gcc -o conftest conftest.c >&5 configure:2071: $? =3D 0 configure:2093: result:=20 configure:2099: checking for suffix of object files configure:2123: gcc -c conftest.c >&5 configure:2126: $? =3D 0 configure:2145: result: o configure:2149: checking whether we are using the GNU C compiler configure:2176: gcc -c conftest.c >&5 configure:2179: $? =3D 0 configure:2182: test -s conftest.o configure:2185: $? =3D 0 configure:2197: result: yes configure:2203: checking whether gcc accepts -g configure:2227: gcc -c -g conftest.c >&5 configure:2230: $? =3D 0 configure:2233: test -s conftest.o configure:2236: $? =3D 0 configure:2246: result: yes configure:2273: gcc -c -g -O2 conftest.c >&5 conftest.c:2: parse error before "me" configure:2276: $? =3D 1 configure: failed program was: #ifndef __cplusplus choke me #endif configure:2414: checking how to turn off strict aliasing in gcc configure:2448: gcc -c -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c >&5 configure:2451: $? =3D 0 configure:2454: test -s conftest.o configure:2457: $? =3D 0 configure:2471: result: -fno-strict-aliasing configure:2483: using CFLAGS=3D-O2 -fno-strict-aliasing configure:2492: checking whether the C compiler still works configure:2514: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE con= ftest.c >&5 configure:2517: $? =3D 0 configure:2520: test -s conftest configure:2523: $? =3D 0 configure:2525: result: yes configure:2561: gcc -c -O2 -fno-strict-aliasing -D_GNU_SOURCE conftest.c >&5 configure:2564: $? =3D 0 configure:2567: test -s conftest.o configure:2570: $? =3D 0 configure:2588: checking how to run the C preprocessor configure:2614: gcc -E -D_GNU_SOURCE conftest.c configure:2620: $? =3D 0 configure:2647: gcc -E -D_GNU_SOURCE conftest.c configure:2643:28: ac_nonexistent.h: No such file or directory configure:2653: $? =3D 1 configure: failed program was: #line 2642 "configure" #include "confdefs.h" #include configure:2690: result: gcc -E configure:2705: gcc -E -D_GNU_SOURCE conftest.c configure:2711: $? =3D 0 configure:2738: gcc -E -D_GNU_SOURCE conftest.c configure:2734:28: ac_nonexistent.h: No such file or directory configure:2744: $? =3D 1 configure: failed program was: #line 2733 "configure" #include "confdefs.h" #include configure:2900: checking allow thread-safe client libraries configure:2931: result: no configure:2938: checking whether to build with Tcl configure:2966: result: no configure:2971: checking whether to build with Tk configure:3003: result: no configure:3069: checking whether to build Perl modules configure:3097: result: no configure:3104: checking whether to build Python modules configure:3132: result: no configure:3139: checking whether to build Java/JDBC tools configure:3277: result: no configure:3287: checking whether to build with Kerberos 4 support configure:3334: result: no configure:3345: checking whether to build with Kerberos 5 support configure:3392: result: no configure:3450: checking whether to build with PAM support configure:3482: result: no configure:3490: checking whether to build with Rendezvous support configure:3522: result: no configure:3679: using CPPFLAGS=3D-D_GNU_SOURCE=20 configure:3681: using LDFLAGS=3D=20 configure:3689: checking for gawk configure:3705: found /bin/gawk configure:3715: result: gawk configure:3725: checking for flex configure:3764: result: /usr/bin/flex configure:3799: checking whether ln -s works configure:3803: result: yes configure:3821: checking for ld used by GCC configure:3884: result: /usr/bin/ld configure:3893: checking if the linker (/usr/bin/ld) is GNU ld GNU ld version 2.13.90.0.18 20030206 configure:3905: result: yes configure:4006: checking for ranlib configure:4022: found /usr/bin/ranlib configure:4033: result: ranlib configure:4049: checking for lorder configure:4078: result: no configure:4087: checking for tar configure:4105: found /bin/tar configure:4117: result: /bin/tar configure:4166: checking for strip configure:4182: found /usr/bin/strip configure:4193: result: strip configure:4206: checking whether it is possible to strip libraries configure:4211: result: yes configure:4227: checking for bison configure:4243: found /usr/local/bin/bison configure:4253: result: bison -y configure:4297: checking for perl configure:4315: found /usr/bin/perl configure:4327: result: /usr/bin/perl configure:4463: checking for main in -lbsd configure:4490: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE c= onftest.c -lbsd >&5 configure:4493: $? =3D 0 configure:4496: test -s conftest configure:4499: $? =3D 0 configure:4510: result: yes configure:4523: checking for setproctitle in -lutil configure:4556: gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE c= onftest.c -lutil -lbsd >&5 /tmp/ccEsWIPX.o(.text+0xa): In function `main': : undefined reference to `setproctitle' collect2: ld returned 1 exit status configure:4559: $? =3D 1 configure: failed program was: #line 4530 "configure" #include "confdefs.h" ------=_NextPart_000_000A_01C45332.060249E0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Dear Sir:
 
After complied my postgresql-7= .4.2 with=20 the RH-linux9 operation system,
 
there showed a problem on my= =20 configure.log as the file below with bold type word,
.
.
.
configure: failed program was:
#ifndef=20 __cplusplus
  choke me
#endif
.
.
.
configure: failed program was:
#line 2642=20 "configure"
#include "confdefs.h"
.
.
.
 
 
Would u please tell me what ki= nd of the=20 problem with the first one?
 
And

As c= hecked the=20 mail-list at this web-site, I supposed the second problem is that the path = link=20 problme.
 
Seems the way to s= olve it=20 is link the path of LD_LIBRARY_PATH , but HOW TO DO=20 IT??
 
Also checking my=20 /usr/local/pgsql/src/include there are no any file named confdefs.h, how co= uld=20 it work after I set the path??
 
Thanks for ur kindly help in= =20 advance.....
 
Frank Chiu
 
frank (at) whtiecrane (dot) ho= meip=20 (dot) net
 
Note: Before my installation t= here was=20 postgresql-7.3.2 existed, but the file was directly reased directly=20 by manuel (:(````) , all of the file related was be erased but seems t= he=20 man linking was still exist since I have try to install 7.4.2 by=20 postgresql-7.4.2*.rpm with failure.
 
 
 
 
 
This file contains any messages produced by compilers while
running= =20 configure, to aid debugging if configure makes a mistake.

It was cre= ated=20 by PostgreSQL configure 7.4.2, which was
generated by GNU Autoconf=20 2.53.  Invocation command line was

  $ ./configure
##=20 --------- ##
## Platform. ##
## --------- ##

hostname =3D=20 whitecrane
uname -m =3D i586
uname -r =3D 2.4.20-8
uname -s =3D=20 Linux
uname -v =3D #1 Thu Mar 13 16:42:56 EST 2003

/usr/bin/uname= -p =3D=20 unknown
/bin/uname -X     =3D=20 unknown

/bin/arch        &nb= sp;    =20 =3D i586
/usr/bin/arch -k       =3D=20 unknown
/usr/convex/getsysinfo =3D=20 unknown
hostinfo         &n= bsp;    =20 =3D=20 unknown
/bin/machine        &nbs= p; =20 =3D unknown
/usr/bin/oslevel       =3D=20 unknown
/bin/universe        &nb= sp; =3D=20 unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH:=20 /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH:=20 /usr/X11R6/bin
PATH: /root/bin


## ----------- ##
## Core t= ests.=20 ##
## ----------- ##

configure:1296: checking build system=20 type
configure:1314: result: i586-pc-linux-gnu
configure:1322: checki= ng=20 host system type
configure:1336: result: i586-pc-linux-gnu
configure:= 1346:=20 checking which template to use
configure:1446: result:=20 linux
configure:1565: checking whether to build with 64-bit integer date= /time=20 support
configure:1596: result: no
configure:1603: checking whether N= LS is=20 wanted
configure:1637: result: no
configure:1645: checking for defaul= t=20 port number
configure:1674: result: 5432
configure:1899: checking for= =20 gcc
configure:1915: found /usr/bin/gcc
configure:1925: result:=20 gcc
configure:1944: checking for C compiler version
configure:1947: g= cc=20 --version </dev/null >&5
gcc (GCC) 3.2.2 20030222 (Red Hat Lin= ux=20 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is fr= ee=20 software; see the source for copying conditions.  There is NO
warra= nty;=20 not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR=20 PURPOSE.

configure:1950: $? =3D 0
configure:1952: gcc -v </dev= /null=20 >&5
Reading specs from=20 /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../confi= gure=20 --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --ena= ble-shared=20 --enable-threads=3Dposix --disable-checking --with-system-zlib=20 --enable-__cxa_atexit --host=3Di386-redhat-linux
Thread model: posix
= gcc=20 version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
configure:1955: $? =3D=20 0
configure:1957: gcc -V </dev/null >&5
gcc: argument to `-= V' is=20 missing
configure:1960: $? =3D 1
configure:1986: checking for C compi= ler=20 default output
configure:1989: gcc    conftest.c =20 >&5
configure:1992: $? =3D 0
configure:2025: result:=20 a.out
configure:2030: checking whether the C compiler=20 works
configure:2036: ./a.out
configure:2039: $? =3D 0
configure:2= 054:=20 result: yes
configure:2061: checking whether we are cross=20 compiling
configure:2063: result: no
configure:2066: checking for suf= fix=20 of executables
configure:2068: gcc -o conftest   =20 conftest.c  >&5
configure:2071: $? =3D 0
configure:2093: = result:=20
configure:2099: checking for suffix of object files
configure:2123: = gcc=20 -c   conftest.c >&5
configure:2126: $? =3D=20 0
configure:2145: result: o
configure:2149: checking whether we are u= sing=20 the GNU C compiler
configure:2176: gcc -c   conftest.c=20 >&5
configure:2179: $? =3D 0
configure:2182: test -s=20 conftest.o
configure:2185: $? =3D 0
configure:2197: result:=20 yes
configure:2203: checking whether gcc accepts -g
configure:2227: g= cc -c=20 -g  conftest.c >&5
configure:2230: $? =3D 0
configure:223= 3: test=20 -s conftest.o
configure:2236: $? =3D 0
configure:2246: result:=20 yes
configure:2273: gcc -c -g -O2  conftest.c=20 >&5
conftest.c:2: parse error before "me"
configure:2276: $? = =3D=20 1
configure: failed program was:
#ifndef __cplusplus
 = ;=20 choke me
#endif

configure:2414: checking how to turn off str= ict=20 aliasing in gcc
configure:2448: gcc -c -O2 -fno-strict-aliasing -D_GNU_S= OURCE=20 conftest.c >&5
configure:2451: $? =3D 0
configure:2454: test -= s=20 conftest.o
configure:2457: $? =3D 0
configure:2471: result:=20 -fno-strict-aliasing
configure:2483: using CFLAGS=3D-O2=20 -fno-strict-aliasing
configure:2492: checking whether the C compiler sti= ll=20 works
configure:2514: gcc -o conftest -O2 -fno-strict-aliasing=20 -D_GNU_SOURCE  conftest.c  >&5
configure:2517: $? =3D= =20 0
configure:2520: test -s conftest
configure:2523: $? =3D=20 0
configure:2525: result: yes
configure:2561: gcc -c -O2=20 -fno-strict-aliasing -D_GNU_SOURCE conftest.c >&5
configure:2564:= $? =3D=20 0
configure:2567: test -s conftest.o
configure:2570: $? =3D=20 0
configure:2588: checking how to run the C preprocessor
configure:26= 14:=20 gcc -E -D_GNU_SOURCE conftest.c
configure:2620: $? =3D 0
configure:26= 47: gcc=20 -E -D_GNU_SOURCE conftest.c
configure:2643:28: ac_nonexistent.h: No such= file=20 or directory
configure:2653: $? =3D 1
configure: failed progr= am=20 was:
#line 2642 "configure"
#include "confdefs.h"

#includ= e=20 <ac_nonexistent.h>
configure:2690: result: gcc -E
configure:270= 5:=20 gcc -E -D_GNU_SOURCE conftest.c
configure:2711: $? =3D 0
configure:27= 38: gcc=20 -E -D_GNU_SOURCE conftest.c
configure:2734:28: ac_nonexistent.h: No such= file=20 or directory
configure:2744: $? =3D 1
configure: failed progr= am=20 was:
#line 2733 "configure"
#include "confdefs.h"

#includ= e=20 <ac_nonexistent.h>
configure:2900: checking allow thread-safe clie= nt=20 libraries
configure:2931: result: no
configure:2938: checking whether= to=20 build with Tcl
configure:2966: result: no
configure:2971: checking wh= ether=20 to build with Tk
configure:3003: result: no
configure:3069: checking= =20 whether to build Perl modules
configure:3097: result: no
configure:31= 04:=20 checking whether to build Python modules
configure:3132: result:=20 no
configure:3139: checking whether to build Java/JDBC=20 tools
configure:3277: result: no
configure:3287: checking whether to = build=20 with Kerberos 4 support
configure:3334: result: no
configure:3345:=20 checking whether to build with Kerberos 5 support
configure:3392: result= :=20 no
configure:3450: checking whether to build with PAM=20 support
configure:3482: result: no
configure:3490: checking whether t= o=20 build with Rendezvous support
configure:3522: result: no
configure:36= 79:=20 using CPPFLAGS=3D-D_GNU_SOURCE
configure:3681: using LDFLAGS=3D=20
configure:3689: checking for gawk
configure:3705: found=20 /bin/gawk
configure:3715: result: gawk
configure:3725: checking for= =20 flex
configure:3764: result: /usr/bin/flex
configure:3799: checking= =20 whether ln -s works
configure:3803: result: yes
configure:3821: check= ing=20 for ld used by GCC
configure:3884: result: /usr/bin/ld
configure:3893= :=20 checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.13.90.0.= 18=20 20030206
configure:3905: result: yes
configure:4006: checking for=20 ranlib
configure:4022: found /usr/bin/ranlib
configure:4033: result:= =20 ranlib
configure:4049: checking for lorder
configure:4078: result:=20 no
configure:4087: checking for tar
configure:4105: found=20 /bin/tar
configure:4117: result: /bin/tar
configure:4166: checking fo= r=20 strip
configure:4182: found /usr/bin/strip
configure:4193: result:=20 strip
configure:4206: checking whether it is possible to strip=20 libraries
configure:4211: result: yes
configure:4227: checking for=20 bison
configure:4243: found /usr/local/bin/bison
configure:4253: resu= lt:=20 bison -y
configure:4297: checking for perl
configure:4315: found=20 /usr/bin/perl
configure:4327: result: /usr/bin/perl
configure:4463:= =20 checking for main in -lbsd
configure:4490: gcc -o conftest -O2=20 -fno-strict-aliasing -D_GNU_SOURCE    conftest.c=20 -lbsd   >&5
configure:4493: $? =3D 0
configure:4496:= test=20 -s conftest
configure:4499: $? =3D 0
configure:4510: result:=20 yes
configure:4523: checking for setproctitle in -lutil
configure:455= 6:=20 gcc -o conftest -O2 -fno-strict-aliasing -D_GNU_SOURCE   =20 conftest.c -lutil  -lbsd  >&5
/tmp/ccEsWIPX.o(.text+0xa= ): In=20 function `main':
: undefined reference to `setproctitle'
collect2: ld= =20 returned 1 exit status
configure:4559: $? =3D 1
configure: failed pro= gram=20 was:
#line 4530 "configure"
#include=20 "confdefs.h"

------=_NextPart_000_000A_01C45332.060249E0--