Обсуждение: ecpg build failed on CVS HEAD
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.oc_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
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
> 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
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
> > 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