ldconfig

Live Great livegreat007 at yahoo.com
Wed Oct 17 03:29:39 CEST 2007


Hi,

I still  having this error:
# CFLAGS="-I/usr/local/include -I/usr/sfw/include"
    LDFLAGS="-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib"#
# export CFLAGS
# export LDFLAGS
# echo $LDFLAGS
-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib
# echo $CFLAGS
-I/usr/local/include -I/usr/sfw/include
#
./configure --prefix=$NAGIOSHOME --with-nagios-user=nagios --with-nagios-grp=nagios\
  --with-perlcache --enable-embedded-perl --with-gd-inc=/usr/local/include\
  --with-gd-lib=/usr/local/lib
....
checking for main in -liconv... yes
checking for gdImagePng in -lgd (order 1)...
 no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no
...

Thanks
Sam

----- Original Message ----
From: Luc I. Suryo <luc at suryo.com>
To: Live Great <livegreat007 at yahoo.com>
Sent: Tuesday, October 16, 2007 1:31:10 PM
Subject: Re: [Nagios-users] ldconfig

try this

    CC=gcc \
    CFLAGS="-I/usr/local/include -Ixxx" \
    LDFLAGS="-s -R/usr/local/lib:/yyyy -L/usr/local/lib -Lyyyy \
        ./configure --your-option

and i would advice to use Sun's compiler (studio 12) instead of GCC
also replace the xxx with our location for the include files and yyy
with the one for the libraries

something like
    CFLAGS="-I/usr/local/include -I/usr/sfw/include"
    LDFLAGS="-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib"

make sense? my sparc systems are currently not available for 'testing',
I do have a Solaris x86 server (Sun brand) that is use for compiling
packages...

good luck

-ls


Live Great <livegreat007 at yahoo.com>
   wrote at Mon, Oct 15, 2007 at 07:48:07PM -0700:

> Hi,
> 
> I found that I don't have the libiconv and gd library.
> After I installed it, ./configure runs better, but still complain gd lib not found.
> I used " --with-gd-lib and --with-gd-inc" with /usr/local/lib and /usr/local/include in the commandline, but still complain gd  not found.
> I have added /usr/local/include and /usr/local/lib in the /etc/ld.so.conf file, but I can't find ldconfig command in the system.
> Do I need to run ldconfig? and where can I download this tool for Sun 5.10?
> 
> Thanks
> 
> 
> ----- Original Message ----
> From: Live Great <livegreat007 at yahoo.com>
> To: nagios-users at lists.sourceforge.net
> Sent: Tuesday, October 16, 2007 12:12:05 PM
> Subject: Re: [Nagios-users] Nagios-3.x Solaris 9 Build Problem
> 
> Hi,
> 
> I am running Sun 5.10 on Sparc.
> I got the following error while executing ./configure for Nagios.
> 
> 
> configure:1794: gcc --version </dev/null >&5
> ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
> ./configure: line 1795: 19871 Killed                  $CC --version
> configure:1797: $? = 137
> configure:1799: gcc -v </dev/null >&5
> ld.so..1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
> ./configure: line 1800: 19875 Killed                  $CC
>  -v
> configure:1802: $? = 137
> configure:1804: gcc -V </dev/null >&5
> ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
> ./configure: line 1805: 19879 Killed                  $CC -V
> configure:1807: $? = 137
> configure:1830: checking for C compiler default output file name
> configure:1833: gcc    conftest.c  >&5
> ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
> ./configure: line 1834: 19889 Killed                  $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
> configure:1836: $? = 137
> 
> What development packages I need to download in order to fix this error?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071016/6659085d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list