Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA03446; Thu, 13 May 93 11:14:12 -0700
Date: Thu, 13 May 93 11:14:12 -0700
Message-Id: <9305131814.AA03446@postgres.Berkeley.EDU>
From: te@informatik.uni-hannover.de (Thomas Esser)
Subject: link problem
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
Return-Receipt-To: te@informatik.uni-hannover.de

Hallo everybody,

I recently tried to compile postgres version 4.1 from scratch,
as I wanted to use non-standard pathnames. I tried this on
a SUN sparc-startion 10 runnung SunOS 4.1.3. I used "cc" as
compiler and "ld" as linker. The problem I have is the following:

When I did "bmake all install" in src, a lot of object-files were
not rebuilt. So I removed all existing *.o files. Then I could not
recompile. The error was : "ld: PARSER.o: _yys: multiply defined",
when linking "postmaster".

So I looked to the object-files and saw that my ones and the ones
that came with the distribution, had different symbol-tables:

An example: "nm BOOTSTRAP.o | grep _yys"

        BOOTSTRAP.o (from distribution) BOOTSTRAP.o (my version)

        00000400 C _Int_yysbuf          00000400 C _Int_yysbuf
        00009498 D _Int_yysptr          00009188 D _Int_yysptr
        00008af8 D _Int_yysvec          000087e8 D _Int_yysvec
                                        00000258 C _yy_yys
        0000b9c0 b _yys                 000059f0 D _yys
        0000b9cc b _yystate             00000004 C _yystate
                                        00000004 C _yystate

I would be happy if someone could help me.

Many thanks in advance,

-Thomas

PS: I am not in the mailing-list. Please send any answers directly to
    te@informatik.uni-hannover.de

