#62 gcc 4.5.0 compile error

open
ppd (20)
5
2010-04-26
2010-04-26
Florin Braescu
No

++ Mark Compile start : "splix" "2.0.0" "Fri, 23 Apr 2010 04:55:40 +0000"
+---------------------------------------------+
| COMPILATION PARAMETERS SUMMARY |
+---------------------------------------------+
| THREADS = enabled |
| THREADS Nr = 2 |
| CACHESIZE = 30 |
| JBIG = enabled |
| BLACK OPTIM = enabled |
+---------------------------------------------+
(Do a "make clean" before updating these values)

CXX src/rastertoqpdl.cpp
CXX src/request.cpp
CXX src/printer.cpp
CXX src/qpdl.cpp
src/qpdl.cpp: In function 'bool _renderBand(const Request&, const Band*, bool)':
src/qpdl.cpp:115:35: warning: dereferencing type-punned pointer will break strict-aliasing rules
CXX src/document.cpp
src/document.cpp: In member function 'Page* Document::getNextRawPage(const Request&)':
src/document.cpp:84:10: warning: 'unsigned int cupsRasterReadHeader(cups_raster_t*, cups_page_header_t*)' is deprecated (declared at /usr/include/cups/raster.h:321)
src/document.cpp:84:47: warning: 'unsigned int cupsRasterReadHeader(cups_raster_t*, cups_page_header_t*)' is deprecated (declared at /usr/include/cups/raster.h:321)
CXX src/core.cpp
CXX src/compress.cpp
CXX src/algorithm.cpp
CXX src/ppdfile.cpp
src/ppdfile.cpp:285:40: error: 'PPDFile::Value::Value' names the constructor, not the type
src/ppdfile.cpp:285:63: error: ISO C++ forbids declaration of 'val' with no type
src/ppdfile.cpp:285:6: error: prototype for 'void PPDFile::Value::operator=(const int&)' does not match any in class 'PPDFile::Value'
include/ppdfile.h:199:25: error: candidate is: void PPDFile::Value::operator=(const PPDFile::Value&)
make: *** [optimized/src/ppdfile.o] Error 1
++ Mark Compile stop : "splix" "2.0.0" "Fri, 23 Apr 2010 04:55:42 +0000"

Discussion

  • root@batchserver:~/splix-2.0.0# cat /etc/slackware-version
    Slackware 14.0
    root@batchserver:~/splix-2.0.0# gcc --version
    gcc (GCC) 4.7.2
    root@batchserver:~/splix-2.0.0# ldconfig -p | grep libcups
    libcupsppdc.so.1 (libc6) => /usr/lib/libcupsppdc.so.1
    libcupsppdc.so (libc6) => /usr/lib/libcupsppdc.so
    libcupsmime.so.1 (libc6) => /usr/lib/libcupsmime.so.1
    libcupsmime.so (libc6) => /usr/lib/libcupsmime.so
    libcupsimage.so.2 (libc6) => /usr/lib/libcupsimage.so.2
    libcupsimage.so (libc6) => /usr/lib/libcupsimage.so
    libcupsdriver.so.1 (libc6) => /usr/lib/libcupsdriver.so.1
    libcupsdriver.so (libc6) => /usr/lib/libcupsdriver.so
    libcupscgi.so.1 (libc6) => /usr/lib/libcupscgi.so.1
    libcupscgi.so (libc6) => /usr/lib/libcupscgi.so
    libcups.so.2 (libc6) => /usr/lib/libcups.so.2
    libcups.so (libc6) => /usr/lib/libcups.so
    root@batchserver:~/splix-2.0.0# ldconfig -p | grep libjbig
    libjbig.so.2.0 (libc6) => /usr/lib/libjbig.so.2.0
    libjbig.so (libc6) => /usr/lib/libjbig.so

    Just to report a +1 with the same exact error when doing a "make"

    Cheers,
    Gus

     
  • I've solved this in a very simple way:

    in src/ppdfile.cpp, where it reads:
    PPDFile::Value::Value

    it should read:
    PPDFile::Value

    and that's it, it all compiles then