Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

Bus error on Mac OS X 10.4

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


brian at bartosoft

Jul 25, 2006, 6:54 AM

Post #1 of 9 (3216 views)
Permalink
Bus error on Mac OS X 10.4

Hi all again. I figured I'd start a new thread since I seemed to have
stubled on to a new problem. It's pretty simple to explain. I installed
Embperl 2.2.0 on my Mac powerbook (10.4). When I try to use Embperl in a
script it generates a bus error, like so:

# perl -e "use Embperl"
bus error
#

It runs fine on my FreeBSD box, so i'm guessing it's a Mac thing. I'm not
too familiar with troubleshooting bus errors, but i'd really like to get
this running on my mac laptop so I can have a portable embperl development
workstation. Any ideas where to start?

Thanks,
Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


richter at ecos

Aug 7, 2006, 7:01 AM

Post #2 of 9 (2975 views)
Permalink
RE: Bus error on Mac OS X 10.4 [In reply to]

Hi,

>
> Hi all again. I figured I'd start a new thread since I seemed
> to have stubled on to a new problem. It's pretty simple to
> explain. I installed Embperl 2.2.0 on my Mac powerbook
> (10.4). When I try to use Embperl in a script it generates a
> bus error, like so:
>
> # perl -e "use Embperl"
> bus error
> #
>

Does make test fail also? If yes please run

perl Makefile.PL debug
make testgdb
BT

And send me the output

If not please provide a stackbacktrace?

E.g.

perl Makefile.PL debug && make install
gdb --args perl -e 'use Embperl'
C
Bt

Gerald




** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


richter at ecos

Aug 8, 2006, 1:51 PM

Post #3 of 9 (2966 views)
Permalink
RE: Bus error on Mac OS X 10.4 [In reply to]

>
> I've run the commands you asked and have attached them in the
> file gdb.txt
>

Sorry, I have missed one command, can you please before you type the "BT"
type an "r". Otherwise the programm will never run...

Gerald



> I have also attached a different file that shows that 'hacks'
> I had to do to get it to compile. There was a problem with
> eputil.c and the timezone variable. It's the same fix that
> was implemented for FreeBSD, just has to be implemented for
> Mac OS X as well. The changes I made are documented in the
> attached file compilehacks.txt.
>
> Thanks for your help. Let me know if there is anything more I can do.
> Happy to keep sending output.
>
> -Brian
>
>
> ** Virus checked by BB-5000 Mailfilter **
> !DSPAM:44d8db48171136491211187!
>



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


brian at bartosoft

Aug 8, 2006, 4:50 PM

Post #4 of 9 (2961 views)
Permalink
Re: Bus error on Mac OS X 10.4 [In reply to]

>>
>> I've run the commands you asked and have attached them in the
>> file gdb.txt
>>
>
> Sorry, I have missed one command, can you please before you type
> the "BT"
> type an "r". Otherwise the programm will never run...
>
> Gerald
>

Yeah, that didn't seem right to me but I'm not too familiar with
using gdb. OK, the new file is attached. Hopefully more useful output
this time.


>
>> I have also attached a different file that shows that 'hacks'
>> I had to do to get it to compile. There was a problem with
>> eputil.c and the timezone variable. It's the same fix that
>> was implemented for FreeBSD, just has to be implemented for
>> Mac OS X as well. The changes I made are documented in the
>> attached file compilehacks.txt.
>>
>> Thanks for your help. Let me know if there is anything more I can do.
>> Happy to keep sending output.
>>
>> -Brian


Speaking of hacks, it's also noteworthy that when I compiled this on
my Mac (10.4) that the expected file Embperl.so was actually named
Embperl.bundle. Simply remaming it to Embperl.so seems to work. For
some reason Macs want to use a .bundle extension. Otherwise the test
will fail because the test script can't find Embperl.so.
Attachments: gdb.txt (25.1 KB)


richter at ecos

Aug 9, 2006, 1:13 PM

Post #5 of 9 (2945 views)
Permalink
RE: Bus error on Mac OS X 10.4 [In reply to]

> >>
> >> I've run the commands you asked and have attached them in the file
> >> gdb.txt
> >>
> >
> > Sorry, I have missed one command, can you please before you
> type the
> > "BT"
> > type an "r". Otherwise the programm will never run...
> >
> > Gerald
> >
>
> Yeah, that didn't seem right to me but I'm not too familiar
> with using gdb. OK, the new file is attached. Hopefully more
> useful output this time.
>

Yes, that brings us one step further, but not really explains what happens.

I try to catch somebody with a Mac here and see if I get the same error,
then it would be easier to find.

>
> Speaking of hacks, it's also noteworthy that when I compiled
> this on my Mac (10.4) that the expected file Embperl.so was
> actually named Embperl.bundle. Simply remaming it to
> Embperl.so seems to work. For some reason Macs want to use a
> .bundle extension. Otherwise the test will fail because the
> test script can't find Embperl.so.
>

I think we should try to fix the build environment for the Mac, after we
have get it working. I keep your two points in mind.

Gerald




** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


f.wesemann at fotofinder

Aug 10, 2006, 11:27 AM

Post #6 of 9 (2941 views)
Permalink
Re: Bus error on Mac OS X 10.4 [In reply to]

Brian schrieb:
>>> I have also attached a different file that shows that 'hacks'
>>> I had to do to get it to compile. There was a problem with
>>> eputil.c and the timezone variable. It's the same fix that
>>> was implemented for FreeBSD, just has to be implemented for
>>> Mac OS X as well. The changes I made are documented in the
>>> attached file compilehacks.txt.

I' am actually running in exactly this problem, while i am trying to
install Embperl 2.20 on an intel Mac mini
Unfortunately i can't find mentioned file 'compilehacks.txt' neither in
the mails nor in the archives and I'm not experienced enough to
translate the BSD-Hack to MacOSX.

Would you please be so kind and send me that file?
Or could Gerald be so kind and apply a Patch to the sources?

Thanks for helping

frank

--
mit freundlichem Gruß

Frank Wesemann
Fotofinder GmbH USt-IdNr. DE812854514
Software Entwicklung Web: http://www.fotofinder.net/
Potsdamer Str. 96 Tel: +49 30 59006977
10785 Berlin Fax: +49 30 59006959

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


brian at bartosoft

Aug 10, 2006, 11:43 AM

Post #7 of 9 (2940 views)
Permalink
Re: Bus error on Mac OS X 10.4 [In reply to]

> Brian schrieb:
>>>> I have also attached a different file that shows that 'hacks'
>>>> I had to do to get it to compile. There was a problem with
>>>> eputil.c and the timezone variable. It's the same fix that
>>>> was implemented for FreeBSD, just has to be implemented for
>>>> Mac OS X as well. The changes I made are documented in the
>>>> attached file compilehacks.txt.
>
> I' am actually running in exactly this problem, while i am trying to
> install Embperl 2.20 on an intel Mac mini
> Unfortunately i can't find mentioned file 'compilehacks.txt' neither in
> the mails nor in the archives and I'm not experienced enough to
> translate the BSD-Hack to MacOSX.
>
> Would you please be so kind and send me that file?
> Or could Gerald be so kind and apply a Patch to the sources?
>
> Thanks for helping
>
> frank
>

Don't have the file with me right now but try this:

Open eputil.c
Jump to line 2065 which should put you right before "#ifdef WIN32". If
not, move to just before this statement. Add a new line BEFORE it like so:

#define __BSD_VISIBLE 1

I think this should get it to comile. Let me know. :)

- Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


f.wesemann at fotofinder

Aug 10, 2006, 11:56 AM

Post #8 of 9 (2949 views)
Permalink
Re: Bus error on Mac OS X 10.4 [In reply to]

brian [at] bartosoft schrieb:
> Open eputil.c
> Jump to line 2065 which should put you right before "#ifdef WIN32". If
> not, move to just before this statement. Add a new line BEFORE it like so:
>
> #define __BSD_VISIBLE 1

GREAT!
Of course it did, because it a BSD-like Unix.

You made my day!
Thank you very much.
I owe you a beer :)

frank


--
mit freundlichem Gruß

Frank Wesemann
Fotofinder GmbH USt-IdNr. DE812854514
Software Entwicklung Web: http://www.fotofinder.net/
Potsdamer Str. 96 Tel: +49 30 59006977
10785 Berlin Fax: +49 30 59006959

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


brian at bartosoft

Aug 10, 2006, 12:05 PM

Post #9 of 9 (2951 views)
Permalink
Re: Bus error on Mac OS X 10.4 [In reply to]

> brian [at] bartosoft schrieb:
>> Open eputil.c
>> Jump to line 2065 which should put you right before "#ifdef WIN32". If
>> not, move to just before this statement. Add a new line BEFORE it like
>> so:
>>
>> #define __BSD_VISIBLE 1
>
> GREAT!
> Of course it did, because it a BSD-like Unix.
>

No problem :) Unfortunately 'make test' will still fail for two reasons.

1) Rename Embperl.bundle to Embperl.so... and
2) bus error

Now if you manage to get embperl to run without a bus error let me know. I
ran a stack trace for Gerald and he is looking in to it.

- Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.