[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Nov 7 22:11:52 2003 
Subject:Re: New poplog with bug in Pop-11/Poplog back-end compiler fixed (etc) 
From:Andreas Eder 
Volume-ID:1031107.02 

axs@cs.bham.ac.uk (Aaron Sloman) writes:

> There is now a new version of this for testing
>
>     http://www.cs.bham.ac.uk/research/poplog/bham-linux-poplog.tar.gz
>     21189234 bytes Nov  3 02:03 bham-linux-poplog.tar.gz
>
> Installation is now even simpler (e.g. you don't need to put a link in
> /usr/X11R6/lib/ for motif any more) and some minor bugs in the
> installation process are fixed. Also xved copes with more variants
> of keypad configuration.

Well, it did not work for me - at least not after a little tweaking.

First, there seems to be a typo in SETUPDIRS. I changed it in the
following way:

 diff SETUPDIRS.orig SETUPDIRS                               
 12c12
 < if [ "$1x" == "x" ]
 ---
 > if [ "$2x" == "x" ]

and I had to manually remove the link pop/extern/lib/libXm.so ->
/usr/X11R6/lib/libXm.so.2 which is in linux-pc-1553.tar.gz and was
unnecessary for me since I have a working libXm.so. (And there is
logic in LINK_MOTIF_POPLOG to create the symlink only when needed!)

Then I had to change some files in the pop/x/Xpw/ directory, since my
gcc (version 3.3 20030226 (prerelease) (SuSE Linux)) no longer
supports the use of varargs, but insists on using stdarg.

 diff Methods.h.orig Methods.h                         
 18d17
 < extern  XpwMethodRet XpwCallMethod();

 diff MethodsP.h.orig MethodsP.h                  
 19c19
 < #include <varargs.h>   /* all XpwCore widgets use varargs interface */
 ---
 > #include <stdarg.h>   /* all XpwCore widgets use stdarg interface #*/


 diff CallMethod.c.orig CallMethod.c            
 190,193c190
 < XpwMethodRet XpwCallMethod(gw, method_id, va_alist)
 < XpwCoreWidget gw;
 < XpwMethodID method_id;
 < va_dcl
 ---
 > XpwMethodRet XpwCallMethod(XpwCoreWidget gw, XpwMethodID method_id, ...)
 216c213
 <               va_start(ap);
 ---
 >               va_start(ap, method_id);


With these changes everything went smoothly. There was just one final
annoyance in the supplied Xdefaults.poplog file: one resource is
defined twice and therefore generates a warning message.
I corrected it in the follwoing way:

 diff Xdefaults.poplog.orig Xdefaults.poplog  
 14d13
 < XTerm*deleteIsDEL: true



Though these are just minor nitpicks, I hope it is of some value to
the poplog community.

'Andreas

-- 
Wherever I lay my .emacs, there´s my $HOME.