🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1466

Problems with ibuild interviews application

#1466
From: Erik Ohrnberger
Date: Wed, 12 Jun 1991 16:37
53 lines
2033 bytes
When I try to compile the ibuild program, I get the following error
messages:

"../ibprops.c", line 61: error:  undefined function strcpy called
"../ibprops.c", line 67: error:  undefined function strlen called

Line 56:     strcpy(_props, text);
Line 62:    Edit(new TextBuffer(_props, strlen(text), rows*cols));

So I comment out the #include for the strings.h header file and
replace it with:

extern "C"
{
    char * strcpy (char *, const char *);
    int    strlen (const char *);
};

Now the ibprops.c module compiles correctly.  After ibuild is made
(a.out file really).  I try it out, and get the following error
message when I try to load the Check_Box.Tool interface file from the
directory where the ibuild source code is located:

Bus error            SUN4/a.out (core dumped)

Then I go into dbx and try to find out where it dumped:

dbx SUN4/a.out core
Reading symbolic information...
Read 7185 symbols
program terminated by signal SEGV (no mapping at the fault address)
(dbx) where
Update__6ViewerFv() at 0xf76c7bd0
Update__6EditorFv() at 0xf7679ef0
DoUpdate__7UnidrawFv() at 0xf76c3308
Run__7UnidrawFv() at 0xf76c3288
main() at 0x50670
(dbx) 

Ok.  So what all does this mean?  And how do I fix it?

The system is a SUN4 SparcServer, running SunOS 4.1.B using the Sun supplied
AT&T C++ compiler (cfront etc)

Any help in this matter would be greatly apprecited.

		Erik.

-- 
Erik Ohrnberger, EDS                 ...!uunet!edsews!edstip!ohrnb
800 Tower Dr. P.O. Box 7019    or  ohrnb@edstip.EDS.COM
Troy, MI 48007-7019          Voice:(313)265-9117  Fax:265-9241 
Technical Details
Message-ID: <933@edstip.EDS.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!edsews!edstip!ohrnb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!edsews!edstip!ohrnb
From: ohrnb@edstip.EDS.COM (Erik Ohrnberger)
Newsgroups: comp.windows.interviews
Subject: Problems with ibuild interviews application
Keywords: compilation bug, core dump, crash
Message-ID: <933@edstip.EDS.COM>
Date: 12 Jun 91 16:37:16 GMT
Organization: EDS - Tech Pubs, Bloomfield Hills, MI
Lines: 53