Re: pgstk-1.2 compile under Solaris 2.4 with STk 3.1.1

From: Raymond Toy <toy_at_rtp.ericsson.se>
Date: Tue, 22 Oct 1996 13:39:03 -0400

>>>>> "Jose" == Jose L Marcos <marcos_at_manolo.cst.cnes.fr> writes:


    Jose> Hi STer's !
    Jose> I can't get Raymond Toy's pgstk package.

    Jose> Here is the problem when I try to load it under snow interpreter, I got
    Jose> this error message :

    Jose> | Welcome to the STk interpreter version 3.1.1 [SunOS-5.4-sun4]
    Jose> | Copyright 1993-1996 Erick Gallesio - I3S - CNRS / ESSI <eg_at_unice.fr>
    Jose> | STk> (load "./pgstk.so")
    Jose> |
    Jose> | *** Error:
    Jose> | Cannot open object file (ld.so.1: snow: fatal: relocation error: symbol not found: pgresStatus: referenced in | | ./pgstk.so): "./pgstk.so"
    Jose> | Current eval stack:
    Jose> | __________________
    Jose> | 0 (load "./pgstk.so")
    Jose> | STk>

    Jose> I'm using this specific stuf to compile the pgstk.so (inspired from the STk Extensions
    Jose> generation...

What version of pgstk are you using?

What version of Postgres95 are you using? I haven't tried anything
later than Postgres95 1.02 and STk 3.0b2 and 3.1. However, this looks
like Postgres95 doesn't have pgresStatus.

    Jose> (part of the Makefile:)
    Jose> | pgstk.so : pgstk.c
    Jose> | gcc -fpic -O2 $(PGSTK) $(LIBPQ) -c pgstk.c
    Jose> | ld -G -z text -h pgstk.so pgstk.o
    Jose> | if test -f a.out ; then mv a.out pgstk.so; fi

My copy of Makefile says

        pgstk.so : pgstk.o
                gcc -shared -o $_at_ $^ $(LIBPQ)

Since you are obviously using gcc, you can use

        gcc -shared -o pgstk.so pgstk.o -L$(PQDIR)/lib -R$(PQDIR)/lib -lpq

to make the shared object, where PQDIR is the path to where your
libpq.so is stored. For Solaris, the -R is very important. It tells
the runtime linker where to find libpq.

Hope this helps, but feel free to ask if you have any questions.

Ray
Received on Tue Oct 22 1996 - 19:41:17 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST