#18509 closed defect (fixed)
libtheora-1.0 fails to build on MacPorts 1.700 (Mac OS X 10.5.6)
Reported by: | dennis.wagelaar@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | libtheora | Cc: | halfacanuck@… |
Port: | libtheora |
Description
libtheora-1.0 does not compile with MacPorts 1.7 under Mac OS X 10.5.6. I get the following output:
sh-3.2# port install libtheora +darwin_9_i386 ---> Fetching libtheora ---> Attempting to fetch libtheora-1.0.tar.bz2 from http://downloads.xiph.org/releases/theora/ ---> Verifying checksum(s) for libtheora ---> Extracting libtheora ---> Configuring libtheora ---> Building libtheora Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_libtheora/work/libtheora-1.0" && make all " returned error 2 Command output: png2theora.c:375: error: 'end_ptr' undeclared (first use in this function) png2theora.c:383: warning: implicit declaration of function 'png_init_io' png2theora.c:384: warning: implicit declaration of function 'png_set_sig_bytes' png2theora.c:385: warning: implicit declaration of function 'png_read_info' png2theora.c:386: warning: implicit declaration of function 'png_get_IHDR' png2theora.c:386: error: 'width' undeclared (first use in this function) png2theora.c:386: error: 'height' undeclared (first use in this function) png2theora.c:388: warning: implicit declaration of function 'png_set_expand' png2theora.c:389: warning: implicit declaration of function 'png_set_packing' png2theora.c:390: warning: implicit declaration of function 'png_set_strip_16' png2theora.c:391: error: 'PNG_COLOR_MASK_COLOR' undeclared (first use in this function) png2theora.c:391: warning: implicit declaration of function 'png_set_gray_to_rgb' png2theora.c:392: warning: implicit declaration of function 'png_get_bKGD' png2theora.c:392: error: 'bkgd' undeclared (first use in this function) png2theora.c:393: warning: implicit declaration of function 'png_set_background' png2theora.c:393: error: 'PNG_BACKGROUND_GAMMA_FILE' undeclared (first use in this function) png2theora.c:398: warning: implicit declaration of function 'png_set_strip_alpha' png2theora.c:400: error: 'row_data' undeclared (first use in this function) png2theora.c:400: error: syntax error before 'png_malloc' png2theora.c:402: error: syntax error before ')' token png2theora.c:404: error: 'y' undeclared (first use in this function) png2theora.c:407: warning: implicit declaration of function 'png_read_image' png2theora.c:408: warning: implicit declaration of function 'png_read_end' png2theora.c:415: warning: implicit declaration of function 'png_free' png2theora.c:417: warning: implicit declaration of function 'png_destroy_read_struct' png2theora.c: In function 'main': png2theora.c:510: warning: passing argument 3 of 'scandir' from incompatible pointer type make[2]: *** [png2theora-png2theora.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Change History (5)
comment:1 Changed 16 years ago by halfacanuck@…
comment:3 Changed 16 years ago by blb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Looks like png2theora is one of the examples, which isn't installed by the port. Building of the examples has been disabled in r46895.
Also, concerning your initial command,
port install libtheora +darwin_9_i386
You don't need to select +darwin*-named variants, port will do that automatically and as appropriate.
Note: See
TracTickets for help on using
tickets.
Seems to be missing a dependency on libpng. Worked fine once I installed that manually.