Bug 14756 - Error compiling from trunk on Fedora core 19
Summary: Error compiling from trunk on Fedora core 19
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-14 14:55 UTC by Justin Dearing
Modified: 2013-09-15 13:05 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 14756 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Justin Dearing 2013-09-14 14:55:34 UTC
I created a fresh install of fedora core 19 yesterday, and ran yum update. I did not install anything else, or use any third party yum repos (e.g. rpmforge). I checked ou he trunk of libgdiplus. I get the following error in the make stage. I tried the following two configure options (and did a git clean after each)

./autogen --prefix=/opt/mono-head
./configure --prefix=/opt/mono-head

The folder /opt does not yet exists, I let "sudo make install" make it


mv -f .deps/jpegcodec.Tpo .deps/jpegcodec.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I../pixman/pixman -I../pixman/pixm  an -I../cairo/src -I../cairo/src    -I/usr/include/freetype2      -Wall -Wno-unused -Wno-format    -g -O2 -pthread -MT pngcodec.lo -MD -MP -MF .deps/pngcodec.Tpo -c -  o pngcodec.lo pngcodec.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../pixman/pixman -I../pixman/pixman -I../cairo/src -I../cairo/  src -I/usr/include/freetype2 -Wall -Wno-unused -Wno-format -g -O2 -pthread -MT pngcodec.lo -MD -MP -MF .deps/pngcodec.Tpo -c pngcodec.c  -fPIC -DPIC -o .libs/pngcodec  .o
pngcodec.c: In function 'gdip_load_png_properties':
pngcodec.c:119:15: error: dereferencing pointer to incomplete type
  if ((info_ptr->valid & PNG_INFO_pHYs) && (info_ptr->phys_unit_type == PNG_RESOLUTION_METER)) {
               ^
pngcodec.c:119:45: error: dereferencing pointer to incomplete type
  if ((info_ptr->valid & PNG_INFO_pHYs) && (info_ptr->phys_unit_type == PNG_RESOLUTION_METER)) {
                                             ^
pngcodec.c:121:35: error: dereferencing pointer to incomplete type
   bitmap_data->dpi_horz = info_ptr->x_pixels_per_unit * 0.0254;
                                   ^
pngcodec.c:122:35: error: dereferencing pointer to incomplete type
   bitmap_data->dpi_vert = info_ptr->y_pixels_per_unit * 0.0254;
                                   ^
pngcodec.c:137:3: warning: passing argument 5 of 'png_get_iCCP' from incompatible pointer type [enabled by default]
   if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, &profile, &proflen)) {
   ^
In file included from pngcodec.c:37:0:
/usr/include/png.h:2248:22: note: expected 'png_bytepp' but argument is of type 'char **'
 PNG_EXPORT(158, png_uint_32, png_get_iCCP,
                      ^
pngcodec.c: In function 'gdip_load_png_image_from_file_or_stream':
pngcodec.c:324:34: error: dereferencing pointer to incomplete type
    if (palette_entries > info_ptr->num_palette) {
                                  ^
pngcodec.c:325:31: error: dereferencing pointer to incomplete type
     palette_entries = info_ptr->num_palette;
                               ^
pngcodec.c:333:65: error: dereferencing pointer to incomplete type
     set_pixel_bgra (&palette->Entries[i], 0,
                                                                 ^
pngcodec.c:333:142: error: dereferencing pointer to incomplete type
     set_pixel_bgra (&palette->Entries[i], 0,
                                                                                                                                              ^
pngcodec.c:333:220: error: dereferencing pointer to incomplete type
     set_pixel_bgra (&palette->Entries[i], 0,
                                                                                                                                                                                                                              ^
pngcodec.c:342:15: error: dereferencing pointer to incomplete type
   if (info_ptr->num_trans > 0) {
               ^
pngcodec.c:346:16: error: dereferencing pointer to incomplete type
    if (info_ptr->num_trans > info_ptr->num_palette) {
                ^
pngcodec.c:346:38: error: dereferencing pointer to incomplete type
    if (info_ptr->num_trans > info_ptr->num_palette) {
                                      ^
pngcodec.c:347:13: error: dereferencing pointer to incomplete type
     info_ptr->num_trans = info_ptr->num_palette;
             ^
pngcodec.c:347:35: error: dereferencing pointer to incomplete type
     info_ptr->num_trans = info_ptr->num_palette;
                                   ^
pngcodec.c:350:26: error: dereferencing pointer to incomplete type
    for (i=0; i < info_ptr->num_trans; i++) {
                          ^
pngcodec.c:351:65: error: dereferencing pointer to incomplete type
     set_pixel_bgra(&palette->Entries[i], 0,
                                                                 ^
pngcodec.c:351:142: error: dereferencing pointer to incomplete type
     set_pixel_bgra(&palette->Entries[i], 0,
                                                                                                                                              ^
pngcodec.c:351:220: error: dereferencing pointer to incomplete type
     set_pixel_bgra(&palette->Entries[i], 0,
                                                                                                                                                                                                                              ^
pngcodec.c:351:296: error: dereferencing pointer to incomplete type
     set_pixel_bgra(&palette->Entries[i], 0,
                                                                                                                                                                                                                                                                                                          ^
pngcodec.c:488:54: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 0,
                                                      ^
pngcodec.c:488:123: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 0,
                                                                                                                           ^
pngcodec.c:488:193: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 0,
                                                                                                                                                                                                   ^
pngcodec.c:495:54: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 4,
                                                      ^
pngcodec.c:495:123: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 4,
                                                                                                                           ^
pngcodec.c:495:193: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 4,
                                                                                                                                                                                                   ^
pngcodec.c:502:54: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 8,
                                                      ^
pngcodec.c:502:123: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 8,
                                                                                                                           ^
pngcodec.c:502:193: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 8,
                                                                                                                                                                                                   ^
pngcodec.c:509:55: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 12,
                                                       ^
pngcodec.c:509:125: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 12,
                                                                                                                             ^
pngcodec.c:509:196: error: dereferencing pointer to incomplete type
        set_pixel_bgra (rawptr, 12,
                                                                                                                                                                                                      ^
make[2]: *** [pngcodec.lo] Error 1
make[2]: Leaving directory `/home/mono/src/libgdiplus/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mono/src/libgdiplus'
make: *** [all] Error 2
[mono@localhost libgdiplus]$
Comment 1 Jason Ausborn 2013-09-15 12:34:44 UTC
See bug 1623 it may be related.
Comment 2 Jason Ausborn 2013-09-15 12:35:08 UTC
Sorry, meant bug 1632.
Comment 3 Justin Dearing 2013-09-15 13:05:34 UTC
Very likely. I discovered I had the same issue, as I pointed out on the mailing list today.