pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46496: lang/scm



>Number:         46496
>Category:       pkg
>Synopsis:       lang/scm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 29 16:15:00 +0000 2012
>Originator:     Alexander Polakov
>Release:        
>Organization:
>Environment:
DragonFly noisy.plhk.ru 3.1-DEVELOPMENT DragonFly 
v3.1.0.793.gf018bb-DEVELOPMENT #0: Fri May 25 11:52:32 MSK 2012     
polachok%noisy.plhk.ru@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64

>Description:
lang/scm segfaults on start on DragonFly/x86_64 (and probably FreeBSD) because 
of implicit declaration of getenv().
Include <stdlib.h> to fix it.
>How-To-Repeat:
% scm
>Fix:
@@ -1,13 +1,16 @@
 $NetBSD$
 
---- findexec.c.orig    2006-02-08 17:53:00.000000000 +0000
-+++ findexec.c
-@@ -78,7 +78,7 @@ Wed Feb 21 23:06:35 1996  Aubrey Jaffer
+
+--- findexec.c.orig    2002-06-02 08:54:47.000000000 +0400
++++ findexec.c 2012-05-29 19:24:53.223846000 +0400
+@@ -78,8 +78,9 @@
  # ifndef __STDC__
  #  define const /**/
  # endif
 -# ifdef __FreeBSD__
 +# if defined(__FreeBSD__) || defined(__DragonFly__)
  /* This might be same for 44bsd derived system. */
++#  include <stdlib.h>
  #  include <sys/types.h>
  #  include <sys/stat.h>
+ # endif



Home | Main Index | Thread Index | Old Index