[mad-dev] Need help with building MAD

Andrew March amarch@tpg.com.au
Wed, 19 Dec 2001 18:50:42 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_00DE_01C188BE.0F4AAB00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi

I'm trying to build MAD under Cygwin but seem to be having trouble with =
paths to the include directory.

I *think* the environment is OK because I can build my own gcc binary by =
running configure then make supplied with the gcc source package.

However, the configure supplied with the MAD source package does not =
seem to be able to detect the include directory (/usr/include I =
believe).=20
For example, I get the message: Checking for ANSI C header files...no  =20
The individual header file checks also get a negative result.

Note that configure does in fact run to completion. When I subsequently =
try running make, it recurses into the mad/intl directory then bombs on =
the first header file it can't find. The error message is: In file =
included from intl-compat.c:23 libgettext.h 33: sys/types.h: no such =
file or directory.

By way of background, I set up two project directories to build MAD and =
gcc. They are at the same level, viz:
c:\cygwin\home\Andrew\gcc
c:\cygwin\home\Andrew\mad

I simply unzipped mad-0.14.2b.tar.gz into the second of these =
directories before running configure from that directory.

As part of my experiments, I also regenerated configure using autoconf =
but this did not pick up the path to the include directory.

Right now I'm stumped as to why gcc builds OK but MAD won't. Can someone =
please suggest a remedy to my problem?

My system is a PC running Win98 and a Duron processor.

Apologies if this is all rather naive - I admit it is my first =
experience with Cygwin and building GNU software.=20

Regards
Andrew

------=_NextPart_000_00DE_01C188BE.0F4AAB00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#e8e8e8>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to build MAD under Cygwin =
but seem to be=20
having trouble with paths to the include directory.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I *think* the environment is OK because =
I=20
can&nbsp;build my own gcc binary by running&nbsp;configure then make =
supplied=20
with the gcc source package.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However,&nbsp;the configure supplied =
with the MAD=20
source package does not seem to&nbsp;be able to detect the include =
directory=20
(/usr/include I believe). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For example, I&nbsp;get the message: =
</FONT><FONT=20
face=3DArial size=3D2>Checking for ANSI C header=20
files...no&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The individual header file checks also =
get a=20
negative result.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Note that configure does in fact run to =
completion.=20
When I subsequently try running make, it recurses into the mad/intl =
directory=20
then bombs on the first header file it can't find. The error message is: =
In file=20
included from intl-compat.c:23 libgettext.h 33: sys/types.h: no such =
file or=20
directory.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>By way of background, I&nbsp;set up two =
project=20
directories to build&nbsp;MAD and&nbsp;gcc. They are at the same level,=20
viz:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>c:\cygwin\home\Andrew\gcc
<DIV><FONT face=3DArial size=3D2>c:\cygwin\home\Andrew\mad</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>I&nbsp;simply unzipped mad-0.14.2b.tar.gz into the second of these=20
directories before running configure from that directory.</DIV>
<DIV>&nbsp;</DIV>
<DIV>As part of my experiments, I also regenerated configure =
using&nbsp;autoconf=20
but this did not pick up the path to the include directory.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Right now I'm stumped as to why gcc builds OK&nbsp;but MAD won't. =
Can=20
someone please suggest a remedy to my =
problem?</DIV></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>My system =
is a PC running=20
Win98 and a&nbsp;Duron processor.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>Apologies =
if this is all=20
rather naive - I admit it is my first experience with Cygwin and =
building GNU=20
software. </DIV>
<DIV>&nbsp;</DIV></FONT></FONT>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Andrew</FONT></DIV></BODY></HTML>

------=_NextPart_000_00DE_01C188BE.0F4AAB00--