On 02/25/04 03:40, DH wrote:
--- "Randy W. Sims" <[EMAIL PROTECTED]> wrote:

On 02/25/04 02:12, DH wrote:

*snip*


LINK : fatal error LNK1141: failure during build of exports file
...

Looks like the filename is not being passed in. Check 'make\lib\SDL\Build.pm' in your override of the 'process_xs' method that $file is set correctly.


What is correct?
src\SDL\SFont.xs  and  src\SDL_perl.xs  and  src\SDL\OpenGL.xs
all look correct to me.

Yep, I see the problem. We need to figure out a better solution, but for now...


In your subclass, override link_c() so you can locally set the module name like

sub link_c {
  my $self = shift;
  local $self->{properties}{module_name} = 'SDL::SFont';
  $self->SUPER::link_c(@_);
}

Let me know if this gets you a little further; I'll take a look at better fix when I get a chance.


I changed it to

    sub link_c {
       my $self = shift;
       my( $blib, $rib ) = @_;

       $rib =~ s{^src[\\/]}{};
       $rib =~ s{[\\/]}{::}g;
       warn "$/ rib $rib $/";
       local $self->{properties}{module_name} = $rib;
       $self->SUPER::link_c(@_);
    }

and things are getting better a lot better.
Now i'm geting some errors related to perl -V:libpth being wrong,
which reveals that Module::Build doesn't pickup extra values for libpth from
$ENV{LIB}, which it should

I didn't add it because Microsoft C automatically looks at LIB and INCLUDE. It shouldn't be neccessary. I can't remember off hand, but if the compiler/linker has switch for printing out debugging info like the directories it's looking in, etc, you might want to try adding it.


Randy.

Reply via email to