Discussion:
How to compile Xplore 1.2a with gcc 3.4.4 under YDL
(too old to reply)
Jazzman
2006-10-05 11:41:33 UTC
Permalink
Building Xplore [*] with gcc 3.4.4 requires a couple of small fixes to
the program's source. I'm running Yellow Dog Linux 4.1 on a PPC iBook,
but the same tweaks are possibly useful for other systems.

First thing you need to do is change line 36 of file 'Xplore.tmpl' to:

#define USE_GCC



Try to build the program (see instructions in the 'INSTALL' file). If
you get this error:

regexp.c:198: error: conflicting types for 'malloc'

you need to comment out - or delete - line 198 in file regexp/regexp.c .



If you are using gcc 3.4.4, you will probably get this error as well:

ftype.c:303: error: label at end of compound statement

I fixed this by adding a ; (semi-colon) at the end of line 303 in file
ftype.c .

After these fixes, everything built correctly. The program has been
running happily on my system for the last few days.


[*] Xplore is a very nice Motif file manager.
<http://www.musikwissenschaft.uni-mainz.de/~ag/xplore/xplore.php>
--
Jazzman * jazz.man@ *
~~~~~~~ * tiscali.it *
c***@isd.net
2006-10-13 22:56:03 UTC
Permalink
Post by Jazzman
Try to build the program (see instructions in the 'INSTALL' file). If
regexp.c:198: error: conflicting types for 'malloc'
you need to comment out - or delete - line 198 in file regexp/regexp.c .
Better to edit the line to change the return type of malloc() to the
correct value; a pointer to void:

extern void * malloc();
Jazzman
2006-10-14 12:24:25 UTC
Permalink
Post by c***@isd.net
Better to edit the line to change the return type of malloc() to the
extern void * malloc();
I think this isn't needed, as malloc() should be already defined in the
included files, which is probably why I was getting the "conflicting
types" error.
--
.: Jazzman :.

"Io non so se Dio esiste, ma se non esiste ci fa una figura migliore"
(Stefano Benni)
Loading...