error in linking

Started by Hicham G. Elmonguiover 21 years ago2 messages
#1Hicham G. Elmongui
elmongui@cs.purdue.edu

Hi,
i am trying to add some functions to postgresql.

I created a file called "...../src/backend/executor/testing.c"
then created a file called "...../src/include/executor/testing.h"
then added "testing.o" to the OBJS in "...../src/backend/executor/Makefile"
I included "executor/testing.h" in execMain.c, and from there, I tried to
make a function call to function which is in testing.c

When I tried to gmake, i got the following error message:
********************************************************
Undefined first referenced
symbol in file
PrintPlan executor/SUBSYS.o
PrintQuery executor/SUBSYS.o
ld: fatal: Symbol referencing errors. No output written to postgres
********************************************************
this is an error during the linking.

Any idea what i am missing?

thanks,
--h

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Hicham G. Elmongui (#1)
Re: error in linking

"Hicham G. Elmongui" <elmongui@cs.purdue.edu> writes:

When I tried to gmake, i got the following error message:
********************************************************
Undefined first referenced
symbol in file
PrintPlan executor/SUBSYS.o
PrintQuery executor/SUBSYS.o

What PG version is this? I can't find any evidence for the existence of
these symbols in any version back to 7.0.

I suspect you've got some kind of version-skew problem (like including
headers from a different version than you're linking) but it's hard to
be sure when I can't trace down the symbols.

regards, tom lane