develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #20606] [PATCH} openbsd hints

Thread Previous | Thread Next
From:
Abe Timmerman
Date:
February 2, 2003 09:29
Subject:
Re: [perl #20606] [PATCH} openbsd hints
Message ID:
200302021827.57240.abe@ztreet.demon.nl
Op een druilerige winterdag (Sunday 02 February 2003 18:22), schreef Abe Timmerman:

> Op een druilerige winterdag (Sunday 02 February 2003 04:22), schreef Todd C. Miller:
> > In message <rt-20606-50012.14.7796026894771@bugs6.perl.org>
> >
> > 	so spake Abe Timmerman (perlbug-followup):
> > > I have now confirmed that this patch breaks my openbsd-smokes.
> > >
> > > I don't know what this is all about, so I can't be of any real help,
> > > other than trying suggestions...
> >
> > Well perl-current works fine for me on OpenBSD-current/i386 and
> > passes all tests.  I don't know what your openbsd-smokes are :-).
> > I'll try it on an OpenBSD 3.2 machine soon.  Well, relatively soon
> > as I'm going to be out of town for the next 6 days.
> >
> > If you want to mail me some details as to what actually breaks that
> > would be helpful.
>
> I have put back the change from "-lc" to "-lc_r" under usethreads for
> osvers <= 3.2 here's my patch on top of yours, I hope this is okay for you
> as well:

And it helps if I include the patch (also attached, 'cause of long line)

--- hints/openbsd.sh.orig	Sun Feb  2 14:26:12 2003
+++ hints/openbsd.sh	Sun Feb  2 18:16:35 2003
@@ -104,6 +104,12 @@
 	# any openbsd version dependencies with pthreads?
 	ccflags="-pthread $ccflags"
 	ldflags="-pthread $ldflags"
+	case "$osvers" in
+	[0-2].*|3.[0-2])
+		# Change from -lc to -lc_r
+		libswanted=`echo " $libswanted "| sed -e 's/ c / c_r /' -e 's/^ //' -e 's/ $//'`
+	;;
+	esac
 esac
 EOCBU
 

Good luck,

Abe
-- 
Benjamin Goldberg> chr(0x20_0000+number) has that property, 
Benjamin Goldberg> unless space aliens land on earth.

These are the kinds of statements that make the snowballs in hell look
expectantly at the thermometer.  Or, in this case, the aliens look at
their calendar whether they can fit in an invasion.
                                   -- Jarkko Hietaniemi on p5p @ 2002-02-03

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About