You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/04/11 00:42:15 UTC

[jira] [Commented] (TS-2529) Create wrapper function for dlerror() to handle the return of const char* on FreeBSD < 8.1 and OpenBSD

    [ https://issues.apache.org/jira/browse/TS-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13965944#comment-13965944 ] 

Leif Hedstrom commented on TS-2529:
-----------------------------------

[~i.galic] What's actionable here? you going to fix this ? :) What target version ?

> Create wrapper function for dlerror() to handle the return of const char* on FreeBSD < 8.1 and OpenBSD
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TS-2529
>                 URL: https://issues.apache.org/jira/browse/TS-2529
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cleanup
>            Reporter: Igor Galić
>
> {code}
> #if defined(freebsd) || defined(openbsd)
>       err = (char *)dlerror();
> #else
>       err = dlerror();
> #endif
> {code}
> Why is this #if dance necessary here?
> http://www.freebsd.org/cgi/man.cgi?dlerror dlerror() hasn't been const char* since FreeBSD 8.1. In OpenBSD it's still *is* ...broken, but then we should abstract that into a wrapper function of our own at autoconf time.
> We're not handling this case at every call of dlerror() anyways.. so....



--
This message was sent by Atlassian JIRA
(v6.2#6252)