Skip Menu |

This queue is for tickets about the PHP-Interpreter CPAN distribution.

Report information
The Basics
Id: 14317
Status: resolved
Worked: 5 min
Priority: 0/
Queue: PHP-Interpreter

People
Owner: george [...] omniti.com
Requestors: vrm [...] wom.hu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.0
Fixed in: (no value)



Subject: Makefile.PL problems with patch
Build fails if libphp5.so is not in a dir that the linker searches by default. Attached patch fixes this problem and an other one already reported by john at grumpet.net. Thank you for this module.
--- Makefile.PL.orig 2005-08-02 01:18:19.000000000 +0200 +++ Makefile.PL 2005-08-23 19:30:02.000000000 +0200 @@ -2,10 +2,9 @@ use Config; use File::Spec::Functions qw(catfile catdir); -my $phpdir = shift @ARGV || $^O eq 'MSWin32' ? 'C:\\php' : '/usr/local'; +my $phpdir = shift @ARGV || ($^O eq 'MSWin32' ? 'C:\\php' : '/usr/local'); print "using phpdir $phpdir\n"; -my @libs = ('-lphp5'); my $phpconfig = catfile $phpdir, 'bin', 'php-config'; @@ -13,7 +12,9 @@ my $php_lddlflags = `$phpconfig --ldflags`; chomp $php_lddlflags; push @lddlflags, $php_lddlflags; -push @lddlflags , "-L" . catdir $phpdir, "lib"; +my $php_embedlib_path = "-L" . catdir $phpdir, "lib"; +push @lddlflags , $php_embedlib_path; +my @libs = ("$php_embedlib_path -lphp5"); my $inc = "-I" . catdir ($phpdir, 'include') . " ".`$phpconfig --includes`;