agl/jbig2enc — Issue #19: Problem Building jbig2enc with CentOS 6.0
Author: dtlewis
Created: 2011-11-25 03:49:17+00:00
State: open

Make is failing after successfully install leptonica 1.68 under CentOS 6.0. I'm getting undefined references below...

[root@xaudits agl-jbig2enc-e8be922]# make
g++ -c jbig2enc.cc -I../leptonica-1.68/src -Wall -I/usr/include -L/usr/lib -O3
g++ -c jbig2arith.cc -I../leptonica-1.68/src -Wall -I/usr/include -L/usr/lib -O3
g++ -c jbig2sym.cc -DUSE_EXT -I../leptonica-1.68/src -Wall -I/usr/include -L/usr/lib -O3
ar -rcv libjbig2enc.a jbig2enc.o jbig2arith.o jbig2sym.o
a - jbig2enc.o
a - jbig2arith.o
a - jbig2sym.o
g++ -o jbig2 jbig2.cc -L. -ljbig2enc ../leptonica-1.68/src/.libs/liblept.a -I../leptonica-1.68/src -Wall -I/usr/include -L/usr/lib -O3 -lpng -ljpeg -ltiff -lm -lz
../leptonica-1.68/src/.libs/liblept.a(gifio.o): In function `pixWriteStreamGif':
/root/leptonica-1.68/src/gifio.c:308: undefined reference to `MakeMapObject'
/root/leptonica-1.68/src/gifio.c:329: undefined reference to `EGifOpenFileHandle'
/root/leptonica-1.68/src/gifio.c:336: undefined reference to `EGifPutScreenDesc'
/root/leptonica-1.68/src/gifio.c:339: undefined reference to `FreeMapObject'
/root/leptonica-1.68/src/gifio.c:340: undefined reference to `EGifCloseFile'
/root/leptonica-1.68/src/gifio.c:317: undefined reference to `FreeMapObject'
/root/leptonica-1.68/src/gifio.c:343: undefined reference to `FreeMapObject'
/root/leptonica-1.68/src/gifio.c:345: undefined reference to `EGifPutImageDesc'
/root/leptonica-1.68/src/gifio.c:347: undefined reference to `EGifCloseFile'
/root/leptonica-1.68/src/gifio.c:387: undefined reference to `EGifPutLine'
/root/leptonica-1.68/src/gifio.c:400: undefined reference to `EGifPutComment'
/root/leptonica-1.68/src/gifio.c:406: undefined reference to `EGifCloseFile'
/root/leptonica-1.68/src/gifio.c:331: undefined reference to `FreeMapObject'
/root/leptonica-1.68/src/gifio.c:390: undefined reference to `EGifCloseFile'
/root/leptonica-1.68/src/gifio.c:355: undefined reference to `EGifCloseFile'
/root/leptonica-1.68/src/gifio.c:361: undefined reference to `EGifCloseFile'
../leptonica-1.68/src/.libs/liblept.a(gifio.o): In function `pixReadStreamGif':
/root/leptonica-1.68/src/gifio.c:92: undefined reference to `DGifOpenFileHandle'
/root/leptonica-1.68/src/gifio.c:97: undefined reference to `DGifSlurp'
/root/leptonica-1.68/src/gifio.c:189: undefined reference to `DGifCloseFile'
/root/leptonica-1.68/src/gifio.c:98: undefined reference to `DGifCloseFile'
/root/leptonica-1.68/src/gifio.c:111: undefined reference to `DGifCloseFile'
/root/leptonica-1.68/src/gifio.c:130: undefined reference to `DGifCloseFile'
/root/leptonica-1.68/src/gifio.c:154: undefined reference to `DGifCloseFile'
../leptonica-1.68/src/.libs/liblept.a(gifio.o):/root/leptonica-1.68/src/gifio.c:103: more undefined references to `DGifCloseFile' follow
collect2: ld returned 1 exit status
make: *** [jbig2] Error 1
[root@xaudits agl-jbig2enc-e8be922]#