Closed
Bug 170162
Opened 23 years ago
Closed 23 years ago
expat.h not found when compiling fcxml.c
Categories
(SeaMonkey :: Build Config, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 168314
People
(Reporter: jsado, Assigned: netscape)
Details
I'm compiling Mozilla version 1.0.1 from source. Version 1.0 compiled fine for
me. I'm running Linux From Scratch, with gcc 2.95.2, kernel 2.4.17, and glibc
2.2.4. These are the exact commands that I use to compile Mozilla (which worked
with 1.0):
export MOZILLA_OFFICIAL=1 &&
export BUILD_OFFICIAL=1 &&
export MOZ_INTERNAL_LIBART_LGPL=1 &&
./configure --prefix=/usr --disable-nls --disable-debug --enable-toolkit-gtk
--with-gtk --enable-crypto --enable-default-mozilla-five-home=/usr/mozilla
--with-x --with-system-jpeg --with-system-zlib --with-system-png
--with-system-mng --enable-xft --disable-jsd --disable-accessibility
--disable-tests --enable-optimize=-O3 --disable-dtd-debug --disable-logging
--enable-reorder --enable-strip --enable-elf-dynstr-gc --enable-cpp-rtti
--enable-extensions="all" --enable-svg &&
make &&
make install &&
mozilla
Now, under the directory /usr/src/mozilla/other-licenses/Xft/fontconfig/src
during make it tries to compile fcxml.c and fails with a large number of errors,
the first of which is:
fcxml.c:26: expat.h: No such file or directory
The actual compile command for this file is:
gcc -o fcxml.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI
-DFC_FALLBACK_FONTS=\"/usr/X11R6/lib/X11/fonts/Type1\"
-I../../../../dist/include/freetype2 -I../../../../dist/include/fontconfig
-I../../../../dist/include/expat -I../../../../dist/include/fontconfig
-I../../../../dist/include -I/usr/src/mozilla/dist/include/nspr
-I/usr/X11R6/include -fPIC -I/usr/X11R6/include -Wall -W -Wno-unused
-Wpointer-arith -Wcast-align -pedantic -Wno-long-long -O3 -march=k6 -pthread
-pipe -DNDEBUG -DTRIMMED -ffunction-sections -O3 -I/usr/X11R6/include -include
../../../../config-defs.h -DMOZILLA_CLIENT -Wp,-MD,.deps/fcxml.pp fcxml.c
And after the failure dist/include/expat only contains the file xmlparse.h.
There are two expat.h files included in the source tarball. I linked one of them
into dist/include/expat and re-ran make. It still failed with the same error and
dist/include/expat still only contained xmlparse.h. This means that this
directory's contents are being changed and expat.h is being deleted sometime
between the begining of the make and the compiling of fcxml.c.
It would seem that the solution should be either to find where expat.h is being
removed from dist/include/expat and take that out, or to add the location of
expat.h to the -I list given to gcc when compiling fcxml.c.
| Assignee | ||
Comment 1•23 years ago
|
||
*** This bug has been marked as a duplicate of 168314 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 2•23 years ago
|
||
Also same as Bug 167750.
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•