Subject: install/28887: perl58 compiling error (about HAS_SCM_RIGHTS definition) on a i686 linux system
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <yazicivo@itu.edu.tr>
List: netbsd-bugs
Date: 01/06/2005 17:30:00
>Number: 28887
>Category: install
>Synopsis: perl58 compiling error (about HAS_SCM_RIGHTS definition) on a i686 linux system
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 06 17:30:00 +0000 2005
>Originator: Volkan YAZICI
>Release: CRUX Linux 2.0 (with kernel 2.6.10, gcc 3.3.4, glib 2.4.8)
>Organization:
Student
>Environment:
Linux alamut 2.6.10 #1 Sat Dec 25 09:35:27 EET 2004 i686 unknown unknown GNU/Linux
>Description:
I'm trying to use pkgsrc on my linux box. When I try to install perl58, I'm getting below error message:
...
===> Building for perl-5.8.6
`sh cflags "optimize='-O2 -pthread -I/usr/include'" miniperlmain.o` -fpic miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/pkg/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pthread -I/usr/include -Wall
In file included from perl.h:37,
from miniperlmain.c:36:
config.h:1981:9: invalid preprocessing directive #HAS_SCM_RIGHTS
*** Error code 1
...
>How-To-Repeat:
shell# cd /usr/pkgsrc/lang/perl58
shell# bmake install clean clean-depends
...
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
Updating makefile...
Now you must run 'make'.
If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.
===> Building for perl-5.8.6
`sh cflags "optimize='-O2 -pthread -I/usr/include'" miniperlmain.o` -fpic miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/pkg/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pthread -I/usr/include -Wall
In file included from perl.h:37,
from miniperlmain.c:36:
config.h:1981:9: invalid preprocessing directive #HAS_SCM_RIGHTS
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/lang/perl58/work/perl-5.8.6
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/lang/perl58
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/lang/perl58
shell# _
>Fix:
in /usr/pkgsrc/lang/perl58/work/perl-5.8.6/config.h
replaced line 1981: # HAS_SCM_RIGHTS /**/
with : #define HAS_SCM_RIGHTS