[uClibc]XFree v4.2.0
Erik Andersen
andersen at codepoet.org
Sat Feb 2 10:25:10 UTC 2002
On Thu Jan 31, 2002 at 10:31:21AM +0800, Andrew Ip wrote:
> Still need to do the link. Here I have attached my working host.def. Note
> that I added GzipFontCompression NO. This line is needed; otherwise, it failed
> to make zip library. As a result, it can't make libXfont.a. Any commment?
Ok, here is the point at which the error occurs:
/usr/src/linuxbios/buildroot/build_dir_uclibc/bin/gcc -c -O2 -I../../../include/fonts -I../include
+-I../../../programs/Xserver/include -I../../../include -I../../.. -I../../../exports/include
+-I/usr/X11R6/include -Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE -DFUNCPROTO=15
+-DNARROWPROTO -DFONTDIRATTRIB
+-DFONT_ENCODINGS_DIRECTORY=\"/usr/X11R6/lib/X11/fonts/encodings/encodings.dir\" -DX_GZIP_FONT_COMPRESSION
+gunzip.c
gunzip.c:9: zlib.h: No such file or directory
make[5]: *** [gunzip.o] Error 1
make[5]: Target `all' not remade because of errors.
make[5]: Leaving directory `/usr/src/linuxbios/buildroot/tinyx/xc/lib/font/fontfile'
make[4]: *** [fontfile] Error 2
You need to first build zlib against uClibc and install it
to whever your uClibc library is installed. That will allow
things to be built against zlib. This is how I build zlib
with uClibc:
ZLIB_SOURCE=$(SOURCE_DIR)/zlib-1.1.3.tar.gz
ZLIB_DIR=$(BASE_DIR)/zlib-1.1.3
tar -xzf $(ZLIB_SOURCE) ;
(cd $(ZLIB_DIR); autoconf);
(cd $(ZLIB_DIR); env PATH="$(TARGET_PATH)" \
./configure --shared --prefix=/usr --exec_prefix=$(BUILD_DIR)/usr/bin \
--libdir=$(BUILD_DIR)/lib --includedir=$(BUILD_DIR)/include); \
env PATH="$(TARGET_PATH)" $(MAKE) CC="$(TARGET_CC)" \
CFLAGS="-Os " prefix=/ -C $(ZLIB_DIR) all libz.a;
cp -a $(ZLIB_DIR)/libz.a $(BUILD_DIR)/lib; \
cp -a $(ZLIB_DIR)/zlib.h $(BUILD_DIR)/include; \
cp -a $(ZLIB_DIR)/zconf.h $(BUILD_DIR)/include; \
cp -a $(ZLIB_DIR)/libz.so* $(BUILD_DIR)/lib; \
(cd $(BUILD_DIR)/lib; ln -fs libz.so.1.1.3 libz.so.1); \
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020202/ac53be27/attachment.pgp
More information about the uClibc
mailing list