cannot "make linux-static" CVS Nedit

A.V.Kuznetsov kuzn at umps.mephi.ru
Tue Nov 27 12:57:40 CET 2007


Hi,

> I cannot make static CVS Nedit.
> "make linux"  is successfully compiled.
> "make linux-static" gives following output:
> 
> /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libXm.a(EditresCom.o): In function `SendCommand':
> (.text+0x2ac): undefined reference to `_XEditResPut8'
..............
> collect2: ld returned 1 exit status
> make[1]: *** [nedit] Error 1
> make[1]: Leaving directory `/tmp/nedit/source'
> make: *** [linux-static] Error 2

I searched in Google "XEditResPut" and found the comment.
  EditresCom.o was added to make Motif work with editres. Have you ever noticed
  that "Select Widget in Client" has never worked with motif apps. This has been
  because the motif VendorShell lies about the placement of it's child. The
  static link problem should have been fixed on 2002/03/02. Apps should link with
  -lXm -lXmu -lXt ... Of course I have never built a static version of the lib,
  but whoever it was that mentioned the problem in the first place hasn't said
  anything since. If it wasn't fixed, I would like to get it fixed.

Sorry, don't know what does that mean.
I installed libxmu-dev and changed Makefile.linux-static, i.e.
added -lXmu to LIBS=-L/usr/X11R6/lib -Wl,-Bstatic -lXm -lXmu -Wl ....

Now nedit is successfully compiled.

Is that the Debian's problem? or is the Makefile.linux-static buggy?

Alexey


More information about the Discuss mailing list