Enabling MSSQL PHP5 Debian Tut - Compiling error

Discussion in 'HOWTO-Related Questions' started by Debianer, Dec 29, 2008.

  1. Debianer

    Debianer New Member

    Tutorial: http://www.howtoforge.com/enabling-mssql-php5-debian-lenny


    I have error when dpkg-buildpackage (step 9) used:

    Code:
    make[1]: *** [ext/imap/php_imap.lo] Błąd 1 
    make[1]: Opuszczenie katalogu `/usr/src/php5-5.2.6/apache2-build' 
    make: *** [build-apache2-stamp] Błąd 2 
    dpkg-buildpackage: niepowodzenie: debian/rules build zwrócił status błędu 2
    translation: Błąd = error
    opuszczenie katalogu = directory leave
    last line: dpkg-buildpackage: failure: debian/rules binary gave error exit status 2

    debian/rules is set as in tutorial:

    Code:
    ..."--with-mysql=shared,/usr \
      --with-mssql=shared,/usr/local/freetds \
      --with-mysqli=shared,/usr/bin/mysql_config \"...
    What I am doing bad?
    My Debian is 4.0 Etch
     
  2. Debianer

    Debianer New Member

    Even code:
    Code:
    apt-get source php5
    dpkg-buildpackage
    
    Without editing debian/rules etc. Dont work.
    Same error that debian/rules bla bla bla.
    What is bad?
     
  3. falko

    falko Super Moderator ISPConfig Developer

    What's displayed directly before this error?
     
  4. Debianer

    Debianer New Member

    Code:
     in this function)
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:3913: warning: implicit declaration of f                                                                             unction ‘rfc822_output_address_list’
    /usr/src/php5-5.2.6/ext/imap/php_imap.c: In function ‘mm_notify’:
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4410: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4410: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4419: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4419: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c: In function ‘mm_list’:
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4436: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4436: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4445: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4445: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4457: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4457: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4464: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4464: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c: In function ‘mm_lsub’:
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4483: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4483: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4492: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4492: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4502: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4502: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4509: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4509: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c: In function ‘mm_log’:
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4547: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4547: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4557: warning: pointer targets in assign                                                                             ment differ in signedness
    /usr/src/php5-5.2.6/ext/imap/php_imap.c:4557: warning: pointer targets in passin                                                                             g argument 1 of ‘strlen’ differ in signedness
    make[1]: *** [ext/imap/php_imap.lo] Błąd 1
    make[1]: Opuszczenie katalogu `/usr/src/php5-5.2.6/apache2-build'
    make: *** [build-apache2-stamp] Błąd 2
    dpkg-buildpackage: niepowodzenie: debian/rules build zwrócił status błędu 2
    System:/usr/src/php5-5.2.6#
    
     
  5. Debianer

    Debianer New Member

    Thats the full error with lines behind ;).
     
  6. falko

    falko Super Moderator ISPConfig Developer

  7. Debianer

    Debianer New Member

    With using method from this tutorial there is exactly same error as in original method.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/apt/sources.list?
     
  9. Debianer

    Debianer New Member

    I've tried sources.list from tutorial, but I did not work, so friend from another forum advised me to use this:
    Code:
    deb http://debian.ludost.net/debian/ testing main contrib non-free 
    deb-src http://debian.ludost.net/debian/ testing main contrib non-free 
    deb http://ftp.pl.debian.org/debian/ lenny main non-free contrib 
    deb-src http://ftp.pl.debian.org/debian/ lenny main non-free contrib 
    deb http://security.debian.org/ lenny/updates main contrib non-free 
    deb-src http://security.debian.org/ lenny/updates main contrib non-free 
    It works for him, for me not...
     
  10. Debianer

    Debianer New Member

    I've made php5 package from source on another machine with installed Lenny (netinst) on it.
    I've copied package on my server, then installed package with (or by?):
    Code:
    dkpg -i php5-mssql_5.2.5-3_i386.deb
    Next I've tried to install
    Code:
    apt-get install php5-sybase
    with no sucess:
    Code:
    dpkg: błąd przetwarzania /var/cache/apt/archives/php5-sybase_5.2.6-5_i386.deb (--unpack): 
     próba nadpisania "/usr/lib/php5/20060613+lfs/mssql.so", który istnieje także w pakiecie php5-mssql 
    Wystąpiły błędy podczas przetwarzania: 
     /var/cache/apt/archives/php5-sybase_5.2.6-5_i386.deb 
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    In english this error mean that "/usr/lib/php5/20060613+lfs/mssql.so" already exist in php5-mssql and he dont want to overwrite.

    Also my another question is what should I change in:
    /etc/freetds/freetds.conf
    What DNS Entries?
     
  11. Debianer

    Debianer New Member

    I am not sure does it work, but I've added code in php.ini:
    Code:
    extension_dir = "/usr/lib/php5/20060613+lfs/"
    extension=mssql.so
    and it seems to work.
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Do you see mssql in the output of phpinfo();?
     

Share This Page