[MacPorts] #27289: libtorrent-devel: there are no arguments to 'posix_memalign' that depend on a template parameter, so a declaration of 'posix_memalign' must be available

MacPorts noreply at macports.org
Mon Jan 10 01:38:56 PST 2011


#27289: libtorrent-devel: there are no arguments to 'posix_memalign' that depend on
a template parameter, so a declaration of 'posix_memalign' must be
available
---------------------------------------------+------------------------------
 Reporter:  gorzarg@…                        |       Owner:  gardnermj@…        
     Type:  defect                           |      Status:  new                
 Priority:  Normal                           |   Milestone:                     
Component:  ports                            |     Version:  1.9.2              
 Keywords:  libtorrent-devel rtorrent-devel  |        Port:  libtorrent-devel   
---------------------------------------------+------------------------------

Comment(by shadow.fst@…):

 Can't build libtorrent-devel 0.12.7 under PPC Leopard (Darwin macmini
 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009;
 root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh).

 Quote from mail.log:

 {{{
 :info:configure checking for posix_memalign... no
 <...>
 :info:build ../../../rak/allocators.h: In static member function 'static
 T* rak::cacheline_allocator<T>::alloc_size(size_t)':
 :info:build ../../../rak/allocators.h:80: error: there are no arguments to
 'posix_memalign' that depend on a template parameter, so a declaration of
 'posix_memalign' must
 be available
 :info:build ../../../rak/allocators.h:80: error: (if you use
 '-fpermissive', G++ will accept your code, but allowing the use of an
 undeclared name is deprecated)
 :info:build ../../../rak/allocators.h: In static member function 'static
 T* rak::cacheline_allocator<T>::alloc_size(size_t) [with T =
 rak::priority_item*]':
 :info:build ../../../rak/allocators.h:76:   instantiated from 'T*
 rak::cacheline_allocator<T>::allocate(size_t, const void*) [with T =
 rak::priority_item*]'
 :info:build /usr/include/c++/4.0.0/bits/stl_vector.h:117:   instantiated
 from '_Tp* std::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp =
 rak::priority_item*, _A
 lloc = rak::cacheline_allocator<rak::priority_item*>]'
 :info:build /usr/include/c++/4.0.0/bits/vector.tcc:275:   instantiated
 from 'void std::vector<_Tp,
 _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename _Alloc::poi
 nter, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
 rak::priority_item*, _Alloc =
 rak::cacheline_allocator<rak::priority_item*>]'
 :info:build /usr/include/c++/4.0.0/bits/stl_vector.h:610:   instantiated
 from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp =
 rak::priority_item*, _Alloc
  = rak::cacheline_allocator<rak::priority_item*>]'
 :info:build ../../../rak/priority_queue.h:77:   instantiated from 'void
 rak::priority_queue<Value, Compare, Equal, Alloc>::push(const typename
 std::vector<Value, Alloc>::v
 alue_type&) [with Value = rak::priority_item*, Compare =
 rak::priority_compare, Equal = rak::priority_equal, Alloc =
 rak::cacheline_allocator<rak::priority_item*>]'
 :info:build ../../../rak/priority_queue_default.h:116:   instantiated from
 here
 :info:build ../../../rak/allocators.h:80: error: 'posix_memalign' was not
 declared in this scope
 :info:build make[4]: *** [block.lo] Error 1
 :info:build make[3]: *** [all-recursive] Error 1
 :info:build make[2]: *** [all-recursive] Error 1
 :info:build make[1]: *** [all-recursive] Error 1
 :info:build make: *** [all] Error 2
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_libtorrent-devel/work/libtorrent-0.12.7"
  && /usr/bin/make all " returned error 2
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 :debug:build Backtrace: shell command failed (see log for details)
     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: the following items did not execute (for libtorrent-
 devel): org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :error:build Failed to install libtorrent-devel
 :notice:build Log for libtorrent-devel is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_libtorrent-devel/main.log
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/27289#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list