Opened 19 years ago

Closed 19 years ago

#4939 closed defect (invalid)

BUG: pdflib does not build on upgrade

Reported by: kyle-opendarwinbugzilla@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: markd@…
Port:

Description

It generates the following error:

---> Fetching pdflib ---> Verifying checksum(s) for pdflib ---> Extracting pdflib ---> Applying patches to pdflib ---> Configuring pdflib ---> Building pdflib with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_print_pdflib/work/ PDFlib-Lite-6.0.2" && make all" returned error 2 Command output: p_tiff.c: In function 'pdf_data_source_TIFF_fill': p_tiff.c:179: error: dereferencing pointer to incomplete type p_tiff.c: In function 'pdf_is_TIFF_file': p_tiff.c:287: warning: assignment makes pointer from integer without a cast p_tiff.c: In function 'pdf_process_TIFF_data': p_tiff.c:324: error: dereferencing pointer to incomplete type p_tiff.c:444: error: dereferencing pointer to incomplete type make[2]: [p_tiff.lo] Error 1 (ignored) ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg p_truetype.c ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg p_type1.c ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg p_type3.c ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg p_util.c ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg p_xgstate.c ../../libtool --silent --mode=link gcc -o ../../libs/pdflib/libpdf_.la ./p_actions.lo ./p_afm.lo ./ p_annots.lo ./p_block.lo ./p_bmp.lo ./p_ccitt.lo ./p_cid.lo ./p_color.lo ./p_document.lo ./p_draw.lo ./ p_encoding.lo ./p_fields.lo ./p_filter.lo ./p_font.lo ./p_gif.lo ./p_gstate.lo ./p_hostfont.lo ./p_hyper.lo ./ p_icc.lo ./p_icclib.lo ./p_image.lo ./p_jpeg.lo ./p_jpx.lo ./p_kerning.lo ./p_layer.lo ./p_object.lo ./ p_opi.lo ./p_page.lo ./p_params.lo ./p_pattern.lo ./p_pdi.lo ./p_pfm.lo ./p_png.lo ./p_resource.lo ./ p_shading.lo ./p_subsett.lo ./p_tagged.lo ./p_template.lo ./p_text.lo ./p_textflow.lo ./p_tiff.lo ./ p_truetype.lo ./p_type1.lo ./p_type3.lo ./p_util.lo ./p_xgstate.lo ar: ./p_tiff.lo: Too many levels of symbolic links make[2]: libs/pdflib/libpdf_.la Error 1 (ignored) ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg pdflib.c ../../libtool --silent --mode=link gcc -L/opt/local/lib -o libpdf.la -rpath /opt/local/lib -version-info 5:1:0 ./pdflib.lo ../../libs/pdcore/libpdcore.la ../../libs/png/libpng.la ../../libs/flate/libz.la ../../libs/ tiff/libtiff.la ../../libs/jpeg/libjpeg.la ../../libs/pdflib/libpdf_.la -L/opt/local/lib -framework Carbon - export-dynamic libtool: link: cannot find the library `../../libs/pdflib/libpdf_.la' make[2]: [libpdf.la] Error 1 (ignored) ../../libtool --silent --mode=link gcc -L/opt/local/lib -o libs_libpdf.la ./pdflib.lo ../../libs/pdcore/ libpdcore.la ../../libs/png/libpng.la ../../libs/flate/libz.la ../../libs/tiff/libtiff.la ../../libs/jpeg/libjpeg.la ../../libs/pdflib/libpdf_.la -L/opt/local/lib -framework Carbon libtool: link: cannot find the library `../../libs/pdflib/libpdf_.la' make[2]: [libpdf.la] Error 1 (ignored) make[3]: * No rule to make target ../../../libs/pdflib/libpdf.la', needed by hello'. Stop. make[3]: * No rule to make target ../../../libs/pdflib/libpdf.la', needed by hello'. Stop. make[2]: * [all] Error 2 make[1]: * [all] Error 2 make[2]: * No rule to make target ../../libs/pdflib/libpdf.la', needed by pdfimpose'. Stop. make[1]: * [all] Error 2 make: * [all] Error 2

Error: Unable to upgrade port: 1

Change History (7)

comment:1 Changed 19 years ago by kyle-opendarwinbugzilla@…

If I cd into the source directory and try to make it from there, I get a different error:

make[2]: Nothing to be done for `all'. make[2]: Nothing to be done for `all'. make[2]: Nothing to be done for `all'. make[2]: Nothing to be done for `all'. make[2]: Nothing to be done for `all'. make[2]: stat:p_tiff.lo: Too many levels of symbolic links ../../libtool --silent --mode=compile gcc -c -I/opt/local/include -DPACKAGE_NAME=\"\" - DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 - DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 - DWORDS_BIGENDIAN=1 -I/opt/local/include -L/opt/local/lib/ -L/usr/local/lib/ -mcpu=G4 - mtune=G4 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/Developer/Headers/FlatCarbon - DPDF_PLATFORM=\""Mac OS X"\" -I../../libs/pdflib -I../../libs/pdcore -I../../libs/tiff -I../../libs/flate - I../../libs/png -I../../libs/jpeg p_tiff.c In file included from p_tiff.c:48: ../../libs/tiff/tiffiop.h:158: error: parse error before ‘TIFFmallocHandler’ ../../libs/tiff/tiffiop.h:158: warning: no semicolon at end of struct or union ../../libs/tiff/tiffiop.h:159: warning: data definition has no type or storage class ../../libs/tiff/tiffiop.h:160: error: parse error before ‘pdflib_free’ ../../libs/tiff/tiffiop.h:160: warning: data definition has no type or storage class ../../libs/tiff/tiffiop.h:163: error: parse error before ‘}’ token p_tiff.c: In function ‘pdf_libtiff_malloc’: p_tiff.c:86: error: dereferencing pointer to incomplete type p_tiff.c: In function ‘pdf_libtiff_realloc’: p_tiff.c:93: error: dereferencing pointer to incomplete type p_tiff.c: In function ‘pdf_libtiff_free’: p_tiff.c:100: error: dereferencing pointer to incomplete type p_tiff.c: In function ‘pdf_data_source_TIFF_fill’: p_tiff.c:179: error: dereferencing pointer to incomplete type p_tiff.c: In function ‘pdf_is_TIFF_file’: p_tiff.c:287: warning: assignment makes pointer from integer without a cast p_tiff.c: In function ‘pdf_process_TIFF_data’: p_tiff.c:324: error: dereferencing pointer to incomplete type p_tiff.c:444: error: dereferencing pointer to incomplete type make[2]: [p_tiff.lo] Error 1 (ignored) ../../libtool --silent --mode=link gcc -o ../../libs/pdflib/libpdf_.la ./p_actions.lo ./p_afm.lo ./ p_annots.lo ./p_block.lo ./p_bmp.lo ./p_ccitt.lo ./p_cid.lo ./p_color.lo ./p_document.lo ./p_draw.lo ./ p_encoding.lo ./p_fields.lo ./p_filter.lo ./p_font.lo ./p_gif.lo ./p_gstate.lo ./p_hostfont.lo ./p_hyper.lo ./ p_icc.lo ./p_icclib.lo ./p_image.lo ./p_jpeg.lo ./p_jpx.lo ./p_kerning.lo ./p_layer.lo ./p_object.lo ./ p_opi.lo ./p_page.lo ./p_params.lo ./p_pattern.lo ./p_pdi.lo ./p_pfm.lo ./p_png.lo ./p_resource.lo ./ p_shading.lo ./p_subsett.lo ./p_tagged.lo ./p_template.lo ./p_text.lo ./p_textflow.lo ./p_tiff.lo ./ p_truetype.lo ./p_type1.lo ./p_type3.lo ./p_util.lo ./p_xgstate.lo Cmake[2]: * libs/pdflib/libpdf_.la Interrupt make[1]: * [all] Interrupt make: * [all] Interrupt

I tried to find where this TIFFmallocHandler was declared, but can't.

comment:2 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to mww@…

comment:3 Changed 19 years ago by mww@…

hmmm.... I honestly can't reproduce this bug - do you perhaps use gcc3?

comment:4 Changed 19 years ago by mww@…

Summary: pdflib does not build on upgradeBUG: pdflib does not build on upgrade

comment:5 Changed 19 years ago by kyle-opendarwinbugzilla@…

(In reply to comment #2)

hmmm.... I honestly can't reproduce this bug - do you perhaps use gcc3?

nope: [kyle@tjteru ~]$ gcc_select Current default compiler: gcc version 4.0.0 (Apple Computer, Inc. build 5026)

Maybe it conflicts with something I do have installed....

This is what I have installed:

aalib 1.4rc5_2 (active) apr 0.9.6_1+darwin_8 (active) apr-util 0.9.6_1 (active) aquaterm 1.0.b2_1+darwin_8 (active) aspell 0.60.2_2 (active) aspell-dict-en 6.0_0 (active) autoconf 2.59_0 (active) automake 1.9.6_0 (active) bash 3.0.016_0 (active) bash-completion 20050721_0+dp_completion (active) bzip2 1.0.3_0 (active) cyrus-sasl2 2.1.21_0 (active) db4 4.3.28_0+darwin_8 (active) dict 1.9.7_0 (active) dnstracer 1.8_0 (active) elinks 0.10.6_0 (active) expat 1.95.8_1 (active) freetype 2.1.9_1 (active) gawk 3.1.5_1 (active) gd2 2.0.33_2 (active) gdbm 1.8.3_1 (active) gettext 0.14.5_0 (active) ghostscript 8.51_0 (active) glib1 1.2.10_4 (active) gmp 4.1.4_2 (active) gnupg 1.4.2_0 (active) gnutls 1.2.7_0+darwin_8 (active) gpg-agent 1.9.17_1 (active) graphviz 2.6_0+darwin_8 (active) gsed 4.1.4_1 (active) gtk1 1.2.10_6 (active) gv 3.5.8_1 (active) ImageMagick 6.2.4-3_2 (active) indent 2.2.9_2 (active) ispell 3.3.02_0 (active) jasper 1.701.0_0 (active) jpeg 6b_1 (active) libassuan 0.6.10_1 (active) libgcrypt 1.2.2_0+darwin_8 (active) libgpg-error 1.1_0 (active) libiconv 1.10_1+darwin_8 (active) libidn 0.5.19_0 (active) libksba 0.9.11_0 (active) libpng 1.2.8_2+darwin_8 (active) libtasn1 0.2.17_0 (active) libtool 1.5.20_0 (active) lynx 2.8.5rel.2_0 (active) mpfr 2.2.0_2+darwin_8 (active) msmtp 1.4.4_0 (active) ncftp 3.1.9_0 (active) neon 0.24.7_0 (active) netpbm 10.29_1 (active) opencdk 0.5.8_0 (active) openssl 0.9.8_1 (active) p0f 2.0.5_0 (active) par 1.52_0 (active) pinentry 0.7.2_2 (active) pkgconfig 0.19_0 (active) pth 2.0.5_0 (active) readline 5.0.005_0+darwin_8 (active) subversion 1.2.3_0 (active) tcl 8.4.11_2 (active) teTeX 3.0_1 (active) texi2html 1.76_3 (active) texinfo 4.8_1 (active) tiff 3.7.4_0 (active) tk 8.4.11_3 (active) transfig 3.2.4_0 (active) uptimed 0.3.3_0 (active) urlview 0.9_0 (active) vim 6.3.82_2+gtk1+multibyte+ncurses (active) wget 1.10.2_0+darwin_8 (active) Xaw3d 1.5E_0 (active) xfig 3.2.4_4 (active) yafc 1.1_1+darwin_8 (active) zlib 1.2.3_0 (active)

comment:6 Changed 19 years ago by markd@…

Cc: markd@… added

Does it work ok on uninstall/reinstall rather than upgrade? Also, an update to v6.0.3 was just committed so you might see if the problem persists with the new version.

comment:7 Changed 19 years ago by mww@…

Resolution: invalid
Status: newclosed

please re-open bug if problem persists with v6.0.3!

Note: See TracTickets for help on using tickets.