Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#11 t15_TransformObufRecBufNoAuto does not link on Linux 2.6

open
nobody
None
5
2006-10-26
2006-10-26
Remi Chateauneu
No

The test program t15_TransformObufRecBufNoAuto does not
link on Linux 2.6.
The goal of this progr4am is to use streambuf proxies.
But, because many methods of the class basic_streambuf
are protected, a safe hack is used by taking the
address of these methods.
Unfortunately, the linker does not authorize this with
Linux 2.6.
The remedy is two-fold:
- First check in ARM whether it is legal to take the
address of a protected member method. If this is
unlegal, then proxies of streambufs cannot be
implemented this way.
- Or, try to explicitly instantiate these methods.

Discussion

  • Logged In: YES
    user_id=794960
    Originator: YES

    Same on 2.6.17 with the message:
    "Invalid argument:22 dmp_sendfile::sendfile : 3400000 != -1"