Well...I installed Slackware 7.1 in my laptop and no problem with apache,php and mysql...
But now I installed the same slackware in other pc...
i installed Mysql, apache and apache works fine,...then i install php without errors but when I run httpd i get this error...

Syntax error on line 205 of httpd.conf:
Cannot load pathto/libphp4.so into server: pathto/libphp4.so:undefined symbol: uncompress

what is this error? why in the laptop all was fine doing the same???
thanks

    before doing 'make' edit the toplevel Makefile.

    make sure that the line beginning with 'LTLIBRARY_LDFLAGS = [...]' has '-lz' in it

      Sorry Pete....I don\'t really understand what u mean there.. I\'m facing the same problem too. I\'m wondering why ...: )
      thanks in advance!

        HI!!!THANKSSSSS!!!
        Say Mun, in this line I have
        LTLIBRARY_LDFLAGS = -"something" $(...) ...
        welll....just type -lz between = and the first -anything you have....

          ooopss....but now i think php code doesn´t work.........@!#$.....

            hehe....i forget uncomment line Addtype for php.............it works

              I'm installing now.....results not known yet!~ LoL...
              pray for me!

                Hey...thanks man..for the help!!!!
                IT works@! Had been working for nites to solve it...finally!!!
                LOL.
                x )

                  when compiling/installing php you begin with ./configure. After that you do make and make install. Before doing make, edit the file 'Makefile' in the dir 'php-4.0.6' (in my case version 4.0.6). Find a line that begins with 'LTLIBRARY_LDFLAGS = ', in my case it is

                  LTLIBRARY_LDFLAGS = -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)

                  i changed it to

                  LTLIBRARY_LDFLAGS = -lz -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)

                  Now save the file and run make and make install.

                  That should do it.

                    Hi Pete,
                    What kind of a hack is that? What changes by adding -lz ?
                    Thanks,
                    Farzal

                      Write a Reply...