Porting libtiff library

Irvanda Kurniadi irvanda.k at gmail.com
Thu Jan 9 09:29:44 CET 2014


Thanks Adam,

I've put the revision of jpegv9a and it solved the problem of true and
false. But now I'm having another problem. I compiled libtiff library and
got this error message:

lib/contrib/contrib/dbs/tiff-bi.s.o: In function `main':
/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/contrib/dbs/tiff-bi.c:36:
multiple definition of `main'
lib/contrib/contrib/addtiffo/addtiffo.s.o:/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/contrib/addtiffo/addtiffo.c:73:
first defined here
lib/contrib/contrib/dbs/tiff-grayscale.s.o: In function `main':
/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/contrib/dbs/tiff-grayscale.c:42:
multiple definition of `main'
lib/contrib/contrib/addtiffo/addtiffo.s.o:/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/contrib/addtiffo/addtiffo.c:73:
first defined here
...
...
...
lib/contrib/contrib/addtiffo/addtiffo.s.o:/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/contrib/addtiffo/addtiffo.c:73:
first defined here
lib/contrib/tools/tiffsplit.s.o: In function `main':
/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/tools/tiffsplit.c:59:
multiple definition of `main'
lib/contrib/contrib/addtiffo/addtiffo.s.o:/home/irvanda/l4linux_test/src/l4/pkg/libtiff/lib/contrib/contrib/addtiffo/addtiffo.c:73:
first defined here
make[8]: *** [libtiff.so] Error 1
make[7]: ***
[/home/irvanda/l4linux_test/obj/l4/x86/pkg/libtiff/lib/build/OBJ-x86_586]
Error 2
make[6]: *** [build] Error 2
make[5]: *** [lib] Error 2
make[4]: *** [libtiff] Error 2
make[3]: *** [pkg] Error 2
make[2]: *** [x] Error 2
^Cmake[1]: *** [build_all] Interrupt
make: *** [all] Interrupt

This is my Makefile in build directory:

PKGDIR          ?= ../..
L4DIR           ?= $(PKGDIR)/../..

TARGET          = libtiff.a libtiff.so
DEPENDS_PKGS    = libjpeg
SYSTEMS         = $(SYSTEMS_PLAIN)
LIBS            = $(GCCLIB)

include $(L4DIR)/mk/Makeconf

REQUIRES_LIBS     = libjpeg zlib

CONTRIB_INCDIR  = libtiff

SRC_C           = $(patsubst $(PKGDIR)/%.c, %.c, $(filter-out
$(PKGDIR)/lib/contrib/libtiff/tif_win32.c
$(PKGDIR)/lib/contrib/libtiff/mkg3states.c, $(wildcard
$(PKGDIR)/lib/contrib/libtiff/*.c))) \
$(patsubst $(PKGDIR)/%.c, %.c, $(wildcard
$(PKGDIR)/lib/contrib/contrib/addtiffo/*.c)) \
$(patsubst $(PKGDIR)/%.c, %.c, $(wildcard
$(PKGDIR)/lib/contrib/contrib/dbs/*.c)) \
$(patsubst $(PKGDIR)/%.c, %.c, $(wildcard
$(PKGDIR)/lib/contrib/contrib/iptcutil/*.c)) \
$(patsubst $(PKGDIR)/%.c, %.c, $(wildcard
$(PKGDIR)/lib/contrib/contrib/mfs/*.c)) \
$(patsubst $(PKGDIR)/%.c, %.c, $(wildcard $(PKGDIR)/lib/contrib/port/*.c)) \
$(patsubst $(PKGDIR)/%.c, %.c, $(filter-out
$(PKGDIR)/lib/contrib/tools/sgi2tiff.c $(PKGDIR)/lib/contrib/tools/sgisv.c
$(PKGDIR)/lib/contrib/tools/tiffgt.c $(PKGDIR)/lib/contrib/tools/sgisv.c
$(PKGDIR)/lib/contrib/tools/ycbcr.c, $(wildcard
$(PKGDIR)/lib/contrib/tools/*.c)))

PRIVATE_INCDIR    = $(PKGDIR)/lib/contrib/libtiff \
          $(PKGDIR)/lib/contrib/contrib/addtiffo \
          $(PKGDIR)/lib/contrib/contrib/dbs \
          $(PKGDIR)/lib/contrib/contrib/iptcutil \
          $(PKGDIR)/lib/contrib/contrib/mfs \
          $(PKGDIR)/lib/contrib/port \
          $(PKGDIR)/lib/contrib/tools \

vpath %.c $(PKGDIR)

include $(L4DIR)/mk/lib.mk

# prevent warnings
CFLAGS := $(filter-out -Wextra -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wimplicit-function-declaration
-Wformat,$(CFLAGS))


I hope some of hackers here can help me solving this problem.

best regards,

Irvanda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20140109/3a6daa29/attachment.html>


More information about the l4-hackers mailing list