
OK, I wonder if adding -ldl will help.  You need to link to the library
containing the ldopen function.

---------------------------------------------------------------------------

Shibashish wrote:
> Thanks for the help. I edited the src/makefiles/Makefile.sco and removed
> the export. But the compile still hangs up after the following errors.
> I tried the following combinations too ....
> export_dynamic = -Wl,-Bexport
> export_dynamic = -Wl
> #export_dynamic = -Wl,-Bexport {stops at the following output}
> 
> I will send the full output if u need.
> 
> -------------------------------------
> make[4]: Leaving directory
> `/data/postgres/postgresql-7.3/src/backend/utils/mb'
> /usr/ccs/bin/ld -r -o SUBSYS.o fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o
> error/SUBSYS.o fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o
> mmgr/SUBSYS.o sort/SUBSYS.o time/SUBSYS.o mb/SUBSYS.o
> make[3]: Leaving directory
> `/data/postgres/postgresql-7.3/src/backend/utils'
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -L../../src/port
> access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o
> commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o
> main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o
> postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o
> tcop/SUBSYS.o utils/SUBSYS.o -lPW -lgen -lld -lsocket -lnsl -lm  -lpgport
> -o postgres
> undefined                       first referenced
>  symbol                             in file
> _dlopen                             utils/SUBSYS.o
> _dlerror                            utils/SUBSYS.o
> _dlsym                              utils/SUBSYS.o
> _dlclose                            utils/SUBSYS.o
> i386ld fatal: Symbol referencing errors. No output written to postgres
> make[2]: *** [postgres] Error 1
> make[2]: Leaving directory `/data/postgres/postgresql-7.3/src/backend'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/data/postgres/postgresql-7.3/src'
> make: *** [all] Error 2
> -------------------------------------
> 
> from Shibashish
> 
> 
> On Mon, 9 Dec 2002, Bruce Momjian wrote:
> 
> >
> > It should have worked, but edit Makefile.shlib and remove that offending
> > export from the link line.  That may fix it.
> >
> > ---------------------------------------------------------------------------
> 
> 
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Tue, 10 Dec 2002 14:25:03 -0500 (EST)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: PostgreSQL 7.3 Installation on SCO