No subject


Wed Apr 8 03:19:41 PDT 2009


#if (_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
...
extern int munmap(void *, size_t);
...
#else   /* (_POSIX_C_SOURCE > 2) || defined(_XPG4_2) */
...
extern int munmap(caddr_t, size_t);
...

It looks like for C++ these macros are not defined since they conflict with the
ANSI C++ standards - from standards manpage:

  ANSI/ISO C++
     ANSI/ISO C++ does not define any feature test macros. If the
     standard C++ announcement macro __cplusplus is predefined to
     value  199711  or  greater,  the  compiler  operates  in   a
     standard-conforming  mode,  indicating C++ standards confor-
     mance. The value 199711  indicates  conformance  to  ISO/IEC
     14882:1998,  as required by that standard.  (As noted above,
     conformance to the standard  is  incomplete.)   A  standard-
     conforming mode is not available with compilers prior to Sun
     WorkShop C++ 5.0.


     C++ bindings are not defined for POSIX  or  X/Open  CAE,  so
     specifying   feature  test  macros  such  as  _POSIX_SOURCE,
     _POSIX_C_SOURCE, and _XOPEN_SOURCE can result in compilation
     errors  due  to conflicting requirements of standard C++ and
     those specifications.

It would appear to not be a bug after all, I just need to figure out the
correct definitions for Solaris.

Apologies, closing as not a bug.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list