---> 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