can not compile check_nt on Solaris 9
Ralf Wurzinger
ralf.wurzinger at materna.fr
Thu Jan 9 09:58:09 CET 2003
Thanks a lot!
This got me on the right way.
One has to add a few other object files with variables and functions
referenced by check_nt.c
Being in the plugins directory the following command works:
gcc -g -O2 -I. -L. -o check_nt utils.o negate.o popen.o snprintf.o
getopt1.o getopt.o
Ralf
Subhendu Ghosh wrote:
>remove the -lutils in the second command - there is no libutils.so, just
>utils.o
>
>-sg
>
>On Wed, 8 Jan 2003, Ralf Wurzinger wrote:
>
>
>
>>Hello,
>>
>>I have a problem compiling check_nt plugin on a Solaris 9 box using gcc 3.2.
>>I have installed nagios-plugins-200211131100 with success and can get
>>them working, however copying check_nt.c to the plugin directory and
>>following the proposition posted on this mailing list by Subhendu Ghosh
>>on 2002-11-15 failed:
>>
>> gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins
>>-c check_nt.c
>>
>>This creates the object file.
>>
>>But then
>>
>> gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins
>> -o check_nt utils.o -lutils
>>
>>gives:
>>
>>ld: fatal: library -lutils: not found
>>
>>There is a utils.o file in the directory which was created during the
>>plugin compilation.
>>
>>Anybody knows the right gcc command line?
>>
>>Thank's a lot!
>>
>>Ralf
>>
>>
>>
>>-------------------------------------------------------
>>This SF.NET email is sponsored by:
>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
>>http://www.vasoftware.com
>>_______________________________________________
>>Nagios-users mailing list
>>Nagios-users at lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/nagios-users
>>
>>
>>
>
>
>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list