Re: Postgres-XC build error on Fedora 12
От | Pavan Deolasee |
---|---|
Тема | Re: Postgres-XC build error on Fedora 12 |
Дата | |
Msg-id | m2lc28d8e261004260034ge7114215n55fed2f1527b6237@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Postgres-XC build error on Fedora 12 (Devrim GÜNDÜZ <devrim@gunduz.org>) |
Ответы |
Re: Postgres-XC build error on Fedora 12
(Pavan Deolasee <pavan.deolasee@enterprisedb.com>)
|
Список | pgsql-cluster-hackers |
2010/3/31 Devrim GÜNDÜZ <devrim@gunduz.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@topaz libpq]$ make clean rm -f libpq.so.5.2 libpq.so libpq.so.5 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@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 resides. I have no experience with building rpms, so don't know why the flags are not passed properly to gcc. Thanks, Pavan -- Pavan Deolasee EnterpriseDB http://www.enterprisedb.com
В списке pgsql-cluster-hackers по дате отправления: