Compilation problem with 1.2 release

Well, I compiled release but it gave error while making png library.

The inclusion of zlib.h in the file png.h cannot locate file zlib.h.
If you change the inclusion to

include "../zlib/zlib.h" instead of just "zlib.h" in png.h

then compilation succeeds.

regards,

Well, I compiled release but it gave error while making png library.

The inclusion of zlib.h in the file png.h cannot locate file zlib.h.
If you change the inclusion to

include "../zlib/zlib.h" instead of just "zlib.h" in png.h

then compilation succeeds.

I haven't seen a reply to this on LLVM Dev, so I'm assuming it's been left
unanswered.

First, unless you want zlib and libpng as bytcode libraries, this error should
not interfere with what you're doing (unless you're using the "make install" or
"make install-bytecode" targerts, in which case use make -k to get over
the errors). I imported these libraries because they're used by some of our
favorite benchmarking programs. :slight_smile:

Second, I'm not sure why this is happening. My best guess is that the build
works on our internal machines here at UIUC because we have native zlib and
libpng headers installed on our systems. It's possible that it's grabbing
the headers installed on the system instead of using the ones in the LLVM
source tree.

If your work-around works fine, then please feel free to use it. I'll
investigate this problem as soon as I return from vacation and will file a bug
report on it if my suspicion is correct.

My apologies for the inconvenience.

Regards,

-- John T.

As John mentioned, this was just working for us by accident. I guess all
of our test machines have zlib installed. I've checked in this patch,
which I believe should fix the problem (like yours does):
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040322/013310.html

Thanks for pointing this out!

-Chris