*BSD News Article 70110


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!usenet.etri.re.kr!news.kreonet.re.kr!bofh.dot!usenet.seri.re.kr!bofh.dot!news.cais.net!news.mathworks.com!news.kei.com!usenet
From: ckd@loiosh.kei.com (Christopher Davis)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: perl 5.002 on BSD/OS 2.1 ?
Date: 03 Jun 1996 14:57:30 -0400
Organization: Mirabile Wildlife Agency
Lines: 108
Sender: ckd@loiosh.kei.com
Message-ID: <w420jw3ecl.fsf@loiosh.kei.com>
References: <31B2C683.794BDF32@francenet.fr>
NNTP-Posting-Host: loiosh.kei.com
Mime-Version: 1.0 (generated by tm-edit 7.66)
Content-Type: text/plain; charset=US-ASCII
In-reply-to: Gildas Perrot's message of Mon, 03 Jun 1996 13:03:31 +0200
X-Attribution: ckd
X-Newsreader: Gnus v5.0.15

GP> == Gildas Perrot <perrot@francenet.fr>

 GP> Hi,
 GP> I am trying to install perl 5.002 on BSD/OS 2.1. Here is myconfig :

BSDI's changes to 5.001m didn't make 5.002.  Use this:

--- perl5.002/hints/bsdos.sh.orig	Mon Jan 22 20:42:32 1996
+++ perl5.002/hints/bsdos.sh	Tue Mar 19 10:49:12 1996
@@ -1,53 +1,82 @@
-# hints/bsdi_bsdos.sh
+# hints/bsdos.sh
 #
 # hints file for BSD/OS 2.x (adapted from bsd386.sh)
 # Original by Neil Bowers <neilb@khoros.unm.edu>
 #     Tue Oct  4 12:01:34 EDT 1994
 # Updated by Tony Sanders <sanders@bsdi.com>
-#     Mon Mar 13 12:17:24 CST 1995
+#     Mon Nov 27 17:25:51 CST 1995
 #
 # You can override the compiler and loader on the Configure command line:
-#     ./Configure -Dcc=gcc -Dld=ld
+#     ./Configure -Dcc=shlicc2 -Dld=shlicc2
 
 # filename extension for shared library objects
 so='o'
 
-d_voidsig='define'
+sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 '
 signal_t='void'
-
-# If Configure's signal detection fails, uncomment this line.
-# sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 '
-
+d_voidsig='define'
 d_dosuid='define'
 
-# we don't want to use -lnm, since exp() is busted in there (in 1.1 anyway)
+# we don't want to use -lnm, since exp() is busted (in 1.1 anyway)
 set `echo X "$libswanted "| sed -e 's/ nm / /'`
 shift
 libswanted="$*"
 
-# Avoid telldir prototype conflict in pp_sys.c  (BSD/386 uses const DIR *)
+# BSD/OS X libraries are in their own tree
+glibpth="$glibpth /usr/X11/lib"
+ldflags="$ldflags -L/usr/X11/lib"
+
+# Avoid telldir prototype conflict in pp_sys.c
 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
 
+case "$bsdos_distribution" in
+defined)
+	d_portable='no'
+	prefix='/usr/contrib'
+	man3dir='/usr/contrib/man/man3'
+	;;
+esac
+
 case "$osvers" in
 1.0*)
 	# Avoid problems with HUGE_VAL in POSIX in 1.0's cc.
 	POSIX_cflags='ccflags="$ccflags -UHUGE_VAL"' 
 	;;
 1.1*)
-	# Use gcc2 (2.5.8) if available in 1.1.
+	# Use gcc2
 	case "$cc" in
-	'')	cc=gcc2 ;;
+	'')	cc='gcc2' ;;
 	esac
 	;;
 2.*)
-	# Use 2.X's gcc2
+	case "$osvers" in
+	2.1*)	# dlopen() is supported in 2.1
+		usedl='true'
+		d_dlopen='define'
+		cccdlflags='none'
+		# pre-link against the shared C library
+		lddlflags='-r -lc_s.2.1.0'
+
+		# BSD/OS 2.1 doesn't (yet) support `true' dynamic linking
+		# so we `preload' the shared libraries by linking
+		# against them; even though we don't pull in any symbols.
+		libswanted="Xpm Xaw Xmu Xt SM ICE Xext X11 $libswanted"
+		libswanted="rpc curses termcap $libswanted"
+
+		# Use the system malloc or else you'll have dualing mallocs!
+		d_mymalloc='undef'
+		usemymalloc='n'
+		;;
+	esac
+
+	# default to GCC 2.X w/shared libraries
 	case "$cc" in
-	'')	cc=gcc2 ;;
+	'')	cc='shlicc2' ;;
 	esac
 
-	# Link with shared libraries in 2.X
+	# default ld to shared library linker
 	case "$ld" in
-	'')	ld='shlicc' ;;
+	'')	ld='shlicc2' ;;
 	esac
 
 	# setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS stuff