[Poppler-bugs] [Bug 97915] New: g++ 5.4.0 cannot compile poppler (due to C++11 option)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Sep 24 17:17:18 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97915

            Bug ID: 97915
           Summary: g++ 5.4.0 cannot compile poppler (due to C++11 option)
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: trueroad at trueroad.jp

I've found that current master branch (commit
183dbf3249e8db2398b63a749eb010bc0a89dc35) cannot be compiled by g++ 5.4.0.

```
  CXX      libgoo_la-gfile.lo
../../poppler/goo/gfile.cc: In function 'GBool openTempFile(GooString**,
FILE**, const char*)':
../../poppler/goo/gfile.cc:408:37: error: 'mkstemp' was not declared in this
scope
   fd = mkstemp((*name)->getCString());
                                     ^
../../poppler/goo/gfile.cc:416:39: error: 'fdopen' was not declared in this
scope
   if (fd < 0 || !(*f = fdopen(fd, mode))) {
                                       ^
../../poppler/goo/gfile.cc: In function 'int Gfseek(FILE*, Goffset, int)':
../../poppler/goo/gfile.cc:557:34: error: 'fseeko' was not declared in this
scope
   return fseeko(f, offset, whence);
                                  ^
../../poppler/goo/gfile.cc: In function 'Goffset Gftell(FILE*)':
../../poppler/goo/gfile.cc:571:18: error: 'ftello' was not declared in this
scope
   return ftello(f);
                  ^
make[2]: *** [Makefile:584: libgoo_la-gfile.lo] Error 1
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160924/b71fa679/attachment.html>


More information about the Poppler-bugs mailing list