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
Responsible Changed From-To: freebsd-ports-bugs->dougb Over to maintainer
State Changed From-To: open->closed Patch committed, thanks!