Hello, 

I sent the two messages below to Jeremy Collins and he in turn suggested
posting it to the devel-help mailing list. Described far below is the
original problem I am having with the configure script for the
gnucash-1.4.1 source tarball. The next message up gives details of a
little extra checking I did into this problem. 

Can anyone suggest a solution to this?

Thanks in advance,

Bob Cochran
Beltsville, MD

-------- Original Message --------
Subject: [Fwd: [Fwd: Compiling GnuCash from 1.4.1 tarball]]
Date: Sun, 02 Jul 2000 22:21:33 -0400
From: "Robert L. Cochran Jr." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Jeremy,

I made one mistake below:

All references to 'MB_MAX_LEN' should read 'MB_LEN_MAX'.

Thanks,

Bob Cochran
Beltsville, MD

-------- Original Message --------
Subject: [Fwd: Compiling GnuCash from 1.4.1 tarball]
Date: Sun, 02 Jul 2000 22:16:39 -0400
From: "Robert L. Cochran Jr." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Jeremy,

In reference to my earlier email below, I think I understand what
happened, but I'd like to run it by you to confirm my thinking. 

At label gtk-xmhtml of the configure script (line 5534) we want to check
for the gtk-xmhtml.h header. A number of other header files are included
in this test. One such is limits.h. For this test gcc used both
/usr/include/limits.h and
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h. The
gcc version of limits.h defines MB_LEN_MAX as 1 and
/usr/include/limits.h defines MB_LEN_MAX with 6. There is a comment in
this version of limits.h saying that the gcc module has MB_MAX_LEN
defined incorrectly.

When the configure script ran this test, the gcc compiler complained
about MB_MAX_LEN being redefined and returned an error. The configure
script interprets this to mean gtk-xmhtml.h is not present, treats this
as a serious error, and exits.

Does this make sense to you?

I am thinking I could deal with this problem in one of 3 ways: the first
is to further evaluate the type of error returned to the configure
script by gcc, and change the script to exit only if there is a "no such
file or directory found" error. I don't like this idea because my shell
scripting skills are very limited at this point. The second is to remove
the test entirely from the configure script. The third is to change the
value of MB_LEN_MAX in the gcc version of limits.h to 6, that sounds
like it will get rid of the compiler error. But I don't like changing
source code like that: it's too easy to forget later on that I made the
change. And my C programming skills are still kiddie-level.

What do you think?

Thanks,

Bob Cochran
Beltsville, MD

-------- Original Message --------
Subject: Compiling GnuCash from 1.4.1 tarball
Date: Sun, 02 Jul 2000 12:02:38 -0400
From: "Robert L. Cochran Jr." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Jeremy,

I'm sorry to bother you with this, I was going to post this to the
GnuCash Installation Help forum but it seems to have disappeared. 

I am trying to compile gnucash-1.4.1 from a tarball downloaded from
http://www.gnucash.org on a RedHat 6.2 system running the 2.2.16-3
kernel. (I've upgraded the kernel twice since installing this system
from the RedHat Deluxe boxed set.)

When I run the configure script, it fails with an error message "can't
find gtk-xmhtml.h". This header is located in my /usr/include/gtk-xmhtml
directory. I printed the configure script and noticed this line

#include <gtk-xmhtml/gtk-xmhtml.h>

Since this is in a configure script, it looks like it is a comment line.
I didn't think to check the config.log file to see what it had to say; I
only noticed it later. (I'm rather new to Linux and C programming.)
However I thought this line is actually trying to specify an include
file for conftest.c so I altered it to look like this:

#include </usr/include/gtk-xmhtml/gtk-xmhtml.h>

and reran the configure script. This failed with the same error message
as above, "can't find gtk-xmhtml.h". After seeing references to
config.log in the configure script, I printed this file and found the
following error messages from the gcc compiler:

In file included from /usr/lib/glib/include/glibconfig.h:13,
[several more lines formatted like the above, including "from
/usr/include/gtk-xmhtml/gtk-xmhtml.h:5"]
/usr/include/limits.h:45: warning: 'MB_LEN_MAX' redefined
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:26:
warning: this is the location of the previous definition 
configure: failed program was:
#line 5534 "configure"
...
...
What is the above error message trying to tell me, and what can be done
to fix it? 

I could just chicken out and install the rpm that GnuCash provides for
their application, but I'm very interested in developing code in Linux
and would like to see this compile succeed as a sort of introduction to
programming in Unix. Especially since I already compiled and installed
SWIG 1.1p5 successfully. 

Thanks for any advice you can offer.

Bob Cochran
Beltsville, MD

--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to