pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/38984: [patch] lang/erlang doesn't build on FreeBSD 6
>Number: 38984
>Category: pkg
>Synopsis: [patch] lang/erlang doesn't build on FreeBSD 6
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 19 06:40:00 +0000 2008
>Originator: Aleksej Saushev
>Release:
>Organization:
>Environment:
FreeBSD 6.2-STABLE-200706 i386
>Description:
lang/erlang doesn't build due to different gethostbyname_r signature.
>How-To-Repeat:
cd lang/erlang && bmake
>Fix:
Apply the patch:
--- lib/erl_interface/src/connect/ei_resolve.c.orig Mon Nov 26 21:57:25 2007
+++ lib/erl_interface/src/connect/ei_resolve.c Thu Jun 19 10:15:16 2008
@@ -614,7 +614,7 @@
#ifndef HAVE_GETHOSTBYNAME_R
return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop);
#else
-#ifdef __GLIBC__
+#if defined(__FreeBSD__) || defined(__GLIBC__)
struct hostent *result;
gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);
Home |
Main Index |
Thread Index |
Old Index