Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with png and compiling Qt and Gtk+
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Apr 23, 2002 3:04 am    Post subject: Problems with png and compiling Qt and Gtk+ Reply with quote

Everything is working fine in my new Gentoo install, except that I can't get Qt or Gtk+ to compile. I've been using Blackbox instead of KDE or Gnome in the meantime (and quite like it) but there are a lot of apps that I can't use without having Qt or Gtk (namely Mozilla).

I've tracked it down to something with png. I've done an "emerge libpng" separately, but it didn't help. Any ideas? TIA.

Here is the problematic portion of the "emerge qt" output, followed by the "emerge gtk+" output:

Code:

kernel/qpngio.cpp:45: png.h: No such file or directory
kernel/qpngio.cpp:59: `png_structp' was not declared in this scope
kernel/qpngio.cpp:59: parse error before `,'
kernel/qpngio.cpp: In function `void iod_read_fn(...)':
kernel/qpngio.cpp:61: `png_ptr' undeclared (first use this function)
kernel/qpngio.cpp:61: (Each undeclared identifier is reported only once
kernel/qpngio.cpp:61: for each function it appears in.)
kernel/qpngio.cpp:61: implicit declaration of function `int png_get_io_ptr(...)'
kernel/qpngio.cpp:64: `length' undeclared (first use this function)
kernel/qpngio.cpp:65: `data' undeclared (first use this function)
kernel/qpngio.cpp:67: implicit declaration of function `int png_error(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:76: parse error before `,'
kernel/qpngio.cpp:90: parse error before `)'
kernel/qpngio.cpp:103: type specifier omitted for parameter
kernel/qpngio.cpp:103: parse error before `,'
kernel/qpngio.cpp: In function `void setup_qt(...)':
kernel/qpngio.cpp:105: `screen_gamma' undeclared (first use this function)
kernel/qpngio.cpp:105: `info_ptr' undeclared (first use this function)
kernel/qpngio.cpp:105: `PNG_INFO_gAMA' undeclared (first use this function)
kernel/qpngio.cpp:105: implicit declaration of function `int png_get_valid(...)'
kernel/qpngio.cpp:107: implicit declaration of function `int png_get_gAMA(...)'
kernel/qpngio.cpp:108: implicit declaration of function `int png_set_gamma(...)'
kernel/qpngio.cpp:111: `png_uint_32' undeclared (first use this function)
kernel/qpngio.cpp:111: parse error before `;'
kernel/qpngio.cpp:115: `width' undeclared (first use this function)
kernel/qpngio.cpp:115: `height' undeclared (first use this function)
kernel/qpngio.cpp:116: implicit declaration of function `int png_get_IHDR(...)'
kernel/qpngio.cpp:118: `PNG_COLOR_TYPE_GRAY' undeclared (first use this function)
kernel/qpngio.cpp:121: implicit declaration of function `int png_set_invert_mono(...)'
kernel/qpngio.cpp:122: implicit declaration of function `int png_read_update_info(...)'
kernel/qpngio.cpp:123: `image' undeclared (first use this function)
kernel/qpngio.cpp:128: implicit declaration of function `int png_set_strip_16(...)'
kernel/qpngio.cpp:130: implicit declaration of function `int png_set_packing(...)'
kernel/qpngio.cpp:138: `PNG_INFO_tRNS' undeclared (first use this function)
kernel/qpngio.cpp:149: `PNG_COLOR_TYPE_PALETTE' undeclared (first use this function)
kernel/qpngio.cpp:149: `PNG_INFO_PLTE' undeclared (first use this function)
kernel/qpngio.cpp:189: implicit declaration of function `int png_set_expand(...)'
kernel/qpngio.cpp:191: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use this function)
kernel/qpngio.cpp:192: implicit declaration of function `int png_set_gray_to_rgb(...)'
kernel/qpngio.cpp:197: `PNG_COLOR_MASK_ALPHA' undeclared (first use this function)
kernel/qpngio.cpp:201: `PNG_FILLER_BEFORE' undeclared (first use this function)
kernel/qpngio.cpp:201: `PNG_FILLER_AFTER' undeclared (first use this function)
kernel/qpngio.cpp:201: implicit declaration of function `int png_set_filler(...)'
kernel/qpngio.cpp:208: implicit declaration of function `int png_set_swap_alpha(...)'
kernel/qpngio.cpp:216: implicit declaration of function `int png_set_bgr(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:224: `png_structp' was not declared in this scope
kernel/qpngio.cpp:224: `png_const_charp' was not declared in this scope
kernel/qpngio.cpp:224: parse error before `)'
kernel/qpngio.cpp: In function `void qt_png_warning(...)':
kernel/qpngio.cpp:226: `message' undeclared (first use this function)
kernel/qpngio.cpp: In function `void read_png_image(QImageIO *)':
kernel/qpngio.cpp:237: parse error before `;'
kernel/qpngio.cpp:239: `png_infop' undeclared (first use this function)
kernel/qpngio.cpp:240: `png_bytep' undeclared (first use this function)
kernel/qpngio.cpp:240: `row_pointers' undeclared (first use this function)
kernel/qpngio.cpp:242: `PNG_LIBPNG_VER_STRING' undeclared (first use this function)
kernel/qpngio.cpp:242: implicit declaration of function `int png_create_read_struct(...)'
kernel/qpngio.cpp:248: implicit declaration of function `int png_set_error_fn(...)'
kernel/qpngio.cpp:250: implicit declaration of function `int png_create_info_struct(...)'
kernel/qpngio.cpp:252: implicit declaration of function `int png_destroy_read_struct(...)'
kernel/qpngio.cpp:257: `end_info' undeclared (first use this function)
kernel/qpngio.cpp:264: implicit declaration of function `int setjmp(...)'
kernel/qpngio.cpp:270: implicit declaration of function `int png_set_read_fn(...)'
kernel/qpngio.cpp:271: implicit declaration of function `int png_read_info(...)'
kernel/qpngio.cpp:274: warning: cannot pass objects of type `QImage' through `...'
kernel/qpngio.cpp:277: parse error before `;'
kernel/qpngio.cpp:285: parse error before `['
kernel/qpngio.cpp:291: implicit declaration of function `int png_read_image(...)'
kernel/qpngio.cpp:311: implicit declaration of function `int png_get_x_pixels_per_meter(...)'
kernel/qpngio.cpp:312: implicit declaration of function `int png_get_y_pixels_per_meter(...)'
kernel/qpngio.cpp:318: implicit declaration of function `int png_read_end(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:360: type specifier omitted for parameter
kernel/qpngio.cpp:360: parse error before `,'
kernel/qpngio.cpp: In function `void set_text(...)':
kernel/qpngio.cpp:364: `png_textp' undeclared (first use this function)
kernel/qpngio.cpp:364: parse error before `='
kernel/qpngio.cpp:370: `short_not_long' undeclared (first use this function)
kernel/qpngio.cpp:372: `text_ptr' undeclared (first use this function)
kernel/qpngio.cpp:372: `PNG_TEXT_COMPRESSION_NONE' undeclared (first use this function)
kernel/qpngio.cpp:374: `PNG_TEXT_COMPRESSION_zTXt' undeclared (first use this function)
kernel/qpngio.cpp:375: `png_charp' undeclared (first use this function)
kernel/qpngio.cpp:376: parse error before `.'
kernel/qpngio.cpp:381: implicit declaration of function `int png_set_text(...)'
kernel/qpngio.cpp: In method `bool QPNGImageWriter::writeImage(const QImage &, int, int, int)':
kernel/qpngio.cpp:400: parse error before `;'
kernel/qpngio.cpp:404: implicit declaration of function `int png_create_write_struct(...)'
kernel/qpngio.cpp:413: implicit declaration of function `int png_destroy_write_struct(...)'
kernel/qpngio.cpp:429: implicit declaration of function `int png_set_compression_level(...)'
kernel/qpngio.cpp:433: implicit declaration of function `int png_set_gAMA(...)'
kernel/qpngio.cpp:436: implicit declaration of function `int png_set_write_fn(...)'
kernel/qpngio.cpp:448: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use this function)
kernel/qpngio.cpp:449: `PNG_COLOR_TYPE_RGB' undeclared (first use this function)
kernel/qpngio.cpp:449: implicit declaration of function `int png_set_IHDR(...)'
kernel/qpngio.cpp:458: implicit declaration of function `int png_set_packswap(...)'
kernel/qpngio.cpp:460: `png_colorp' undeclared (first use this function)
kernel/qpngio.cpp:460: parse error before `='
kernel/qpngio.cpp:461: `png_bytep' undeclared (first use this function)
kernel/qpngio.cpp:465: `palette' undeclared (first use this function)
kernel/qpngio.cpp:465: parse error before `['
kernel/qpngio.cpp:466: implicit declaration of function `int png_set_PLTE(...)'
kernel/qpngio.cpp:482: `copy_trans' undeclared (first use this function)
kernel/qpngio.cpp:482: parse error before `['
kernel/qpngio.cpp:485: implicit declaration of function `int png_set_tRNS(...)'
kernel/qpngio.cpp:506: `PNG_OFFSET_PIXEL' undeclared (first use this function)
kernel/qpngio.cpp:506: implicit declaration of function `int png_set_oFFs(...)'
kernel/qpngio.cpp:510: implicit declaration of function `int png_set_sig_bytes(...)'
kernel/qpngio.cpp:515: `PNG_RESOLUTION_METER' undeclared (first use this function)
kernel/qpngio.cpp:515: implicit declaration of function `int png_set_pHYs(...)'
kernel/qpngio.cpp:520: warning: cannot pass objects of type `const QImage' through `...'
kernel/qpngio.cpp:523: implicit declaration of function `int png_write_info(...)'
kernel/qpngio.cpp:527: warning: cannot pass objects of type `const QImage' through `...'
kernel/qpngio.cpp:543: `png_byte' undeclared (first use this function)
kernel/qpngio.cpp:543: parse error before `)'
kernel/qpngio.cpp:551: parse error before `)'
kernel/qpngio.cpp:554: parse error before `;'
kernel/qpngio.cpp:562: parse error before `['
kernel/qpngio.cpp:567: implicit declaration of function `int png_write_image(...)'
kernel/qpngio.cpp:570: implicit declaration of function `int png_write_end(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:776: parse error before `,'
kernel/qpngio.cpp:777: parse error before `,'
kernel/qpngio.cpp:779: parse error before `,'
kernel/qpngio.cpp:793: syntax error before `;'
kernel/qpngio.cpp:794: syntax error before `;'
kernel/qpngio.cpp:884: parse error before `,'
kernel/qpngio.cpp: In function `void info_callback(...)':
kernel/qpngio.cpp:886: implicit declaration of function `int png_get_progressive_ptr(...)'
kernel/qpngio.cpp:887: `info' undeclared (first use this function)
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:891: parse error before `,'
kernel/qpngio.cpp: In function `void row_callback(...)':
kernel/qpngio.cpp:895: `new_row' undeclared (first use this function)
kernel/qpngio.cpp:895: `row_num' undeclared (first use this function)
kernel/qpngio.cpp:895: `pass' undeclared (first use this function)
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:899: parse error before `,'
kernel/qpngio.cpp: In method `int QPNGFormat::decode(QImage &, QImageConsumer *, const uchar *, int)':
kernel/qpngio.cpp:980: implicit declaration of function `int png_set_progressive_read_fn(...)'
kernel/qpngio.cpp:1004: parse error before `,'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:1018: `png_structp' was not declared in this scope
kernel/qpngio.cpp:1018: parse error before `,'
kernel/qpngio.cpp: In method `void QPNGFormat::info(...)':
kernel/qpngio.cpp:1020: `png' undeclared (first use this function)
kernel/qpngio.cpp:1020: implicit declaration of function `int png_set_interlace_handling(...)'
kernel/qpngio.cpp:1021: warning: cannot pass objects of type `QImage' through `...'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:1024: parse error before `,'
kernel/qpngio.cpp: In method `void QPNGFormat::row(...)':
kernel/qpngio.cpp:1028: implicit declaration of function `int png_progressive_combine_row(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:1032: parse error before `,'
kernel/qpngio.cpp: In method `void QPNGFormat::end(...)':
kernel/qpngio.cpp:1034: implicit declaration of function `int png_get_x_offset_pixels(...)'
kernel/qpngio.cpp:1035: implicit declaration of function `int png_get_y_offset_pixels(...)'
kernel/qpngio.cpp:1045: parse error before `;'
kernel/qpngio.cpp:1047: implicit declaration of function `int png_get_text(...)'
kernel/qpngio.cpp: In function `void qt_zlib_compression_hack()':
kernel/qpngio.cpp:1158: implicit declaration of function `int compress(...)'
kernel/qpngio.cpp:1159: implicit declaration of function `int uncompress(...)'
make[1]: *** [.obj/release-mt/qpngio.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/qt-3.0.3-r1/work/qt-x11-free-3.0.3/src'
make: *** [sub-src] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 21, Exitcode 2
!!! (no error message)

 ...done!
>>> emerge x11-libs/qt-3.0.3-r1 to /
>>> md5 ;-) qt-x11-free-3.0.3.tar.gz
!!! emerge aborting on  /usr/portage/x11-libs/qt/qt-3.0.3-r1.ebuild .










Here is the problematic portion of "emerge gtk+" :

Code:

io-png.c:29: png.h: No such file or directory
io-png.c:36: parse error before `png_read_ptr'
io-png.c: In function `setup_png_transformations':
io-png.c:41: `png_uint_32' undeclared (first use in this function)
io-png.c:41: (Each undeclared identifier is reported only once
io-png.c:41: for each function it appears in.)
io-png.c:41: parse error before `width'
io-png.c:50: warning: implicit declaration of function `png_get_bit_depth'
io-png.c:50: `png_read_ptr' undeclared (first use in this function)
io-png.c:50: `png_info_ptr' undeclared (first use in this function)
io-png.c:52: `error' undeclared (first use in this function)
io-png.c:58: warning: implicit declaration of function `png_get_IHDR'
io-png.c:59: `width' undeclared (first use in this function)
io-png.c:59: `height' undeclared (first use in this function)
io-png.c:69: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
io-png.c:73: warning: implicit declaration of function `png_set_expand'
io-png.c:75: `PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
io-png.c:81: warning: implicit declaration of function `png_get_valid'
io-png.c:82: `PNG_INFO_tRNS' undeclared (first use in this function)
io-png.c:101: warning: implicit declaration of function `png_set_strip_16'
io-png.c:106: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use in this function)
io-png.c:107: warning: implicit declaration of function `png_set_gray_to_rgb'
io-png.c:111: `PNG_INTERLACE_NONE' undeclared (first use in this function)
io-png.c:112: warning: implicit declaration of function `png_set_interlace_handling'
io-png.c:116: warning: implicit declaration of function `png_read_update_info'
io-png.c:126: `width_p' undeclared (first use in this function)
io-png.c:127: `height_p' undeclared (first use in this function)
io-png.c:128: `color_type_p' undeclared (first use in this function)
io-png.c:148: `PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
io-png.c:149: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
io-png.c:157: warning: implicit declaration of function `png_get_channels'
io-png.c: At top level:
io-png.c:169: parse error before `png_save_ptr'
io-png.c: In function `png_simple_error_callback':
io-png.c:174: warning: implicit declaration of function `png_get_error_ptr'
io-png.c:174: `png_save_ptr' undeclared (first use in this function)
io-png.c:174: warning: assignment makes pointer from integer without a cast
io-png.c:184: `error_msg' undeclared (first use in this function)
io-png.c:187: warning: implicit declaration of function `longjmp'
io-png.c: At top level:
io-png.c:191: parse error before `png_save_ptr'
io-png.c:210: parse error before `text_ptr'
io-png.c: In function `png_text_to_pixbuf_option':
io-png.c:214: `value' undeclared (first use in this function)
io-png.c:214: `text_ptr' undeclared (first use in this function)
io-png.c:218: `key' undeclared (first use in this function)
io-png.c: At top level:
io-png.c:228: parse error before `png_malloc_callback'
io-png.c:228: parse error before `o'
io-png.c:229: warning: return-type defaults to `int'
io-png.c: In function `png_malloc_callback':
io-png.c:230: `size' undeclared (first use in this function)
io-png.c:230: warning: return makes integer from pointer without a cast
io-png.c: At top level:
io-png.c:234: parse error before `o'
io-png.c: In function `png_free_callback':
io-png.c:236: `x' undeclared (first use in this function)
io-png.c: In function `gdk_pixbuf__png_image_load':
io-png.c:244: `png_structp' undeclared (first use in this function)
io-png.c:244: parse error before `png_ptr'
io-png.c:245: `png_infop' undeclared (first use in this function)
io-png.c:246: `png_textp' undeclared (first use in this function)
io-png.c:248: `png_uint_32' undeclared (first use in this function)
io-png.c:248: parse error before `w'
io-png.c:249: `png_bytepp' undeclared (first use in this function)
io-png.c:263: `png_ptr' undeclared (first use in this function)
io-png.c:263: warning: implicit declaration of function `png_create_read_struct'
io-png.c:263: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
io-png.c:271: `info_ptr' undeclared (first use in this function)
io-png.c:271: warning: implicit declaration of function `png_create_info_struct'
io-png.c:273: warning: implicit declaration of function `png_destroy_read_struct'
io-png.c:277: warning: implicit declaration of function `setjmp'
io-png.c:278: `rows' undeclared (first use in this function)
io-png.c:288: warning: implicit declaration of function `png_init_io'
io-png.c:289: warning: implicit declaration of function `png_read_info'
io-png.c:291: `w' undeclared (first use in this function)
io-png.c:291: `h' undeclared (first use in this function)
io-png.c:296: `PNG_COLOR_MASK_ALPHA' undeclared (first use in this function)
io-png.c:317: `png_bytep' undeclared (first use in this function)
io-png.c:317: parse error before `)'
io-png.c:322: warning: implicit declaration of function `png_read_image'
io-png.c:323: warning: implicit declaration of function `png_read_end'
io-png.c:325: warning: implicit declaration of function `png_get_text'
io-png.c:325: `text_ptr' undeclared (first use in this function)
io-png.c: At top level:
io-png.c:364: parse error before `png_read_ptr'
io-png.c:367: parse error before `png_read_ptr'
io-png.c:371: parse error before `png_read_ptr'
io-png.c:376: parse error before `png_read_ptr'
io-png.c:382: parse error before `png_read_ptr'
io-png.c:388: parse error before `png_structp'
io-png.c:388: warning: no semicolon at end of struct or union
io-png.c:389: warning: type defaults to `int' in declaration of `png_info_ptr'
io-png.c:389: `png_info_ptr' used prior to declaration
io-png.c:389: warning: data definition has no type or storage class
io-png.c:413: parse error before `:'
io-png.c:415: `error' used prior to declaration
io-png.c:416: parse error before `}'
io-png.c: In function `gdk_pixbuf__png_image_begin_load':
io-png.c:426: sizeof applied to an incomplete type
io-png.c:428: dereferencing pointer to incomplete type
io-png.c:430: dereferencing pointer to incomplete type
io-png.c:431: dereferencing pointer to incomplete type
io-png.c:432: dereferencing pointer to incomplete type
io-png.c:434: dereferencing pointer to incomplete type
io-png.c:435: dereferencing pointer to incomplete type
io-png.c:436: dereferencing pointer to incomplete type
io-png.c:437: dereferencing pointer to incomplete type
io-png.c:438: dereferencing pointer to incomplete type
io-png.c:439: dereferencing pointer to incomplete type
io-png.c:452: dereferencing pointer to incomplete type
io-png.c:452: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
io-png.c:457: dereferencing pointer to incomplete type
io-png.c:463: dereferencing pointer to incomplete type
io-png.c:464: dereferencing pointer to incomplete type
io-png.c:465: dereferencing pointer to incomplete type
io-png.c:473: dereferencing pointer to incomplete type
io-png.c:473: dereferencing pointer to incomplete type
io-png.c:475: dereferencing pointer to incomplete type
io-png.c:476: dereferencing pointer to incomplete type
io-png.c:482: warning: implicit declaration of function `png_set_progressive_read_fn'
io-png.c:482: dereferencing pointer to incomplete type
io-png.c:492: dereferencing pointer to incomplete type
io-png.c: In function `gdk_pixbuf__png_image_stop_load':
io-png.c:508: dereferencing pointer to incomplete type
io-png.c:509: dereferencing pointer to incomplete type
io-png.c:511: dereferencing pointer to incomplete type
io-png.c:511: dereferencing pointer to incomplete type
io-png.c: In function `gdk_pixbuf__png_image_load_increment':
io-png.c:527: dereferencing pointer to incomplete type
io-png.c:528: dereferencing pointer to incomplete type
io-png.c:529: dereferencing pointer to incomplete type
io-png.c:530: dereferencing pointer to incomplete type
io-png.c:531: dereferencing pointer to incomplete type
io-png.c:532: dereferencing pointer to incomplete type
io-png.c:535: dereferencing pointer to incomplete type
io-png.c:536: dereferencing pointer to incomplete type
io-png.c:539: warning: implicit declaration of function `png_process_data'
io-png.c:539: dereferencing pointer to incomplete type
io-png.c:539: dereferencing pointer to incomplete type
io-png.c:543: dereferencing pointer to incomplete type
io-png.c:544: dereferencing pointer to incomplete type
io-png.c:547: dereferencing pointer to incomplete type
io-png.c:549: dereferencing pointer to incomplete type
io-png.c:549: dereferencing pointer to incomplete type
io-png.c:555: dereferencing pointer to incomplete type
io-png.c:555: dereferencing pointer to incomplete type
io-png.c:556: dereferencing pointer to incomplete type
io-png.c:557: dereferencing pointer to incomplete type
io-png.c:558: dereferencing pointer to incomplete type
io-png.c:559: dereferencing pointer to incomplete type
io-png.c:560: dereferencing pointer to incomplete type
io-png.c:567: dereferencing pointer to incomplete type
io-png.c:567: dereferencing pointer to incomplete type
io-png.c:568: dereferencing pointer to incomplete type
io-png.c:569: dereferencing pointer to incomplete type
io-png.c:570: dereferencing pointer to incomplete type
io-png.c:571: dereferencing pointer to incomplete type
io-png.c:572: dereferencing pointer to incomplete type
io-png.c:574: dereferencing pointer to incomplete type
io-png.c:574: dereferencing pointer to incomplete type
io-png.c:576: dereferencing pointer to incomplete type
io-png.c:577: dereferencing pointer to incomplete type
io-png.c:578: dereferencing pointer to incomplete type
io-png.c:582: dereferencing pointer to incomplete type
io-png.c:582: dereferencing pointer to incomplete type
io-png.c:584: dereferencing pointer to incomplete type
io-png.c:585: dereferencing pointer to incomplete type
io-png.c:586: dereferencing pointer to incomplete type
io-png.c:590: dereferencing pointer to incomplete type
io-png.c: At top level:
io-png.c:598: parse error before `png_read_ptr'
io-png.c: In function `png_info_callback':
io-png.c:602: `png_uint_32' undeclared (first use in this function)
io-png.c:602: parse error before `width'
io-png.c:603: `png_textp' undeclared (first use in this function)
io-png.c:608: warning: implicit declaration of function `png_get_progressive_ptr'
io-png.c:608: `png_read_ptr' undeclared (first use in this function)
io-png.c:608: warning: assignment makes pointer from integer without a cast
io-png.c:610: dereferencing pointer to incomplete type
io-png.c:613: dereferencing pointer to incomplete type
io-png.c:614: dereferencing pointer to incomplete type
io-png.c:615: dereferencing pointer to incomplete type
io-png.c:616: `width' undeclared (first use in this function)
io-png.c:616: `height' undeclared (first use in this function)
io-png.c:617: dereferencing pointer to incomplete type
io-png.c:622: `PNG_COLOR_MASK_ALPHA' undeclared (first use in this function)
io-png.c:625: dereferencing pointer to incomplete type
io-png.c:627: dereferencing pointer to incomplete type
io-png.c:629: dereferencing pointer to incomplete type
io-png.c:630: dereferencing pointer to incomplete type
io-png.c:630: dereferencing pointer to incomplete type
io-png.c:631: dereferencing pointer to incomplete type
io-png.c:642: `png_text_ptr' undeclared (first use in this function)
io-png.c:648: dereferencing pointer to incomplete type
io-png.c:657: dereferencing pointer to incomplete type
io-png.c:658: dereferencing pointer to incomplete type
io-png.c:658: dereferencing pointer to incomplete type
io-png.c:658: dereferencing pointer to incomplete type
io-png.c: At top level:
io-png.c:666: parse error before `png_read_ptr'
io-png.c: In function `png_row_callback':
io-png.c:674: `png_read_ptr' undeclared (first use in this function)
io-png.c:674: warning: assignment makes pointer from integer without a cast
io-png.c:676: dereferencing pointer to incomplete type
io-png.c:679: `row_num' undeclared (first use in this function)
io-png.c:679: dereferencing pointer to incomplete type
io-png.c:680: dereferencing pointer to incomplete type
io-png.c:681: dereferencing pointer to incomplete type
io-png.c:681: dereferencing pointer to incomplete type
io-png.c:682: dereferencing pointer to incomplete type
io-png.c:690: dereferencing pointer to incomplete type
io-png.c:691: dereferencing pointer to incomplete type
io-png.c:692: dereferencing pointer to incomplete type
io-png.c:692: `pass_num' undeclared (first use in this function)
io-png.c:695: dereferencing pointer to incomplete type
io-png.c:695: dereferencing pointer to incomplete type
io-png.c:695: dereferencing pointer to incomplete type
io-png.c:696: dereferencing pointer to incomplete type
io-png.c:697: dereferencing pointer to incomplete type
io-png.c:699: dereferencing pointer to incomplete type
io-png.c:699: dereferencing pointer to incomplete type
io-png.c:701: warning: implicit declaration of function `png_progressive_combine_row'
io-png.c:701: dereferencing pointer to incomplete type
io-png.c:701: `new_row' undeclared (first use in this function)
io-png.c: At top level:
io-png.c:706: parse error before `png_read_ptr'
io-png.c: In function `png_end_callback':
io-png.c:711: `png_read_ptr' undeclared (first use in this function)
io-png.c:711: warning: assignment makes pointer from integer without a cast
io-png.c:713: dereferencing pointer to incomplete type
io-png.c: At top level:
io-png.c:718: parse error before `png_read_ptr'
io-png.c: In function `png_error_callback':
io-png.c:723: `png_read_ptr' undeclared (first use in this function)
io-png.c:723: warning: assignment makes pointer from integer without a cast
io-png.c:725: dereferencing pointer to incomplete type
io-png.c:730: dereferencing pointer to incomplete type
io-png.c:730: dereferencing pointer to incomplete type
io-png.c:731: dereferencing pointer to incomplete type
io-png.c:735: `error_msg' undeclared (first use in this function)
io-png.c: At top level:
io-png.c:742: parse error before `png_read_ptr'
io-png.c: In function `png_warning_callback':
io-png.c:747: `png_read_ptr' undeclared (first use in this function)
io-png.c:747: warning: assignment makes pointer from integer without a cast
io-png.c: In function `gdk_pixbuf__png_image_save':
io-png.c:767: `png_structp' undeclared (first use in this function)
io-png.c:767: parse error before `png_ptr'
io-png.c:768: `png_infop' undeclared (first use in this function)
io-png.c:769: `png_textp' undeclared (first use in this function)
io-png.c:774: `png_bytep' undeclared (first use in this function)
io-png.c:774: parse error before `row_ptr'
io-png.c:775: `png_color_8' undeclared (first use in this function)
io-png.c:790: warning: implicit declaration of function `strncmp'
io-png.c:817: `text_ptr' undeclared (first use in this function)
io-png.c:817: `png_text' undeclared (first use in this function)
io-png.c:817: parse error before `)'
io-png.c:819: `PNG_TEXT_COMPRESSION_NONE' undeclared (first use in this function)
io-png.c:846: `png_ptr' undeclared (first use in this function)
io-png.c:846: warning: implicit declaration of function `png_create_write_struct'
io-png.c:846: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
io-png.c:853: `info_ptr' undeclared (first use in this function)
io-png.c:864: warning: implicit declaration of function `png_set_text'
io-png.c:870: warning: implicit declaration of function `png_set_IHDR'
io-png.c:871: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
io-png.c:871: `PNG_INTERLACE_NONE' undeclared (first use in this function)
io-png.c:872: `PNG_COMPRESSION_TYPE_BASE' undeclared (first use in this function)
io-png.c:872: `PNG_FILTER_TYPE_BASE' undeclared (first use in this function)
io-png.c:875: `PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
io-png.c:878: `sig_bit' undeclared (first use in this function)
io-png.c:882: warning: implicit declaration of function `png_set_sBIT'
io-png.c:883: warning: implicit declaration of function `png_write_info'
io-png.c:884: warning: implicit declaration of function `png_set_shift'
io-png.c:885: warning: implicit declaration of function `png_set_packing'
io-png.c:889: `row_ptr' undeclared (first use in this function)
io-png.c:889: parse error before `ptr'
io-png.c:890: warning: implicit declaration of function `png_write_rows'
io-png.c:894: warning: implicit declaration of function `png_write_end'
io-png.c:897: warning: implicit declaration of function `png_destroy_write_struct'
io-png.c:897: `png_infopp' undeclared (first use in this function)
make[3]: *** [io-png.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtk+-2.0.2-r1/work/gtk+-2.0.2/gdk-pixbuf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gtk+-2.0.2-r1/work/gtk+-2.0.2/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-2.0.2-r1/work/gtk+-2.0.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 13, Exitcode 2
!!! (no error message)

 ...done!
>>> emerge x11-libs/gtk+-2.0.2-r1 to /
>>> md5 ;-) gtk+-2.0.2.tar.bz2
!!! emerge aborting on  /usr/portage/x11-libs/gtk+/gtk+-2.0.2-r1.ebuild .
Back to top
tucu
n00b
n00b


Joined: 19 Apr 2002
Posts: 2

PostPosted: Thu May 02, 2002 5:14 am    Post subject: Reply with quote

Hi,
I had the same problem with Qt 3.0.3.1. The cause of the problem is the version of libpng. Qt needs 1.0.12 and gentoo installs 1.2.1 or 1.2.2. I solved the problem by modifying the ebuild to tell Qt to use the libpng that comes in the qt tarball (removed one line in the DEPEND variable and deleted the -system-libpng parameter to the configure script. It is working fine so far.

Diego
Back to top
View user's profile Send private message
STiAT
Guest





PostPosted: Thu May 02, 2002 5:45 am    Post subject: Reply with quote

I currently have the same problem. KDE don't wants to install, because QT emerge fails with the same errors.

But you really think that is thing is caused by the libpng? that looks like a syntax error in source code...

May anyone fix this major error in the portage-system? I am too new to gentoo to do that. Coming over from RedHat, so it's a hard time to get everything running on gentoo :)
Back to top
tucu
n00b
n00b


Joined: 19 Apr 2002
Posts: 2

PostPosted: Thu May 02, 2002 1:44 pm    Post subject: Reply with quote

I'm pretty sure about this. The system is working now. Also,
check the first line in the errors messages for Qt and Gtk+
"kernel/qpngio.cpp:45: png.h: No such file or directory"
and
"io-png.c:29: png.h: No such file or directory"

Diego
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum