sane-project-website/old-archive/2001-05/0031.html

100 wiersze
4.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: [dev] Problems with dynamic loading on AIX</TITLE>
<META NAME="Author" CONTENT="Deiters (ukd@xenon.pc.Uni-Koeln.DE)">
<META NAME="Subject" CONTENT="Re: [dev] Problems with dynamic loading on AIX">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: [dev] Problems with dynamic loading on AIX</H1>
<!-- received="Wed May 2 12:38:56 2001" -->
<!-- isoreceived="20010502193856" -->
<!-- sent="Wed May 2 12:38:56 2001" -->
<!-- isosent="20010502193856" -->
<!-- name="Deiters" -->
<!-- email="ukd@xenon.pc.Uni-Koeln.DE" -->
<!-- subject="Re: [dev] Problems with dynamic loading on AIX" -->
<!-- id="200105021947.VAA28154@xenon.pc.Uni-Koeln.DE" -->
<!-- inreplyto="20010502184408.C10470@vortex.swb.de" -->
<STRONG>From:</STRONG> Deiters (<A HREF="mailto:ukd@xenon.pc.Uni-Koeln.DE?Subject=Re:%20[dev]%20Problems%20with%20dynamic%20loading%20on%20AIX&In-Reply-To=&lt;200105021947.VAA28154@xenon.pc.Uni-Koeln.DE&gt;"><EM>ukd@xenon.pc.Uni-Koeln.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed May 02 2001 - 12:38:56 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0032.html">Henning Meier-Geinitz: "Re: [dev] SANE documentation and latex problems"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0030.html">Henning Meier-Geinitz: "Re: Canon backend"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0028.html">Henning Meier-Geinitz: "Re: [dev] Problems with dynamic loading on AIX"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#31">[ date ]</A>
<A HREF="index.html#31">[ thread ]</A>
<A HREF="subject.html#31">[ subject ]</A>
<A HREF="author.html#31">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
On a HP workstation under HP-UX you build dynamic libraries by
<BR>
compiling with &quot;relocatable flag&quot; +z
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cc -Aa -c +z +O2 subroutine.c -I where_I_hide_my_includes
<BR>
<P>and then you invoke the link editor to create the library:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ld -b -o mylib.sl subroutine1.o subroutine2.o -dld ...
<BR>
<P>Finally, you produce the executable:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ld -o myprog [-E] main.o mylib.sl ...
<BR>
<P>The &quot;-E&quot; forces all symbols in main() to be visible to the shared
<BR>
libraries. Without this, only those symbols are exported that
<BR>
are required by the shared libs at link time. If you dynamically
<BR>
load a library that needs more, you are in trouble; hence the &quot;-E&quot;
<BR>
option.
<BR>
<P>Of course, this applies to the HP C/C++ compiler. AIX may be different.
<BR>
<P>Regards,
<BR>
<P>Ulrich
<BR>
<P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20[dev]%20Problems%20with%20dynamic%20loading%20on%20AIX&In-Reply-To=&lt;200105021947.VAA28154@xenon.pc.Uni-Koeln.DE&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0032.html">Henning Meier-Geinitz: "Re: [dev] SANE documentation and latex problems"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0030.html">Henning Meier-Geinitz: "Re: Canon backend"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0028.html">Henning Meier-Geinitz: "Re: [dev] Problems with dynamic loading on AIX"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#31">[ date ]</A>
<A HREF="index.html#31">[ thread ]</A>
<A HREF="subject.html#31">[ subject ]</A>
<A HREF="author.html#31">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Wed May 02 2001 - 12:40:48 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>