Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id LAA02663 for postgres-redist; Wed, 29 Jun 1994 11:21:01 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199406291821.LAA02663@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from eden.CS.Berkeley.EDU (eden.CS.Berkeley.EDU [128.32.149.4]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id LAA02653 for <postgres@postgres.Berkeley.EDU>; Wed, 29 Jun 1994 11:21:00 -0700
Received: from localhost (andrew@localhost) by eden.CS.Berkeley.EDU (8.6.4/8.1B) id LAA18715; Wed, 29 Jun 1994 11:20:52 -0700
Date: Wed, 29 Jun 1994 11:20:52 -0700
From: "Andrew K. Yu" <andrew@postgres.Berkeley.EDU>
Message-Id: <199406291820.LAA18715@eden.CS.Berkeley.EDU>
To: joerg.plewe@mpi-dortmund.mpg.de
Subject: Re: link failed in load of ADT file ..
Cc: postgres@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Wed, 29 Jun 94 11:21:01 -0700
Resent-XMts: smtp

> Hmmm, there are more strange things about that. When I just compile
> 
>   cc -s -Ipostgres/include circle.c 

I do not understand what the -s is doing here.

[ foo.o stuff deleted ]
> When I now do a dummy linker run, e.g.
> 
>   ld -o foo.o circle.o

the file you need to specify in the "as" clause of the define function 
command must be a shared library in 4.2/SunOS4.x. This extra step generates
the shared library (since -Bdynamic is the default) and call it "foo.o".

> The difference between circle.o and foo.o is that foo.o seems to
> be better prepared for dynamic loading, unless I do not understand
> the mechanisms.

your observation is correct. circle.o is not a shared library and is not
ready for dynamic loading.

> Ah, my system is SunOS4.1.3 and Postgres 4.2.

Thanks-- vital info.

-andrew

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
