How to compile ddd-3.3.8 [Was Re: Missing header files in ddd-3.3.8 tarball]

From: Amir Hardon (hardon_at_nonexisting.hamakor.org.il)
Date: Sun 23 May 2004 - 17:12:30 IDT


On Saturday 22 May 2004 14:03, Amir Hardon wrote:
> Hi, I'm trying to compile ddd,
> but it seems like some header files are missing in the ddd tarball,
> my first make try failed with this error:
> No rule to make target `../include/xregex.h', needed by `regex.o'
> After some non-helpful google-ing I decided to download xregex.h from ddd's
> cvs, (I also downloaded xregex2.h which is included from xregex.h).
> My second make last a little longer, but failed with the same error this
> time about safe-ctype.h, so again I downloaded it from cvs.
> But the third make failed with a different error(which I'm certain is
> caused by incompatibilities between the headers I downloaded from cvs and
> the headers of the version I'm compiling).
>
> I can't believe that they forgot to put the headers in the tarball and
> nobody noticed it for this long(It was released at November 2003).
> So I guess I'm the dumb one here, can anyone tell me why?
>
> P.S
> I posted a message to ddd's mailing list but it's a dead list with nothing
> but spam in the last few months.
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request_at_linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request_at_linux.org.il

I'm sending this to the list so it will get archived and google will help
others where it didn't help me.

I got this mail from Andrew Gaylard (one of ddd's developers) after sending a
question about the compile issue to ddd_at_gnu.org (This is the whole mail):
This was a mistake; these files are now part of 3.3.9-testX.

Andrew.
[-- End of mail --]

But after doing so I found out it's a bit more complicated:

I had to add/replace the following headers with the equivalents from
ddd-3.3.9-test2:
xregex.h xregex2.h safe-ctype.h demangle.h dyn-string.h md5.h libiberty.h
ansidecl.h fibheap.h sort.h splay-tree.h ternary.h
And replace the file ddd/rxscan.C with it's equivalent from ddd-3.3.9-test2.

But this left me with compile errors that I solved by editing libiberty.h, at
line 257, I replaced the following line:
extern const unsigned char _hex_value[_hex_array_size];
with:
extern const char _hex_value[_hex_array_size];

Now ddd compiles!

P.S
I'm still wondering whether I had to replace the file ddd/rxscan.L with it's
equivalent, but I guess time will tell...(-:

        -Amir Hardon

=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il



This archive was generated by hypermail 2.1.7 : Sun 23 May 2004 - 17:22:35 IDT