<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Package:</span></font> <font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>php4-dev<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Version:</span></font> <font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>4.4.4-0.dotdeb.1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>New to Debian (but have had some unix experience in the
past)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Need to patch php4 ext/mssql/php_mssql.c in order to call
stored procedures from MS SQL<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>(For recipy & reason for this: see <a
href="http://www.devarticles.com/c/a/PHP/Executing-Microsoft-SQL-Server-Stored-Procedure-from-PHP-on-Linux"
title="http://www.devarticles.com/c/a/PHP/Executing-Microsoft-SQL-Server-Stored-Procedure-from-PHP-on-Linux">http://www.devarticles.com/c/a/PHP/Executing-Microsoft-SQL-Server-Stored-Procedure-from-PHP-on-Linux</a>
).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<pre><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> I use “apt-get source php4”, “apt-get build-dep php4“ and dpkg-buildpackage to build.<o:p></o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>It all stops when the cgi-build dir comes to the linking stage with the message:</span></font><span
lang=DA><o:p></o:p></span></pre>
<p class=MsoNormal style='text-indent:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>libtool: link:
`ext/openssl/openssl.lo' is not a valid libtool object<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>openssl.lo, because it is the first file in the link
list – all .lo files under cgi-build/ext are empty. This is not the case
with apache-build and apache2-build extension, linking here works.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The cause of this is that the generated Makefile compile
statement in cgi-build differs from apache(2)-build’s Makefile:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Example from apache(2)’s (working):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/bin/sh /usr/local/src/php4-4.4.4/apache2-build/libtool
--silent --preserve-dup-deps --mode=compile gcc
-I/usr/local/src/php4-4.4.4/ext/bcmath/libbcmath/src -Iext/bcmath/ -I/usr/local/src/php4-4.4.4/ext/bcmath/
-DPHP_ATOM_INC -I/usr/local/src/php4-4.4.4/apache2-build/include
-I/usr/local/src/php4-4.4.4/apache2-build/main -I/usr/local/src/php4-4.4.4
-I/usr/local/src/php4-4.4.4/ext/mbstring/mbregex -I/usr/local/src/php4-4.4.4/ext/mbstring/libmbfl
-I/usr/local/src/php4-4.4.4/ext/mbstring/libmbfl/mbfl
-I/usr/local/src/php4-4.4.4/apache2-build/TSRM
-I/usr/local/src/php4-4.4.4/apache2-build/Zend -I/usr/local/src/php4-4.4.4/main
-I/usr/local/src/php4-4.4.4/Zend -I/usr/local/src/php4-4.4.4/TSRM
-I/usr/local/src/php4-4.4.4/apache2-build/ -O2 -Wall
-fsigned-char -fno-strict-aliasing -gstabs -prefer-pic -c
/usr/local/src/php4-4.4.4/ext/bcmath/libbcmath/src/compare.c -o
ext/bcmath/libbcmath/src/compare.lo<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Example from cgi-build (not working):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>gcc -Iext/standard/
-I/usr/local/src/php4-4.4.4/ext/standard/ -DPHP_ATOM_INC
-I/usr/local/src/php4-4.4.4/cgi-build/include
-I/usr/local/src/php4-4.4.4/cgi-build/main -I/usr/local/src/php4-4.4.4
-I/usr/local/src/php4-4.4.4/ext/mbstring/mbregex -I/usr/local/src/php4-4.4.4/ext/mbstring/libmbfl
-I/usr/local/src/php4-4.4.4/ext/mbstring/libmbfl/mbfl
-I/usr/local/src/php4-4.4.4/cgi-build/TSRM
-I/usr/local/src/php4-4.4.4/cgi-build/Zend -I/usr/local/src/php4-4.4.4/main
-I/usr/local/src/php4-4.4.4/Zend -I/usr/local/src/php4-4.4.4/TSRM
-I/usr/local/src/php4-4.4.4/cgi-build/ -O2 -Wall
-fsigned-char -fno-strict-aliasing -gstabs -c
/usr/local/src/php4-4.4.4/ext/standard/array.c -o ext/standard/array.o
&& echo > ext/standard/array.lo<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> It seems obvious why from these examples that the
problem is that the Makefile for cgi-build is not correctly generated and
probably easy if one knows where to fix it ( I have not found where). A
workaround I might try is to edit the Makefile, but the root cause here seems
to me to be a bug(?).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If there are any other solutions, please let me know.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>*: other “bugs/problems incurred while running dpkg-buildpackage,
FYI:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>1) All config.* files are deleted (cleaned away) and
reported missing initially. Solution: re-install these and go on, flag
dpkg-buildpackage with –nc hereafter<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2) libtool not found in the xxx-build dirs when these are to
be built Solution: link in /usr/bin/libtool.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>_____________________________</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Gunnar Skogen </span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> </span></font><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Laycan Solutions AS</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>