Antwort: [PHP-INST] make errors under solaris 8 on inet_aton
| From: | thomas dot sinka at it-choice dot de | Date: | Wed, 07 May 2003 12:20:40 +0000 |
| Subject: | Antwort: [PHP-INST] make errors under solaris 8 on inet_aton | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10824@lists.php.net to get a copy of this message | ||
> Hi everybody :-)
>
> I have to install PHP with GD library support. I configured like this :
>
> ./configure --with-apxs=/usr/local/apache/bin/apxs
> --with-mysql=/usr/local/mysql --with-gd --with-zlib
>
> It works fine ! Then, make stops at this errors (there are several
previous
> errors, but the don't stop compilation)
>
> ext/standard/fsock.lo: In function `php_lookup_hostname':
> /home/pierrick/php/php-4.3.1/ext/standard/fsock.c:120: undefined
reference
> to `inet_aton'
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
>
> Any idea about what I should do ?
>
>
>
>
>
*************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La SOCIETE GENERALE et ses filiales declinent toute responsabilite au
> titre de ce message s'il a ete altere, deforme ou falsifie.
> ********
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
> shall be liable for the message if altered, changed or falsified.
>
>
*************************************************************************
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Hi,
AFAIK inet_aton isn't available at solaris as expected by php. Reading
posts in some other lists there seems to be a workaround by linking with
libnsl (-lnsl). Try to export LDFLAGS="-lnsl" prior to configuring and
compiling php or you might have to modify the Makefile after configuring
php. Try to execute nm on the shared libraries in the system library
directories to see if there is any shared library that provides inet_aton.
Thomas
===============================================
Thomas Sinka
mobil: +49 163 3 23 12 72
mailto: thomas.sinka@it-choice.de
IT-Choice Software AG
Kaiserstraße 160-162, 76133 Karlsruhe, Germany
Tel.: +49(0)721-85 006-0, Fax: +49(0)721-85 006-77
www.it-choice.de, info@it-choice.de
Amtsgericht Karlsruhe, HRB 9060
USt-Id Nr.: DE 812 950 635
Vorstand: Mirko Ketterer (Vorsitzender),
Stephanie Lehmann, Dirk Ludwig
Aufsichtsratsvorsitzender: Horst Gann