ecpg build failed on CVS HEAD

Started by Tatsuo Ishiiover 16 years ago5 messages
#1Tatsuo Ishii
ishii@postgresql.org

Hi,

Has anybody seen this? It seems ecpg tries to link with backend functions.

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels -fno-strict-aliasing -DECPG_COMPILE -L../../../../src/port -Wl,-rpath,'/usr/local/src/pgsql/current/lib' preproc.o type.o ecpg.o output.o parser.o keywords.o c_keywords.o ecpg_keywords.o kwlookup.o ../ecpglib/typename.o descriptor.o variable.o -lpgport -lz -lreadline -lncurses -lcrypt -ldl -lm -o ecpg
parser.o(.text+0xa0): In function `pg_parse_string_token':
: undefined reference to `elog_start'
parser.o(.text+0xb0): In function `pg_parse_string_token':
: undefined reference to `elog_finish'
collect2: ld returned 1 exit status
make: *** [ecpg] Error 1
--
Tatsuo Ishii
SRA OSS, Inc. Japan

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tatsuo Ishii (#1)
Re: ecpg build failed on CVS HEAD

Tatsuo Ishii <ishii@postgresql.org> writes:

Has anybody seen this? It seems ecpg tries to link with backend functions.

No, it doesn't ... but maybe you've somehow overwritten
src/interfaces/ecpg/preproc/parser.c with src/backend/parser/parser.c ?

regards, tom lane

#3Tatsuo Ishii
ishii@postgresql.org
In reply to: Tom Lane (#2)
Re: ecpg build failed on CVS HEAD

No, it doesn't ... but maybe you've somehow overwritten
src/interfaces/ecpg/preproc/parser.c with src/backend/parser/parser.c ?

In my understanding src/interfaces/ecpg/preproc/parser.c linkes to
src/backend/parser/parser.c. So they are identical, no?
--
Tatsuo Ishii
SRA OSS, Inc. Japan

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tatsuo Ishii (#3)
Re: ecpg build failed on CVS HEAD

Tatsuo Ishii <ishii@postgresql.org> writes:

In my understanding src/interfaces/ecpg/preproc/parser.c linkes to
src/backend/parser/parser.c. So they are identical, no?

They haven't been identical since 8.2.

regards, tom lane

#5Tatsuo Ishii
ishii@postgresql.org
In reply to: Tom Lane (#4)
Re: ecpg build failed on CVS HEAD

In my understanding src/interfaces/ecpg/preproc/parser.c linkes to
src/backend/parser/parser.c. So they are identical, no?

They haven't been identical since 8.2.

It seems my working files for ecpg are confused. Removing symlink and
cvs update fixed my problem. Thanks.
--
Tatsuo Ishii
SRA OSS, Inc. Japan