Has anyone had any problems building Lesstif under Redhat 5? I'm using
the latest (as of last week) version of Lesstif, obtained straight from
www.lesstif.org.
I'm using gcc version 2.7.3.2 and half way through the build of lib/Xm,
this happens ...
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include/Motif-1.2
-I/usr/X11R6/include -g -DNONSTANDARD_CONVERTERS -DLESSTIF_VERBOSE -c
-fPIC -DPIC LTfnmatch.c
LTfnmatch.c: In function `_Lesstif_fnmatch':
LTfnmatch.c:56: `FNM_CASEFOLD' undeclared (first use this function)
LTfnmatch.c:56: (Each undeclared identifier is reported only once
LTfnmatch.c:56: for each function it appears in.)
LTfnmatch.c:63: `FNM_FILE_NAME' undeclared (first use this function)
LTfnmatch.c:191: `FNM_LEADING_DIR' undeclared (first use this function)
make[2]: *** [LTfnmatch.lo] Error 1
make[2]: Leaving directory `/usr/src/lesstif-current/lib/Xm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lesstif-current/lib'
make: *** [all-recursive] Error 1
Now I _KNOW_ that this builds under Redhat 4 with the same version of
gcc 'cos I did it recently on a friend's box and it built cleanly.
I'm wondering whether there's a problem with the versions of Redhat and
gcc. My reasons? I did a bit of digging and found the "missing"
definitions in include/LTfnmatch.h as follows:
#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined
(_GNU_SOURCE)
#define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
#define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
#endif
The only other header file included in the C source is
include/LTconfig.h which doesn't
a) include any other headers
b) redefine any of the above compiler macros
So (we're getting there) I wrote a little test proglet which tests the
above macros and using the same command line I discover that NONE of
these macros are defined. So it boils down to this, as far as I see it
a) the version of the configure script shipped with Lesstif is kooky
b) the version of gcc is kooky
c) Redhat 5 is kooky (unlikely but hey)
d) a combination of a-c gives kooky results
e) I'm living in a parallel universe and I'm actually building Windows
98 using Mico$oft Vi$ual C-- - either that or I'm having another one of
those too many pint's of Fuller's Winter Ale experiences - and I know
that's not the case.
Anyone out there got the foggiest notion of how I dig myself out of this
one as I _really need_ a proper Motif environment (and yes, I know
FVWM95 comes with Lesstif built-in - I don't want to get into that one
right now)?
All the best,
Gary
(tired, shagged out and slightly emotional)
--
--------------------------------------------------------
Gary Gale / G-Tech Ltd / Chiswick / London
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Web: http://dspace.dial.pipex.com/town/plaza/gy90/
Project Options: On Time, Zero Defects - select one only
--------------------------------------------------------
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.