httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Building on Red Hat 9
Date Fri, 26 Mar 2004 00:50:02 GMT
David Wheeler wrote:
> On Mar 25, 2004, at 4:26 PM, Stas Bekman wrote:
> 
>> MakeMaker doesn't know how to deal with .dylib target? It hasn't built 
>> it. Do you have a rule to build .dylib in Makefile?
>>
>> May be it has to be .so and then renamed to .dylib post build (just 
>> before you test it?).
>>
>> How does it work with other CPAN .xs modules?
> 
> 
> I have no idea, I don't know much about XS. FWIW, I see this in DBI's 
> Makefile.PL:
> 
> my %opts = (
>     NAME=> 'DBI',
>     VERSION_FROM=> 'DBI.pm',
>     EXE_FILES => [ "dbish$ext_pl", "dbiproxy$ext_pl" ],
>     DIR => [],
>     dynamic_lib => { OTHERLDFLAGS => "$::opt_g" },
>     clean => { FILES=> "\$(DISTVNAME) Perl.xsi "
>             ."dbish$ext_pl dbiproxy$ext_pl ndtest.prt" },
>     dist  => {
>     DIST_DEFAULT=> 'clean distcheck disttest ci tardist',
>     PREOP => '$(MAKE) -f Makefile.old distdir',
>     COMPRESS => 'gzip -v9', SUFFIX => 'gz',
>     },
> );
> 
> Could it be that "dynamic_lib" parameter is what we want?

I'm not 100% sure, but I think not. You lack a simple xs.->.c conversion, i.e. 
it ignores the .xs files. Please show me the execution path without your 
recent patch. But before you do tha, can you open your MAkefile and check for 
xs targets? e.g. on my machine there are:

# --- MakeMaker xs_c section:

.xs.c:
         $(PERLRUN) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $(XSUBPP_EXTRA_ARGS) $*
.xs > $*.xsc && $(MV) $*.xsc $*.c


# --- MakeMaker xs_o section:

.xs$(OBJ_EXT):
         $(PERLRUN) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.xsc && $(MV)
  $*.xsc $*.c
         $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c


so when i tell MM to create .o, it first will use xs_o target which will 
trigger xs_c target, so it'll do xs -> c -> o. I suppose that since you use 
dylib it has no idea what to do with it. as you probably don't have xs_dylib 
make target

Also could you grep for some CPAN modules that use the 'OBJECT' argument in 
Makefile.PL?
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message