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

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

>>>>> "Jose" == Jose L Marcos <> 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 <>
    Jose> | STk> (load "./")
    Jose> |
    Jose> | *** Error:
    Jose> | Cannot open object file ( snow: fatal: relocation error: symbol not found: pgresStatus: referenced in | | ./ "./"
    Jose> | Current eval stack:
    Jose> | __________________
    Jose> | 0 (load "./")
    Jose> | STk>

    Jose> I'm using this specific stuf to compile the (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.c
    Jose> | gcc -fpic -O2 $(PGSTK) $(LIBPQ) -c pgstk.c
    Jose> | ld -G -z text -h pgstk.o
    Jose> | if test -f a.out ; then mv a.out; fi

My copy of Makefile says : pgstk.o
                gcc -shared -o $_at_ $^ $(LIBPQ)

Since you are obviously using gcc, you can use

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

to make the shared object, where PQDIR is the path to where your 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.

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