Trying to compile nedit-latest-sources-HEAD
Thomas Orgis
thomas-forum at orgis.org
Fri Oct 6 13:41:20 CEST 2006
Am Fri, 06 Oct 2006 12:31:46 +0200
schrieb Eddy De Greef <degreef at imec.be>:
> > /usr/bin/ld: cannot find -lXpm
> > collect2: ld returned 1 exit status
>
> It looks like you are missing another package, containing libXpm.so.
Try
> installing libxpm or libxpm4 (I don't know what the package is called
> exactly in Mandriva 2007).
Sorry for deviating from the main issue, but the issue of linking nedit
reminds me of a problem I encountered when changing the SourceMage
GNU/Linux nedit spell to compile with openmotif instead of lesstif:
Per default, openmotif doesn't installl static libraries (anymore), so
we now have a sed line removing the -Wl,-Bstatic and -Wl,-Bdynamic so
that just the "normal" dynamic linking is used for all of nedit.
That indeed does make sense given that it will be used in the
environment it was compiled in - static linking would just waste space
there.
Actually, I just checked the size of the official static 32bit linux
binary against the size of a dynamic binary on a alpha (64bit)
SourceMage box.
The static 32bit binary is 2.1M, the dynamic 64bit is 1.4M.
The difference should be way more clear when comparing against 32bit
dynamic since 64bit code is even bigger that 32bit code.
Eh... my point is just that perhaps the Makefile should default to not
use this forced static linking since this is something you mainly want
to do for distribution.
Someone downloading the sources for himself wants to run this on his
system and obviously has the needed lib installed when he managed to
compile nedit.
Forcing the static link there doesn't make much sense and in the case of
a default openmotif install it would prevent the build from successing.
For the official binary one can do "make MOTIF=static" or the like...
Well, if you don't agree with me there, then I at least hope that the
format of the linux Makefile will not change so that our sed lines for
the automatic build will continue to work in the future...
Thomas (today as SourceMage dev).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.nedit.org/pipermail/discuss/attachments/20061006/ec84e05b/attachment.bin
More information about the Discuss
mailing list