[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Porters] New MacPerl build system now available!



Hello.

I'm trying to build 5.6.0 under MPW-GM(Feb 2k) with MacPerlConfig.mk
like below.

> MACPERL_BUILD_TOOL   = SC MrC
> MACPERL_BUILD_APPL   = SC MrC
> MACPERL_BUILD_EXT_STATIC = SC MrC
> MACPERL_BUILD_EXT_SHARED =  MrC
>
> MACPERL_INST_TOOL_68K  = SC
> MACPERL_INST_TOOL_PPC  = MrC
> MACPERL_INST_APPL_68K  = SC
> MACPERL_INST_APPL_PPC  = MrC
> MACPERL_INST_EXT_PPC  = MrC

First, I created two empty text file "obj:UnPreload.c.68K.o"
and "UnPreload"('cause I have no Metrowerks product), then try
"BuildProgram all" command. The build process stops at
DynaLoader ext module.

> Writing Makefile.mk for DynaLoader
> # 0:44:47 AM ----- Build of static.
> # 0:44:47 AM ----- Analyzing dependencies.
> # dmake:  Error -- `dl_mac.xs' not found, and can't be made
> ### MPW Shell - Execution of BuildProgram terminated.
> ### MPW Shell - Execution of all.makeout terminated.
> ### MPW Shell - Execution of BuildProgram terminated.

So, I copied file "HD:MacPerl:perl-5.6.0:macos:dl_mac.xs" to
"HD:MacPerl:perl-5.6.0:ext:DynaLoader:", then try
"BuildProgram all" again. It stops with this message.

> SC C Compiler 8.9.0d1c1
> Copyright (C) 1985-2000 by Apple Computer, Inc.
>
>      RETVAL = connID;
>      ^
> File "DynaLoader.xs"; line 78 #Error: undefined identifier 'RETVAL'
> #-----------------------
>      RETVAL = (ConnectionID) 0;
>                               ^
> File "DynaLoader.xs"; line 80 #Error: cannot implicitly convert
> from: (struct OpaqueCFragConnectionID *)
> to  : (int)
> #-----------------------
>      RETVAL = (void *) symAddr;
>                               ^
> File "DynaLoader.xs"; line 102 #Error: cannot implicitly convert
> from: (void *)
> to  : (int)
> #-----------------------
> ### MPW Shell - Execution of static.makeout terminated.
> ### MPW Shell - Execution of BuildProgram terminated.
> ### MPW Shell - Execution of all.makeout terminated.
> ### MPW Shell - Execution of BuildProgram terminated.

I looked into file "DynaLoader.c". It seems that the variable
RETVAL is not declared anywhere. So, I modified "DynaLoader.c"
by hand and continued build process, but it stops at NDBM_File
module with same reason.

Is this a probrem due to xsubpp, or I made mistake in somewhere?

Sorry for poor English, thanks.

P.S.
miniperl seems to be built properly, like:
> :miniperl -e 'print ":-)\n" if $^O eq "MacOS";'
> :-)

--
//////////////////////////////////////////////
// K. Miyazaki
//     KHC03156@nifty.ne.jp
//     http://homepage2.nifty.com/kay/McPLW/
//////////////////////////////////////////////

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-porters-request@macperl.org