postgres compiling problems.'undefined reference'

postgres compiling problems.'undefined reference'

Post by Scott Spenc » Sun, 12 Oct 1997 04:00:00



Using Linux 2.0.0, Slakware (possibly the dreaded pre Sept. version
mentioned in the postgres linux-faq)
postgres 6.1

I have:
unpacked a (suspected) post Sept. 3.1 version of ldso.tgz from the a4
install diskset, installed dld-3.2.7, ld.so-1.9.5, and run ldconfig. run
'./configure' in src and tried to 'make all'. (in this order).
I have, however, this error message:

make[2]: Leaving directory
`/usr/local/pgsql/postgresql-v6.1.1/src/backend/utils'
gcc -o postgres access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o
commands/SUBSY
S.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
nodes/SUBSYS.o opt
imizer/SUBSYS.o parser/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
regex/SUBSYS.o r
ewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o
../utils/version.o -
lm -lbsd -ltermcap -lcurses  -rdynamic -Wl,-rpath
-Wl,/usr/local/pgsql/lib
utils/SUBSYS.o: In function `handle_load':
utils/SUBSYS.o(.text+0x1a586): undefined reference to `dlopen'
utils/SUBSYS.o(.text+0x1a598): undefined reference to `dlerror'
utils/SUBSYS.o(.text+0x1a5f8): undefined reference to `dlsym'
utils/SUBSYS.o: In function `load_file':
utils/SUBSYS.o(.text+0x1a691): undefined reference to `dlclose'
utils/SUBSYS.o(.text+0x1a6ef): undefined reference to `dlclose'
make[1]: *** [postgres] Error 1
make[1]: Leaving directory
`/usr/local/pgsql/postgresql-v6.1.1/src/backend'
make: *** [all] Error 2

Any help would be appreciated even if you recognize where I could be
going wrong it would be well received.

Cheers

Scott

--
****************noggon NZ - quality**************

noggon limited
New Zealand             http://noggon.co.nz
****************Web Page Developers**************

 
 
 

postgres compiling problems.'undefined reference'

Post by Don Krau » Sun, 12 Oct 1997 04:00:00


Scott Spence says...

Quote:> Using Linux 2.0.0, Slakware (possibly the dreaded pre Sept. version
> mentioned in the postgres linux-faq)
> postgres 6.1

> I have:
> unpacked a (suspected) post Sept. 3.1 version of ldso.tgz from the a4
> install diskset, installed dld-3.2.7, ld.so-1.9.5, and run ldconfig. run
> './configure' in src and tried to 'make all'. (in this order).
> I have, however, this error message:

> make[2]: Leaving directory
> `/usr/local/pgsql/postgresql-v6.1.1/src/backend/utils'
> gcc -o postgres access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o
> commands/SUBSY
> S.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o
> nodes/SUBSYS.o opt
> imizer/SUBSYS.o parser/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
> regex/SUBSYS.o r
> ewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o
> ../utils/version.o -
> lm -lbsd -ltermcap -lcurses  -rdynamic -Wl,-rpath
> -Wl,/usr/local/pgsql/lib
> utils/SUBSYS.o: In function `handle_load':
> utils/SUBSYS.o(.text+0x1a586): undefined reference to `dlopen'
> utils/SUBSYS.o(.text+0x1a598): undefined reference to `dlerror'
> utils/SUBSYS.o(.text+0x1a5f8): undefined reference to `dlsym'
> utils/SUBSYS.o: In function `load_file':
> utils/SUBSYS.o(.text+0x1a691): undefined reference to `dlclose'
> utils/SUBSYS.o(.text+0x1a6ef): undefined reference to `dlclose'
> make[1]: *** [postgres] Error 1
> make[1]: Leaving directory
> `/usr/local/pgsql/postgresql-v6.1.1/src/backend'
> make: *** [all] Error 2

> Any help would be appreciated even if you recognize where I could be
> going wrong it would be well received.

I just went through this same error. (Same Slack release
also). These messages are in reference to not finding the
libdl library. Did you make the two symbolic links specified
in the INSTALL files after upgrading to ld.so.1.9.5?

Specifically, in /lib, you need a link libdl.so ->
libdl.so.1

and then a link lidl.so.1 -> libdl.so.1.9.5.

(As root, in the lib directory:

ln -sf libdl.so.1.9.5 libdl.so.1
ln -sf libdl.so.1 libdl.so  )

--
=Don=

*****************************************************
This is for the spammers:



If you are clueless: Remove SPAM.SUCKS from my address.

"For millions of years, man lived just like the animals.
Then something happened which unleashed the power of our
imagination... We learned to talk"
*****************************************************