agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Andrew K. Yu <andrew@postgres.Berkeley.EDU>
To: joerg.plewe@mpi-dortmund.mpg.de
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: link failed in load of ADT file ..
Date: Wed, 29 Jun 1994 11:20:52 -0700
Message-ID: <199406291820.LAA18715@eden.CS.Berkeley.EDU> (raw)

> 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.
==============================================================================



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: andrew@postgres.Berkeley.EDU, joerg.plewe@mpi-dortmund.mpg.de
  Subject: Re: link failed in load of ADT file ..
  In-Reply-To: <199406291820.LAA18715@eden.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox