[MacPorts] #13576: camlimages fails to compile
#13576: camlimages fails to compile ----------------------------------+----------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Keywords: | ----------------------------------+----------------------------------------- For some time now I have not been able to compile camlimages. Under Leopard (installed as upgrade from Tiger) the error shows like this:[[BR]] newhost71-069:~ hepi$ sudo port install camlimages[[BR]] ---> Fetching camlimages[[BR]] ---> Verifying checksum(s) for camlimages[[BR]] ---> Extracting camlimages[[BR]] ---> Applying patches to camlimages[[BR]] ---> Configuring camlimages[[BR]] ---> Building camlimages with target all opt[[BR]] Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_camlimages/work/camlimages-2.2" && make all opt " returned error 2[[BR]] Command output: jpegread.c:145: error: 'JCS_RGB' undeclared (first use in this function)[[BR]] jpegread.c:149: warning: implicit declaration of function 'jpeg_start_decompress' jpegread.c:165: error: 'buffer' undeclared (first use in this function)[[BR]] jpegread.c:166: error: 'j_common_ptr' undeclared (first use in this function)[[BR]] jpegread.c:166: error: 'JPOOL_IMAGE' undeclared (first use in this function)[[BR]] jpegread.c:180: warning: implicit declaration of function 'jpeg_read_scanlines'[[BR]] jpegread.c:198: warning: implicit declaration of function 'jpeg_finish_decompress'[[BR]] jpegread.c:81: warning: unused variable 'cinfo'[[BR]] jpegread.c: In function 'jpeg_set_scale_denom':[[BR]] jpegread.c:231: error: dereferencing pointer to incomplete type[[BR]] jpegread.c: In function 'open_jpeg_file_for_read':[[BR]] jpegread.c:261: error: invalid application of 'sizeof' to incomplete type 'struct jpeg_decompress_struct' [[BR]] jpegread.c:274: error: dereferencing pointer to incomplete type[[BR]] jpegread.c:295: error: 'TRUE' undeclared (first use in this function)[[BR]] jpegread.c:299: error: dereferencing pointer to incomplete type[[BR]] jpegread.c:300: error: dereferencing pointer to incomplete type[[BR]] jpegread.c: In function 'open_jpeg_file_for_read_start':[[BR]] jpegread.c:337: error: dereferencing pointer to incomplete type[[BR]] jpegread.c:337: error: 'JCS_RGB' undeclared (first use in this function)[[BR]] jpegread.c:358: error: dereferencing pointer to incomplete type[[BR]] jpegread.c:359: error: dereferencing pointer to incomplete type[[BR]] jpegread.c: In function 'read_jpeg_scanline':[[BR]] jpegread.c:380: error: 'JSAMPROW' undeclared (first use in this function)[[BR]] jpegread.c:380: error: syntax error before 'row'[[BR]] jpegread.c:384: error: 'row' undeclared (first use in this function)[[BR]] jpegread.c: In function 'close_jpeg_file_for_read':[[BR]] jpegread.c:416: error: dereferencing pointer to incomplete type[[BR]] jpegread.c:416: error: dereferencing pointer to incomplete type[[BR]] make[1]: *** [jpegread.o] Error 2[[BR]] make: *** [byt] Error 2[[BR]] Error: Status 1 encountered during processing.[[BR]] -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13576> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages fails to compile -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by henrik@pilegaard.org): I had similar problem when using Tiger. Here I was able to cure my problem by making the following change in the portfile:[[BR]] Replace the lines[[BR]] configure.cflags-append "-L${prefix}/lib"[[BR]] configure.env DPORT_CAMLDIR="${prefix}/lib/ocaml"[[BR]] by[[BR]] configure.env LDFLAGS="-L${prefix}/lib" CFLAGS="-I${prefix}/include -L${prefix}/lib" DPORT_CAMLDIR="${prefix}/lib/ocaml" -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13576#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages fails to compile -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Changes (by jmpp@macports.org): * milestone: => Port Bugs -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13576#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages 2.2_2 fails to build: 'JCS_RGB' undeclared (first use in this function) -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Changes (by ryandesign@macports.org): * cc: reilles@loria.fr, ryandesign@macports.org, mww@macports.org (added) * summary: camlimages fails to compile => camlimages 2.2_2 fails to build: 'JCS_RGB' undeclared (first use in this function) Comment: So, henrik, you're saying the fix is to rollback the changes made in r28539. And I can confirm this. But we really don't want to define LDFLAGS and CFLAGS in configure.env; we really do want to use configure.cflags- append and configure.ldflags-append if possible. So I'll try to figure out what went wrong. -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13576#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages 2.2_2 fails to build: 'JCS_RGB' undeclared (first use in this function) -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by henrik@pilegaard.org): Personally I have had no luck applying the suggested fix under Leopard - here it might be an entirely different issue. -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13576#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages 2.2_2 fails to build: 'JCS_RGB' undeclared (first use in this function) -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by ryandesign@macports.org): Fixed the problem under Tiger in r32036. Can someone please test this in Leopard (waiting 30 minutes and doing a `sudo port sync` first) and let us know if the problem still exists on Leopard? -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13576#comment:5> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages 2.2_2 fails to build: 'JCS_RGB' undeclared (first use in this function) -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by henrik@pilegaard.org): I now get a different problem under Leopard:[[BR]] sudo port install camlimages---> Fetching camlimages[[BR]] ---> Verifying checksum(s) for camlimages[[BR]] ---> Extracting camlimages[[BR]] ---> Applying patches to camlimages[[BR]] ---> Configuring camlimages[[BR]] ---> Building camlimages with target all opt[[BR]] Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_camlimages/work/camlimages-2.2" && make all opt " returned error 2[[BR]] Command output: if test "Xlibci_jpeg.a" = "X"; then \[[BR]] ocamlc.opt -a -linkall -o ci_jpeg.cma \[[BR]] jpeg.cmo oJpeg.cmo -ccopt -L/opt/local/lib -ljpeg; \[[BR]] else \[[BR]] ocamlmklib -linkall -o ci_jpeg \[[BR]] jpeg.cmo oJpeg.cmo -L/opt/local/lib -ljpeg; \[[BR]] fi[[BR]] ocamlc.opt -ccopt "-I.. -O2 -I/opt/local/include" -c tiffread.c [[BR]] tiffread.c:24:1: warning: "int16" redefined[[BR]] In file included from /opt/local/lib/ocaml/caml/mlvalues.h:20,[[BR]] from tiffread.c:16:[[BR]] /opt/local/lib/ocaml/caml/compatibility.h:313:1: warning: this is the location of the previous definition[[BR]] tiffread.c:25:1: warning: "uint16" redefined[[BR]] /opt/local/lib/ocaml/caml/compatibility.h:314:1: warning: this is the location of the previous definition[[BR]] tiffread.c: In function 'open_tiff_file_for_read':[[BR]] tiffread.c:55: error: 'uint32_t' undeclared (first use in this function)[[BR]] tiffread.c:55: error: (Each undeclared identifier is reported only once[[BR]] tiffread.c:55: error: for each function it appears in.)[[BR]] tiffread.c:55: error: syntax error before 'imagelength'[[BR]] tiffread.c:57: error: 'uint16_t' undeclared (first use in this function)[[BR]] tiffread.c:61: error: syntax error before 'runit'[[BR]] tiffread.c:63: error: syntax error before 'photometric'[[BR]] tiffread.c:65: error: 'imagelength' undeclared (first use in this function)[[BR]] tiffread.c:66: error: 'imagewidth' undeclared (first use in this function)[[BR]] tiffread.c:67: error: 'imagebits' undeclared (first use in this function)[[BR]] tiffread.c:68: error: 'imagesample' undeclared (first use in this function)[[BR]] tiffread.c:69: error: 'runit' undeclared (first use in this function)[[BR]] tiffread.c:72: error: 'photometric' undeclared (first use in this function)[[BR]] make[1]: *** [tiffread.o] Error 2[[BR]] make: *** [byt] Error 2[[BR]] Error: Status 1 encountered during processing.[[BR]] -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13576#comment:6> MacPorts </projects/macports> Ports system for Mac OS
#13576: camlimages 2.2_2 fails to build: 'JCS_RGB' undeclared (first use in this function) -----------------------------------+---------------------------------------- Reporter: henrik@pilegaard.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by vpvadistance@free.fr): I just install afresh version of macports on 10.5.2 and I have exactly the same problem above (tiffread.c) Vincent -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13576#comment:7> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts