Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13935 - qt-3.1.0-r1 does not compile because qpngio.cpp cannot find png.h
Summary: qt-3.1.0-r1 does not compile because qpngio.cpp cannot find png.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-14 15:52 UTC by Evan DiBiase
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan DiBiase 2003-01-14 15:52:39 UTC
After updating my libpng to version 1.2.5, QT no longer compiles. The error:

g++ -c -pipe -fno-exceptions -I/usr/include/mysql -Wall -W -O2 -D_REENTRANT
-fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA
-DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT
-I/usr/include/freetype2 -I../include -I/usr/X11R6/include -I/usr/X11R6/include
-I.moc/release-shared-mt/
-I/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/mkspecs/linux-g++ -o
.obj/release-shared-mt/qdir_unix.o tools/qdir_unix.cpp
kernel/qpngio.cpp:45:17: png.h: No such file or directory
kernel/qpngio.cpp:67: `png_structp' was not declared in this scope
kernel/qpngio.cpp:67: parse error before `,' token
kernel/qpngio.cpp: In function `void iod_read_fn(...)':
kernel/qpngio.cpp:69: `png_ptr' undeclared (first use this function)
kernel/qpngio.cpp:69: (Each undeclared identifier is reported only once for 
   each function it appears in.)
kernel/qpngio.cpp:69: `png_get_io_ptr' undeclared (first use this function)
kernel/qpngio.cpp:72: `length' undeclared (first use this function)
kernel/qpngio.cpp:73: `data' undeclared (first use this function)
kernel/qpngio.cpp:75: `png_error' undeclared (first use this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:84: parse error before `,' token
kernel/qpngio.cpp:98: parse error before `)' token
kernel/qpngio.cpp:111: type specifier omitted for parameter `png_structp'
kernel/qpngio.cpp:111: parse error before `,' token
kernel/qpngio.cpp: In function `void setup_qt(...)':
kernel/qpngio.cpp:113: `screen_gamma' undeclared (first use this function)
kernel/qpngio.cpp:113: `info_ptr' undeclared (first use this function)
kernel/qpngio.cpp:113: `PNG_INFO_gAMA' undeclared (first use this function)
kernel/qpngio.cpp:113: `png_get_valid' undeclared (first use this function)
kernel/qpngio.cpp:115: `png_get_gAMA' undeclared (first use this function)
kernel/qpngio.cpp:116: `png_set_gamma' undeclared (first use this function)
kernel/qpngio.cpp:119: `png_uint_32' undeclared (first use this function)
kernel/qpngio.cpp:119: parse error before `;' token
kernel/qpngio.cpp:123: `width' undeclared (first use this function)
kernel/qpngio.cpp:123: `height' undeclared (first use this function)
kernel/qpngio.cpp:124: `png_get_IHDR' undeclared (first use this function)
kernel/qpngio.cpp:126: `PNG_COLOR_TYPE_GRAY' undeclared (first use this 
   function)
kernel/qpngio.cpp:129: `png_set_invert_mono' undeclared (first use this 
   function)
kernel/qpngio.cpp:130: `png_read_update_info' undeclared (first use this 
   function)
kernel/qpngio.cpp:131: `image' undeclared (first use this function)
kernel/qpngio.cpp:136: `png_set_strip_16' undeclared (first use this function)
kernel/qpngio.cpp:138: `png_set_packing' undeclared (first use this function)
kernel/qpngio.cpp:146: `PNG_INFO_tRNS' undeclared (first use this function)
kernel/qpngio.cpp:157: `PNG_COLOR_TYPE_PALETTE' undeclared (first use this 
   function)
kernel/qpngio.cpp:157: `PNG_INFO_PLTE' undeclared (first use this function)
kernel/qpngio.cpp:197: `png_set_expand' undeclared (first use this function)
kernel/qpngio.cpp:199: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use this 
   function)
kernel/qpngio.cpp:200: `png_set_gray_to_rgb' undeclared (first use this 
   function)
kernel/qpngio.cpp:205: `PNG_COLOR_MASK_ALPHA' undeclared (first use this 
   function)
kernel/qpngio.cpp:209: `PNG_FILLER_BEFORE' undeclared (first use this function)
kernel/qpngio.cpp:209: `PNG_FILLER_AFTER' undeclared (first use this function)
kernel/qpngio.cpp:209: `png_set_filler' undeclared (first use this function)
kernel/qpngio.cpp:216: `png_set_swap_alpha' undeclared (first use this 
   function)
kernel/qpngio.cpp:224: `png_set_bgr' undeclared (first use this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:232: `png_structp' was not declared in this scope
kernel/qpngio.cpp:232: `png_const_charp' was not declared in this scope
kernel/qpngio.cpp:232: parse error before `)' token
kernel/qpngio.cpp: In function `void qt_png_warning(...)':
kernel/qpngio.cpp:234: `message' undeclared (first use this function)
kernel/qpngio.cpp: In function `void read_png_image(QImageIO*)':
kernel/qpngio.cpp:245: parse error before `;' token
kernel/qpngio.cpp:247: `png_infop' undeclared (first use this function)
kernel/qpngio.cpp:248: `png_bytep' undeclared (first use this function)
kernel/qpngio.cpp:248: `row_pointers' undeclared (first use this function)
kernel/qpngio.cpp:250: `PNG_LIBPNG_VER_STRING' undeclared (first use this 
   function)
kernel/qpngio.cpp:250: `png_create_read_struct' undeclared (first use this 
   function)
kernel/qpngio.cpp:256: `png_set_error_fn' undeclared (first use this function)
kernel/qpngio.cpp:258: `png_create_info_struct' undeclared (first use this 
   function)
kernel/qpngio.cpp:260: `png_destroy_read_struct' undeclared (first use this 
   function)
kernel/qpngio.cpp:265: `end_info' undeclared (first use this function)
kernel/qpngio.cpp:272: `setjmp' undeclared (first use this function)
kernel/qpngio.cpp:278: `png_set_read_fn' undeclared (first use this function)
kernel/qpngio.cpp:279: `png_read_info' undeclared (first use this function)
kernel/qpngio.cpp:282: cannot pass objects of non-POD type `class QImage' 
   through `...'
kernel/qpngio.cpp:285: parse error before `;' token
kernel/qpngio.cpp:293: parse error before `[' token
kernel/qpngio.cpp:299: `png_read_image' undeclared (first use this function)
kernel/qpngio.cpp:319: `png_get_x_pixels_per_meter' undeclared (first use this 
   function)
kernel/qpngio.cpp:320: `png_get_y_pixels_per_meter' undeclared (first use this 
   function)
kernel/qpngio.cpp:323: `png_textp' undeclared (first use this function)
kernel/qpngio.cpp:323: parse error before `;' token
kernel/qpngio.cpp:325: `text_ptr' undeclared (first use this function)
kernel/qpngio.cpp:325: `png_get_text' undeclared (first use this function)
kernel/qpngio.cpp:354: `png_read_end' undeclared (first use this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:396: type specifier omitted for parameter `png_structp'
kernel/qpngio.cpp:396: parse error before `,' token
kernel/qpngio.cpp: In function `void set_text(...)':
kernel/qpngio.cpp:400: parse error before `=' token
kernel/qpngio.cpp:406: `short_not_long' undeclared (first use this function)
kernel/qpngio.cpp:408: `PNG_TEXT_COMPRESSION_NONE' undeclared (first use this 
   function)
kernel/qpngio.cpp:410: `PNG_TEXT_COMPRESSION_zTXt' undeclared (first use this 
   function)
kernel/qpngio.cpp:411: `png_charp' undeclared (first use this function)
kernel/qpngio.cpp:412: parse error before `.' token
kernel/qpngio.cpp:417: `png_set_text' undeclared (first use this function)
kernel/qpngio.cpp: In member function `bool QPNGImageWriter::writeImage(const 
   QImage&, int, int, int)':
kernel/qpngio.cpp:436: parse error before `;' token
kernel/qpngio.cpp:440: `png_create_write_struct' undeclared (first use this 
   function)
kernel/qpngio.cpp:449: `png_destroy_write_struct' undeclared (first use this 
   function)
kernel/qpngio.cpp:466: `png_set_compression_level' undeclared (first use this 
   function)
kernel/qpngio.cpp:470: `png_set_gAMA' undeclared (first use this function)
kernel/qpngio.cpp:473: `png_set_write_fn' undeclared (first use this function)
kernel/qpngio.cpp:485: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use this 
   function)
kernel/qpngio.cpp:486: `PNG_COLOR_TYPE_RGB' undeclared (first use this 
   function)
kernel/qpngio.cpp:486: `png_set_IHDR' undeclared (first use this function)
kernel/qpngio.cpp:495: `png_set_packswap' undeclared (first use this function)
kernel/qpngio.cpp:497: `png_colorp' undeclared (first use this function)
kernel/qpngio.cpp:497: parse error before `=' token
kernel/qpngio.cpp:498: `png_bytep' undeclared (first use this function)
kernel/qpngio.cpp:502: `palette' undeclared (first use this function)
kernel/qpngio.cpp:502: parse error before `[' token
kernel/qpngio.cpp:503: `png_set_PLTE' undeclared (first use this function)
kernel/qpngio.cpp:519: `copy_trans' undeclared (first use this function)
kernel/qpngio.cpp:519: parse error before `[' token
kernel/qpngio.cpp:522: `png_set_tRNS' undeclared (first use this function)
kernel/qpngio.cpp:543: `PNG_OFFSET_PIXEL' undeclared (first use this function)
kernel/qpngio.cpp:543: `png_set_oFFs' undeclared (first use this function)
kernel/qpngio.cpp:547: `png_set_sig_bytes' undeclared (first use this function)
kernel/qpngio.cpp:552: `PNG_RESOLUTION_METER' undeclared (first use this 
   function)
kernel/qpngio.cpp:552: `png_set_pHYs' undeclared (first use this function)
kernel/qpngio.cpp:557: cannot pass objects of non-POD type `const class QImage'
   through `...'
kernel/qpngio.cpp:560: `png_write_info' undeclared (first use this function)
kernel/qpngio.cpp:564: cannot pass objects of non-POD type `const class QImage'
   through `...'
kernel/qpngio.cpp:580: `png_byte' undeclared (first use this function)
kernel/qpngio.cpp:580: parse error before `)' token
kernel/qpngio.cpp:588: parse error before `)' token
kernel/qpngio.cpp:591: parse error before `;' token
kernel/qpngio.cpp:599: parse error before `[' token
kernel/qpngio.cpp:604: `png_write_image' undeclared (first use this function)
kernel/qpngio.cpp:607: `png_write_end' undeclared (first use this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:816: parse error before `,' token
kernel/qpngio.cpp:817: parse error before `,' token
kernel/qpngio.cpp:819: parse error before `,' token
kernel/qpngio.cpp:833: 'png_structp' is used as a type, but is not defined as a
   type.
kernel/qpngio.cpp:834: 'png_infop' is used as a type, but is not defined as a 
   type.
kernel/qpngio.cpp:924: parse error before `,' token
kernel/qpngio.cpp: In function `void info_callback(...)':
kernel/qpngio.cpp:926: `png_get_progressive_ptr' undeclared (first use this 
   function)
kernel/qpngio.cpp:927: `info' undeclared (first use this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:931: parse error before `,' token
kernel/qpngio.cpp: In function `void row_callback(...)':
kernel/qpngio.cpp:935: `new_row' undeclared (first use this function)
kernel/qpngio.cpp:935: `row_num' undeclared (first use this function)
kernel/qpngio.cpp:935: `pass' undeclared (first use this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:939: parse error before `,' token
kernel/qpngio.cpp: In member function `virtual int QPNGFormat::decode(QImage&, 
   QImageConsumer*, const uchar*, int)':
kernel/qpngio.cpp:1022: `png_set_progressive_read_fn' undeclared (first use 
   this function)
kernel/qpngio.cpp:1049: parse error before `,' token
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:1063: `png_structp' was not declared in this scope
kernel/qpngio.cpp:1063: parse error before `,' token
kernel/qpngio.cpp: In member function `void QPNGFormat::info(...)':
kernel/qpngio.cpp:1065: `png' undeclared (first use this function)
kernel/qpngio.cpp:1065: `png_set_interlace_handling' undeclared (first use this
   function)
kernel/qpngio.cpp:1066: cannot pass objects of non-POD type `class QImage' 
   through `...'
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:1069: parse error before `,' token
kernel/qpngio.cpp: In member function `void QPNGFormat::row(...)':
kernel/qpngio.cpp:1073: `png_progressive_combine_row' undeclared (first use 
   this function)
kernel/qpngio.cpp: At global scope:
kernel/qpngio.cpp:1077: parse error before `,' token
kernel/qpngio.cpp: In member function `void QPNGFormat::end(...)':
kernel/qpngio.cpp:1079: `png_get_x_offset_pixels' undeclared (first use this 
   function)
kernel/qpngio.cpp:1080: `png_get_y_offset_pixels' undeclared (first use this 
   function)
kernel/qpngio.cpp:1090: parse error before `;' token
kernel/qpngio.cpp: In function `void qt_zlib_compression_hack()':
kernel/qpngio.cpp:1216: `compress' undeclared (first use this function)
kernel/qpngio.cpp:1217: `uncompress' undeclared (first use this function)
make[1]: *** [.obj/release-shared-mt/qpngio.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/src'
make: *** [sub-src] Error 2

!!! ERROR: x11-libs/qt-3.1.0-r1 failed.
!!! Function src_compile, Line 98, Exitcode 2
!!! (no error message)


'emerge info' reports:

Portage 2.0.46-r6 (default-x86-1.4, gcc-which: no gcc in
(/sbin:/bin:/usr/sbin:/usr/bin)
sh: line 1: -dumpversion: command not found, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Pentium III (Katmai)
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 avi gif libg++ mmx nls png qtmt quicktime xv berkdb slang readline arts
svga X sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gnome gtk kde
motif opengl ldap -3dnow acpi -alsa apm bonobo crypt cups dga encode evo gb gd
gdbm gtk2 gtkhtml guile imap java jpeg maildir mbox mikmod mozilla mpeg mysql
ncurses oss pdflib qt samba slp spell sse ssl tetex truetype wmf xml xml2 xmms zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-19 17:10:09 UTC
what does qpkg -I libpng -v return? 
do you have a /usr/include/libpng/png.h? 
does other programs also fail or only qt? 
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-01-19 18:39:32 UTC
libpng-1.2.5-r1 and libpng-1.0.15 have hit portage.  All you gotta do is emerge
rsync and emerge -u world to pull in the new libpng's.