Re: File not found: /usr//include/xmlparse.h (RPM build problem)

Hello Steinar,

I just checked and there are some problems on the libwww CVS base. That's why
the cvs2sql directory isn't there. We're looking at this problem right now.

In our previous episode, Steinar Bang said:
> 
> > I'm trying to rebuild libwww RPMs for Windows, based on todays snaphot
> > tarball and a doctored version of the SPEC file for the 5.2.8 RPM.
> 
> > The build crashes out with:
> > Wrote: /usr/src/packages/RPMS/i386/w3c-libwww-5.2.8-4.i386.rpm
> > Binary Packaging: w3c-libwww-devel-5.2.8-4
> > File not found: /usr//include/xmlparse.h
> > Build failed.
> 
> The cure to this was removing the line 
>         %{prefix}/include/xmlparse.h
> from the SPEC file.  The xmlparse.h is no longer directly under
> /usr/include, but resides in the w3c-libwww subdirectory.

I think that it is trying to make the RPM from the final installation
location, rather than from the w3c-libwww subdirectory. For example,
after compiling libwww, you can do a "make install". As you're using an
RPM for windows, the problem may be that the /usr/include directory
doesn't exist there (I'm not sure if you're under cygwin).
Also, it's strange that it says /usr//include/xmlparse.h, with two "//"
chars.

> But now I have a problem in that the wwwconf.h file doesn't seem to be 
> in the installation:
> 
> cd ~/src/test/cplusplus/qtlibwww/
> make 
> g++ -c -I/home/sb/apps/qt-egcs/include -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H -g qtlibwww.cpp
> In file included from /usr/include/w3c-libwww/WWWLib.h:50,
>                  from qtlibwww.cpp:11:
> /usr/include/w3c-libwww/wwwsys.h:132: wwwconf.h: No such file or directory
> make: *** [qtlibwww.o] Error 1
>

Under Unix, the wwwconf.h file is generated after having executed the
configure command. If you're not using configure, then you can find
a custom config.h file in

	~/libwww/Library/src/windows/config.h

If you look at wwwconf.h, you find the following:

========
#ifdef HAVE_CONFIG_H
#include <wwwconf.h>
#endif
=========

Maybe it's a bug in that the windows/config.h file isn't called wwwconf.h.
Try to undefine HAVE_CONFIG_H and compile again. Also try renaming the above
config.h into wwwconf.h, including the directory in your path and compiling.

Could you tell us what kind of platform/system you're using for your
build?

Hope that this helps you!

-Jose 

Received on Friday, 6 August 1999 07:28:24 UTC