Kbd, Procps, perl build issues

Daniel Murungi dmurungi at dicts.mak.ac.ug
Tue Nov 6 22:31:16 PST 2007


Hi,
For those having trouble with perl, kbd, and procps, try this
KBD:
    Open the file 'openvt/Makefile' and remove all occurances of '-ansi'
Procps:
    The make command sh'd be
             $ make CFLAGS="-fPIC"
    (The -fPIC flag is set in the Makefile but I wonder why it is not used 
when one runs the make command solo. If u don't set the -fPIC option on the 
command line, the procps utilities will complain about failing to share 
their text segments)
PERL:
     Apply the attached patch 

Hope the above helps

-------------- next part --------------
--- perl-5.8.1-RC4/ext/DynaLoader/hints/linux.pl.pix	2003-07-31 08:48:21.000000000 +0200
+++ perl-5.8.1-RC4/ext/DynaLoader/hints/linux.pl	2003-08-03 22:16:07.000000000 +0200
@@ -2,4 +2,7 @@
 # Some Linux releases like to hide their <nlist.h>
 $self->{CCFLAGS} = $Config{ccflags} . ' -I/usr/include/libelf'
 	if -f "/usr/include/libelf/nlist.h";
+# Some silly modules like mod_perl use DynaLoader.a in a shared
+# module, so add cccdlflags if we're going for a shared libperl
+$self->{CCFLAGS} = ($self->{CCFLAGS} || $Config{ccflags}) . " $Config{cccdlflags}" if $Config{'useshrplib'} eq 'true';
 1;
--- perl-5.8.1-RC4/Configure.pix	2003-08-03 22:02:09.000000000 +0200
+++ perl-5.8.1-RC4/Configure	2003-08-03 22:02:09.000000000 +0200
@@ -7508,7 +7508,7 @@
 			;;
 		*)  case "$osname" in
 	                darwin) dflt='none' ;;
-			svr4*|esix*|solaris|nonstopux) dflt='-fPIC' ;;
+			linux*|svr4*|esix*|solaris|nonstopux) dflt='-fPIC' ;;
 			*)	dflt='-fpic' ;;
 		    esac ;;
 	    esac ;;


More information about the hlfs-dev mailing list