Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 355091

Summary: dev-tex/luatex-0.65.0: compilation fails with media-libs/libpng-1.5.x
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) <polynomial-c>
Component: [OLD] DevelopmentAssignee: TeX project <tex>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://foundry.supelec.fr/gf/project/luatex/scmsvn/?action=browse&path=%2F&view=rev&revision=4045
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    
Attachments: luatex-0.65.0-libpng15.patch
luatex-0.65.0-libpng15.patch

Description Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 19:40:57 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./w2c     -DPOPPLER_VERSION=\"0.16.2\" -I/usr/include/poppler   -I/var/tmp/portage/dev-tex/luatex-0.65.0/work/luatex-beta-0.65.0/source/libs/obsdcompat -I/var/tmp/portage/dev-tex/luatex-0.65.0/work/luatex-beta-0.65.0/source/libs/obsdcompat -I./libmd5 -Iluatexdir -I./luatexdir -I./luatexdir/lua51 -DpdfTeX  -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -march=barcelona -O2 -pipe -MT libluatex_a-writepng.o -MD -MP -MF .deps/libluatex_a-writepng.Tpo -c -o libluatex_a-writepng.o `test -f 'writepng.c' || echo './'`writepng.c
./luatexdir/image/writepng.w: In function 'read_png_info':
./luatexdir/image/writepng.w:70:4: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:79:31: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:84:11: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:97:30: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:98:30: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:99:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:105:14: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:118:57: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:120:30: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'write_png_palette':
./luatexdir/image/writepng.w:187:13: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:190:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:191:6: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:192:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:192:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:195:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:195:25: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:198:7: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:199:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:200:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:202:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:202:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:209:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:211:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:212:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:213:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'write_png_gray':
./luatexdir/image/writepng.w:232:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:233:6: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:234:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:234:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:237:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:237:25: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:240:7: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:241:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:242:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:244:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:244:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'write_png_gray_alpha':
./luatexdir/image/writepng.w:269:26: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:269:46: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:272:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:273:6: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:274:11: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:275:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:275:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:277:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:277:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:281:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:281:25: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:284:7: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:285:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:286:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:288:11: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:289:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:289:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:291:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:291:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:298:22: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:304:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:305:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'write_png_rgb':
./luatexdir/image/writepng.w:332:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:333:6: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:334:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:334:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:337:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:337:25: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:340:7: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:341:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:342:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:344:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:344:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'write_png_rgb_alpha':
./luatexdir/image/writepng.w:369:26: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:369:46: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:372:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:373:6: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:374:11: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:375:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:375:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:377:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:377:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:381:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:381:25: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:384:7: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:385:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:386:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:388:11: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:389:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:389:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:391:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:391:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:399:22: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:405:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:406:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'copy_png':
./luatexdir/image/writepng.w:454:17: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:479:7: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:480:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:480:26: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w: In function 'write_png':
./luatexdir/image/writepng.w:553:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:554:12: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:554:32: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:566:33: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:566:77: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:566:104: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:567:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:568:6: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:569:35: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:575:14: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:579:13: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:595:28: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:597:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:598:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:599:1: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:609:9: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:610:39: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:611:11: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:612:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:613:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:617:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:619:10: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:620:33: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:624:14: error: dereferencing pointer to incomplete type
./luatexdir/image/writepng.w:650:7: error: dereferencing pointer to incomplete type
make: *** [libluatex_a-writepng.o] Error 1
Comment 1 Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 19:44:41 UTC
Created attachment 262649 [details, diff]
luatex-0.65.0-libpng15.patch

Patch from upstream repository (see URL).
Comment 2 Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 20:26:26 UTC
Created attachment 262653 [details, diff]
luatex-0.65.0-libpng15.patch

Ooops, seems like the upstream patch still doesn't fix everything. The now attached patch comes from NetBSD (ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/print/luatex/patches/patch-ad) and works.
Comment 3 Alexis Ballier gentoo-dev 2011-02-15 21:14:53 UTC
patch applied, thanks