Opened 9 years ago

Closed 9 years ago

#8703 closed Bugs (fixed)

Solaris - error: 'posix_memalign' was not declared in this scope

Reported by: anonymous Owned by: Andrey Semashev
Milestone: Boost 1.54.0 Component: log
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

libs/log/src/threadsafe_queue.cpp: In static member function 'static void* boost::log::v2_mt_posix::aux::threadsafe_queue_impl::operator new(std::size_t)':
libs/log/src/threadsafe_queue.cpp:169:36: error: 'posix_memalign' was not declared in this scope
     if (posix_memalign(&p, 64, size) || !p)

It looks like posix_memalign is not available for Solaris 10 (using GCC 4.8.0).

Change History (3)

comment:1 by Andrey Semashev, 9 years ago

I don't have this system to test, so a patch would be welcome. Does Solaris have memalign()? Is it compatible with free()? Is there a macro I can use to detect Solaris target?

comment:2 by Andrey Semashev, 9 years ago

(In [84817]) Hopefully, fixed compilation on Solaris 10. Refs #8703.

comment:3 by Andrey Semashev, 9 years ago

Resolution: fixed
Status: newclosed

(In [84818]) Merged changes from trunk. Fixes #8703.

Note: See TracTickets for help on using tickets.