🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52513

<varargs.h> on Sparc 2 running SunOS-4.1.2 & Making Perl

#52513
From: Chris Jepeway
Date: Sun, 12 Jul 1992 21:29
27 lines
1742 bytes
I'm having trouble compiling Perl 4.035 with gcc-2.2.2.
All the code that uses <varargs.h> in perl dumps core
when called; in particular, die just doesn't work.  Here's
a transcript of a gdb session that shows the problem:

(gdb) run
Starting program: /usr/local/bin/perl
die "yo";
^D
Program received signal 11, Segmentation fault
0xf773235c in strlen ()
(gdb) where
#0  0xf773235c in strlen ()
#1  0x2e174 in str_set (str=0x5e648, ptr=0x3<Address 0x3 out of bounds>)
    at str.c:353
#2  0x3afdc in mess (args=0xf7fffb10 "") at util.c:994
#3  0x3b168 in Myfatal (__builtin_va_alist=317704) at util.c:1042
#4  0x1e8d4 in eval (arg=0x5bcc8, gimme=0, sp=1) at eval.c:1331
#5  0x4014 in cmd_exec (cmdparm=0x5bd48, gimme=0, sp=-1) at cmd.c:654
#6  0x25cf4 in main (argc=-1, argv=0xf7fffda4, env=0xf7fffda4) at perl.c:890
(gdb) quit

I ran gcc's fixincludes script after installing gcc, and I compiled
Perl with all optimizations turned off.  Anybody know what else I
might need to do so that <varargs.h> & Perl source work together?

Chris <jepeway@cs.utk.edu>
Technical Details
Message-ID: <l6191gINN12r@utkcs2.cs.utk.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!utkcs2!utkcs2!usenet

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b16716b8579a5d6e,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 10259a,b16716b8579a5d6e,start
X-Google-Attributes: gid10259a,public
X-Google-ArrivalTime: 1992-07-13 06:40:12 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!utkcs2!utkcs2!usenet
From: jepeway@cs.utk.edu (Chris Jepeway)
Newsgroups: gnu.gcc.help,comp.lang.perl
Subject: <varargs.h> on Sparc 2 running SunOS-4.1.2 & Making Perl
Date: 12 Jul 92 21:29:20 GMT
Organization: /silver/homes/jepeway/.organization
Lines: 27
Distribution: world
Message-ID: <l6191gINN12r@utkcs2.cs.utk.edu>
NNTP-Posting-Host: tonka.cs.utk.edu