[M3devel] A strange link time warning using cm3

Stefan Sperling stsp at elego.de
Fri Aug 17 14:19:02 CEST 2007


On Fri, Aug 17, 2007 at 09:54:42AM +0200, Olaf Wagner wrote:
> Stefan, I thought we had resolved this issue at least for Linux and
> Solaris setups with the last release. Did we miss something?

We link system libraries dynamically on these platforms.

It could be that Rodney's own program does not link
libraries dynamically, so he gets the warning.

This is the diff that introduced dynamic linking on Linux.
Note that we explicitly enable dynamic linking on a per-library
basis... maybe we should enforce dynamic linking in general?

Index: LINUXLIBC6
===================================================================
RCS file: /usr/cvs/cm3/m3-sys/cm3/src/config/LINUXLIBC6,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- LINUXLIBC6	6 Aug 2006 12:46:03 -0000	1.7
+++ LINUXLIBC6	1 Sep 2006 13:42:23 -0000	1.8
@@ -98,14 +98,14 @@
 
 SYSTEM_LIBS = {
   "LIBC"       : [ "-lm" ],
-% "LEX-YACC"   : [ "-L/usr/lib", "-ll" ], %-- not on most Linux platforms
-  "FLEX-BISON" : [ "-L/usr/lib", "-lfl" ],
-  "POSTGRES95" : [ "-L/usr/local/postgres95/lib", "-lpq" ],
-  "OPENGL"     : [ "-L/usr/lib", "-lGLU", "-lGL", "-lXext" ],
-  "MOTIF"      : [ "-L/usr/X11R6/lib", "-lXm" ],
-  "X11"        : [ "-L/usr/X11R6/lib", "-lXaw", "-lXmu", "-lXext",
+% "LEX-YACC"   : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-ll" ], %-- not on most Linux platforms
+  "FLEX-BISON" : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-lfl" ],
+  "POSTGRES95" : [ "-Xlinker", "-Bdynamic", "-L/usr/local/postgres95/lib", "-lpq" ],
+  "OPENGL"     : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-lGLU", "-lGL", "-lXext" ],
+  "MOTIF"      : [ "-Xlinker", "-Bdynamic", "-L/usr/X11R6/lib", "-lXm" ],
+  "X11"        : [ "-Xlinker", "-Bdynamic", "-L/usr/X11R6/lib", "-lXaw", "-lXmu", "-lXext",
                         "-lXt", "-lSM", "-lICE", "-lX11" ],
-  "PTHREAD"    : [ "-L/usr/lib", "-lpthread" ],
+  "PTHREAD"    : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-lpthread" ],
   "TCP"        : [ ]
 }
 
-- 
Stefan Sperling <stsp at elego.de>                 Software Developer
elego Software Solutions GmbH                            HRB 77719
Gustav-Meyer-Allee 25, Gebaeude 12        Tel:  +49 30 23 45 86 96 
13355 Berlin                              Fax:  +49 30 23 45 86 95
http://www.elego.de                 Geschaeftsfuehrer: Olaf Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20070817/46c399e5/attachment-0004.sig>


More information about the M3devel mailing list