Project

General

Profile

Actions

Bug #1250

closed

on_exit implementation

Added by Gilbert Röhrbein over 5 years ago. Updated over 5 years ago.

Status:
Invalid
Priority:
Normal
Category:
libcrystax
Target version:
-
Start date:
02/01/2016
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm
Host OS:
Linux
Toolchain:
gcc-4.9
Android version:
5.0 (android-21)
CrystaX Version:

Description

Hi,

libcrystax.so doesn't export on_exit() but atexit().
test case:
https://github.com/payload/crystax-tests/tree/issue_on_exit

Have a nice day.

Actions #1

Updated by Dmitry Moskalchuk over 5 years ago

  • Category set to libcrystax
  • Status changed from Open to Waiting for feedback
  • Assignee set to Dmitry Moskalchuk

This is deprecated function. Even in glibc it's not recommended for use. See "here":http://man7.org/linux/man-pages/man3/on_exit.3.html:

This function comes from SunOS 4, but is also present in glibc. It
no longer occurs in Solaris (SunOS 5). Portable application should
avoid this function, and use the standard atexit(3) instead.

I'm not sure it makes sense to add it to the libcrystax, especially taking into account that @on_exit@ is really ancient.

Actions #2

Updated by Gilbert Röhrbein over 5 years ago

Thank you for pointing this out to me. I try to compile gettext and now I realise that something goes wrong at configure time such that gettext chooses to compile a definition of atexit, which relies on on_exit. I look it up why it thinks that atexit isn't provided by the host.

Actions #3

Updated by Dmitry Moskalchuk over 5 years ago

  • Status changed from Waiting for feedback to Invalid
Actions

Also available in: Atom PDF