#292 Unable to use Xm

open
nobody
5
2008-01-04
2008-01-04
bytebrother
No

I downloaded and built LessTif v0.95.0 from source. This was not of itself any problem.

The only option I gave to configure was "--prefix=/home/keith".

The first problem was when I did a "make install" it fell over trying to create '/usr/share/aclocal', so I simply went through all the Makefiles and changed all references to '/usr/share/aclocal' to '/home/keith/aclocal'. The "make install" then succeeded.

The output from 'uname -a' on my machine is:

Linux Box3 2.6.18-8.1.8.el5 #1 SMP Mon Jun 25 17:06:19 EDT 2007 i686

Now the real problem: I downloaded ddd (data display debugger) v3.3.9, and when compiling this, I get errors claiming (for example):

=====================================
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /home/kwillis/include -O2 -g -Wall -W -Wwrite-strings -trigraphs -MT ScrolledGE.o -MD -MP -MF ".deps/ScrolledGE.Tpo" -c -o ScrolledGE.o ScrolledGE.C; \ then mv -f ".deps/ScrolledGE.Tpo" ".deps/ScrolledGE.Po"; else rm -f ".deps/ScrolledGE.Tpo"; exit 1; fi
/usr/include/X11/VendorP.h:87: error: previous declaration of ‘VendorShellClassRec vendorShellClassRec’ with ‘C++’ linkage
/home/keith/include/Xm/VendorSP.h:58: error: conflicts with new declaration with ‘C’ linkage
=====================================

The cause seems to be the definition of XMLIBEXPORT in $(PREFIX)/include/Xm/Xm.h although I could well be mistaken here.

Discussion

  • Paul Gevers

    Paul Gevers - 2009-04-29

    I am new to lesstif, but I am going to try and clean up the source code a
    little bit. The debian bug tracker already includes a patch which I think
    will fix this bug. Are you in the position to test it?

    See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=339864#10

     
  • Nobody/Anonymous

    Based on http://sourceforge.net/tracker/?func=detail&aid=2614142&group_id=8596&atid=308596 , the patch referenced is in source control but has not yet been included in an official LessTif release. I also had a problem building ddd and found that BSD has some lesstif patches that addressed the issue. With the patches applied, I was then able to build ddd successfully.

     
  • Paul Gevers

    Paul Gevers - 2009-07-08

    It the last comment is true, I assume this bug can be closed, because in the mean time a new release has been done (on 27 May 2009).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks