Date: Wed, 02 Nov 2005 19:26:00 +1300 From: Matthew Luckie <mjl@luckie.org.nz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/88386: [patch] print/hpijs does not compile on 4.X Message-ID: <E1EXC4O-0002pc-OV@lycra.luckie.org.nz> Resent-Message-ID: <200511020630.jA26UHdO042746@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 88386 >Category: ports >Synopsis: [patch] print/hpijs does not compile on 4.X >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 02 06:30:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Matthew Luckie >Release: FreeBSD 4.11-RELEASE-p8 i386 >Organization: University of Waikato >Environment: System: FreeBSD lycra.luckie.org.nz 4.11-RELEASE-p8 FreeBSD 4.11-RELEASE-p8 #1: Wed May 11 14:02:09 NZST 2005 root@lycra.luckie.org.nz:/files/freebsd_src/sys/compile/lycra i386 >Description: ljjetready.cpp does not compile in FreeBSD 4.X, as gcc gets confused about where it should find the jpeg functions. i am a C programmer (not a C++ programmer) but i think the definitions are bogus, as they are declared sufficiently in the jpeg includes. errors: c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"hpijs\" -DVERSION=\"2.1.4\" -DHAVE_LIBJPEG=1 -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_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_JPEGLIB_H=1 -DVERSION=\"2.1.4\" -DHAVE_STRTOD=1 -DHAVE_STRTOL=1 -DHAVE_LIBM=1 -I. -I. -I/usr/local/include -O -pipe -DAPDK_LITTLE_ENDIAN -DAPDK_DJ660 -DAPDK_DJ6xx -DAPDK_DJ6xxPhoto -DAPDK_DJ8xx -DAPDK_DJ9xx -DAPDK_DJ9xxVIP -DAPDK_DJ630 -DAPDK_APOLLO2XXX -DAPDK_APOLLO21XX -DAPDK_APOLLO2560 -DAPDK_DJ600 -DAPDK_DJ350 -DAPDK_DJ8x5 -DAPDK_PSP100 -DAPDK_AUTODUPLEX -DAPDK_HIGH_RES_MODES -DAPDK_LJMONO -DAPDK_DJ540 -DAPDK_DJ850 -DAPDK_DJ890 -DAPDK_DJ3320 -DAPDK_LJCOLOR -DAPDK_DJGENERICVIP -DAPDK_LJJETREADY -DAPDK_LJFASTRASTER -DAPDK_BUFFER_SEND -DAPDK_LDL_COMPRESS - DAPDK_EXTENDED_MEDIASIZE -DAPDK_MLC_PRINTER -DAPDK_DJ3600 -DAPDK_LINUX -DAPDK_AUTO_INCLUDE -c -o ljjetready.o ljjetready.cpp In file included from /usr/local/include/jpeglib.h:24, from ljjetready.h:39, from ljjetready.cpp:36: /usr/local/include/jconfig.h:12: warning: `HAVE_STDLIB_H' redefined *Initialization*:1: warning: this is the location of the previous definition ljjetready.cpp: In method `BOOL apdk::ModeJPEG::Compress(apdk::HPLJBITMAP *, apdk::HPLJBITMAP *, apdk::QTABLEINFO *, int)': ljjetready.cpp:995: call of overloaded `jpeg_std_error (jpeg_error_mgr *)' is ambiguous ljjetready.cpp:812: candidates are: struct jpeg_error_mgr * apdk::jpeg_std_error(jpeg_error_mgr *) /usr/local/include/jpeglib.h:885: struct jpeg_error_mgr * jpeg_std_error(jpeg_error_mgr *) ljjetready.cpp:1007: call of overloaded `jpeg_destroy_compress (jpeg_compress_struct *)' is ambiguous ljjetready.cpp:810: candidates are: void apdk::jpeg_destroy_compress(jpeg_compress_struct *) /usr/local/include/jpeglib.h:905: void jpeg_destroy_compress(jpeg_compress_struct *) ljjetready.cpp:1010: call of overloaded `jpeg_CreateCompress (jpeg_compress_struct *, int, unsigned int)' is ambiguous ljjetready.cpp:809: candidates are: void apdk::jpeg_CreateCompress(jpeg_compress_struct *, int, unsigned int) /usr/local/include/jpeglib.h:901: void jpeg_CreateCompress(jpeg_compress_struct *, int, unsigned int) ljjetready.cpp:1032: call of overloaded `jpeg_set_defaults (jpeg_compress_struct *)' is ambiguous ljjetready.cpp:808: candidates are: void apdk::jpeg_set_defaults(jpeg_compress_struct *) /usr/local/include/jpeglib.h:914: void jpeg_set_defaults(jpeg_compress_struct *) ljjetready.cpp:1172: call of overloaded `jpeg_write_scanlines (jpeg_compress_struct *, JSAMPLE *[1], int)' is ambiguous ljjetready.cpp:803: candidates are: JDIMENSION apdk::jpeg_write_scanlines(jpeg_compress_struct *, JSAMPLE **, unsigned int) /usr/local/include/jpeglib.h:940: JDIMENSION jpeg_write_scanlines(jpeg_compress_struct *, JSAMPLE **, unsigned int) ljjetready.cpp:1180: call of overloaded `jpeg_finish_compress (jpeg_compress_struct *)' is ambiguous ljjetready.cpp:802: candidates are: void apdk::jpeg_finish_compress(jpeg_compress_struct *) /usr/local/include/jpeglib.h:941: void jpeg_finish_compress(jpeg_compress_struct *) ljjetready.cpp:1215: call of overloaded `jpeg_destroy_compress (jpeg_compress_struct *)' is ambiguous ljjetready.cpp:810: candidates are: void apdk::jpeg_destroy_compress(jpeg_compress_struct *) /usr/local/include/jpeglib.h:905: void jpeg_destroy_compress(jpeg_compress_struct *) *** Error code 1 Stop in /usr/tmp/files/freebsd_ports/print/hpijs.orig/work/hpijs-2.1.4. *** Error code 1 >How-To-Repeat: Try compiling hpijs in 4.X >Fix: diff -uNr hpijs.orig/files/patch-ljjetready.cpp hpijs/files/patch-ljjetready.cpp --- hpijs.orig/files/patch-ljjetready.cpp Thu Jan 1 12:00:00 1970 +++ hpijs/files/patch-ljjetready.cpp Wed Nov 2 19:13:20 2005 @@ -0,0 +1,22 @@ +--- ljjetready.cpp.orig Wed Nov 2 19:08:30 2005 ++++ ljjetready.cpp Wed Nov 2 19:09:55 2005 +@@ -799,6 +799,7 @@ + + extern "C" + { ++#if 0 + void jpeg_finish_compress (j_compress_ptr cinfo); + JDIMENSION jpeg_write_scanlines (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines); + void jpeg_start_compress(struct jpeg_compress_struct *,unsigned char); +@@ -808,8 +809,11 @@ + void jpeg_set_defaults(struct jpeg_compress_struct *); + void jpeg_CreateCompress(struct jpeg_compress_struct *,int,unsigned int); + void jpeg_destroy_compress(struct jpeg_compress_struct *); ++#endif + void jpeg_buffer_dest (j_compress_ptr cinfo, JOCTET* outbuff, void* flush_output_buffer_callback); ++#if 0 + struct jpeg_error_mgr * jpeg_std_error(struct jpeg_error_mgr * err); ++#endif + } + + #define ConvertToGrayMacro(red, green, blue) ((unsigned char)( ( (red * 30) + (green * 59) + (blue * 11) ) / 100 )) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EXC4O-0002pc-OV>