Skip site navigation (1) Skip section navigation (2)

Re: Postgres-XC build error on Fedora 12

From: Pavan Deolasee <pavan(dot)deolasee(at)enterprisedb(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-cluster-hackers(at)postgresql(dot)org
Subject: Re: Postgres-XC build error on Fedora 12
Date: 2010-04-26 07:34:01
Message-ID: (view raw or whole thread)
Lists: pgsql-cluster-hackers
2010/3/31 Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>:
> On Wed, 2010-03-31 at 17:40 +0530, Pavan Deolasee wrote:
>> Seems like we never tested with openssl. While we work to fix the
>> issue, can you please try configuring --without-openssl and see if
>> that helps ?
> Now it gives something different. IIRC pg_config_paths.h needs to be
> generated during make, but I may be wrong:
> gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../src/include -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o ../../src/interfaces/libpq/fe-misc.o ../../src/interfaces/libpq/fe-misc.c
> ../../src/interfaces/libpq/fe-connect.c:28:29: error: pg_config_paths.h: No such file or directory

Looking at the Makefile in src/interfaces/libpq, it indeed seems that
the file should be generated by make. What baffles me more is the fact
that the output above doesn't show the rigth set of flags and command
line arguments being passed to gcc. For example, on my end, make shows
the following output:

[pavan(at)topaz libpq]$ make clean
rm -f libpq.a exports.list
rm -f fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o
fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o
libpq-events.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o
thread.o strlcpy.o pg_config_paths.h crypt.c getaddrinfo.c inet_aton.c
noblock.c open.c pgstrcasecmp.c snprintf.c strerror.c strlcpy.c
thread.c md5.c ip.c encnames.c wchar.c win32error.c pgsleep.c
pthread.h libpq.rc
rm -f pg_config_paths.h
[pavan(at)topaz libpq]$ make
gcc -DPGXC -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv  -fpic -DFRONTEND -DUNSAFE_STAT_OK -I. -I../../../src/include
-D_GNU_SOURCE  -I../../../src/port -I../../../src/port
-DSO_MAJOR_VERSION=5  -c -o fe-auth.o fe-auth.c
gcc -DPGXC -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv  -fpic -DFRONTEND -DUNSAFE_STAT_OK -I. -I../../../src/include
-D_GNU_SOURCE  -I../../../src/port -I../../../src/port
-DSO_MAJOR_VERSION=5  -c -o fe-connect.o fe-connect.c

If you see, make creates the pg_config_paths.h and also adds src/port
in the INCLUDEDIRS and that's where the pg_config_paths.h file

I have no experience with building rpms, so don't know why the flags
are not passed properly to gcc.


Pavan Deolasee

In response to


pgsql-cluster-hackers by date

Next:From: Simon RiggsDate: 2010-04-26 15:51:52
Subject: Last chance for talks at CHAR(10)
Previous:From: Greg SmithDate: 2010-04-11 08:36:22
Subject: Cluster Features and Commit order of transactions

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group