ndoutils compilation problem on Solaris 10
Damien Bastié
damien at merione.net
Sat Apr 15 01:32:53 CEST 2006
Hi,
I have corrected the problem by adding in io.c file :
#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) +
strlen ((ptr)->sun_path))
Damien
Le 14 avr. 06, à 20:54, Damien Bastié a écrit :
> Hi,
>
> I have corrected the problem by adding in io.c file :
>
> #define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path)
> + strlen ((ptr)->sun_path))
>
> Damien
>
> Le 14 avr. 06, à 18:25, Damien Bastié a écrit :
>
>> Hi,
>>
>> I tried to compil ndoutils with my Solaris 10 box, and i have these
>> following errors :
>> # make
>>
>> cd ./src/; make ; cd ..
>> make[1]: Entering directory
>> `/export/home/compilation/ndoutils-1.3.1/src'
>> gcc -g -O2 -DHAVE_CONFIG_H -c -o io.o io.c
>> gcc -g -O2 -DHAVE_CONFIG_H -c -o utils.o utils.c
>> gcc -g -O2 -DHAVE_CONFIG_H -o file2sock file2sock.c io.o utils.o
>> -lm -lnsl -lsocket
>> Symbole première référence
>> non défini dans le fichier
>> SUN_LEN io.o
>> ld: fatal : Erreurs dans le référencement des symboles. Aucun
>> résultat n'a été écrit dans file2sock
>> collect2: ld returned 1 exit status
>> make[1]: *** [file2sock] Error 1
>> make[1]: Leaving directory
>> `/export/home/compilation/ndoutils-1.3.1/src'
>>
>>
>> (Sorry i have french box)
>>
>> It seems that SUN_LEN doesn't exist on Solaris...
>>
>> Anyone have a small patch ?
>>
>> Thx in advance,
>>
>> Damien
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>> language
>> that extends applications into web and mobile media. Attend the live
>> webcast
>> and join the prime developer group breaking into this new coding
>> territory!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
>> _______________________________________________
>> Nagios-devel mailing list
>> Nagios-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
>
> Damien Bastié
> Administrateur Système et Réseau.
> BRAINTEC
> 9 rue Santos Dumont, 75015 PARIS
> Tél : 33 156085200 - Fax : 33 156085239
> http://www.braintec.fr
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
More information about the Developers
mailing list