Re: Compile error while building postgresql 10.3

Поиск
Список
Период
Сортировка
От Terry Phelps
Тема Re: Compile error while building postgresql 10.3
Дата
Msg-id CAMUfR_sayK2VctackjByqBswFWfqJ8f_5ouT+KhRVxGWBb-j_Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compile error while building postgresql 10.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Compile error while building postgresql 10.3  (Thomas Munro <thomas.munro@enterprisedb.com>)
Re: Compile error while building postgresql 10.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thank you for your help. That resolved the problem. My bad.

The build ran much further and then got another error, which I'll mention here, and go research it, since it could be just my bleeding edge source code.

cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -I/usr/local/include -D_THREAD_SAFE -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -fPIC -DPIC -I../include -I../../../../src/interfaces/ecpg/include -DFRONTEND -I../../../../src/include   -DSO_MAJOR_VERSION=3  -c -o datetime.o datetime.c
datetime.c:332:1: error: conflicting types for 'PGTYPESdate_defmt_asc'
PGTYPESdate_defmt_asc(date * d, const char *fmt, const char *str)
^
/usr/local/include/pgtypes_date.h:24:12: note: previous declaration is here
extern int      PGTYPESdate_defmt_asc(date *, const char *, char *);
                ^
1 error generated.
gmake[4]: *** [<builtin>: datetime.o] Error 1



On Mon, Mar 19, 2018 at 4:22 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Terry Phelps <tgphelps50@gmail.com> writes:
> I ran configure like this, because it got errors otherwise. OHHHH. I wonder
> if CFLAGS caused this.

> LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include  ./configure

That would've been fine, but configure then adds onto what you specified
as CFLAGS.

> And then I ran gmake like this:
> gmake  LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include

And here you overrode the additions.  Just do "gmake" without these
overrides.  If you look into src/Makefile.global you should see that
your initial specifications got into the selected flag variables.

                        regards, tom lane

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Keiko Oda
Дата:
Сообщение: Trigger file behavior with the standby
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Compile error while building postgresql 10.3