rrdtool build failing with perl modules

View: New views
5 Messages — Rating Filter:   Alert me  

rrdtool build failing with perl modules

by rbandi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm building rrdtool 1.2.30 on Red Hat Linux 4.0. I was able to build the
dependencies successfully by following rrdbuild.txt file. I'm getting the
following error when building the rrdtool. configure went through, but the
build was failed.

./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
--disable-perl (works fine)

./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl (failed
with the below error)

/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make[4]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
make[4]: Leaving directory
`/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings/perl-shared'
make[3]: *** [perl_shared] Error 2
make[3]: Leaving directory
`/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30'
make: *** [all] Error 2

Please help me to resolve this. Thanks for your help in advance.
--
View this message in context: http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3810994.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: rrdtool build failing with perl modules

by Joshua Keroes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you installed libpng? if so, you may have to specify the path to libpng.so (see ./configure --help for help specifying the proper syntax)

On Mon, Oct 12, 2009 at 2:58 PM, rbandi <rbandi@...> wrote:

I'm building rrdtool 1.2.30 on Red Hat Linux 4.0. I was able to build the
dependencies successfully by following rrdbuild.txt file. I'm getting the
following error when building the rrdtool. configure went through, but the
build was failed.

./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
--disable-perl (works fine)

./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl (failed
with the below error)

/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make[4]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
make[4]: Leaving directory
`/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings/perl-shared'
make[3]: *** [perl_shared] Error 2
make[3]: Leaving directory
`/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30'
make: *** [all] Error 2

Please help me to resolve this. Thanks for your help in advance.
--
View this message in context: http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3810994.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: rrdtool build failing with perl modules

by rbandi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yes, libpng has been installed. I have also exported the below variabled
before building rrd

        IR=-I$BUILD_DIR/lb/include
        CPPFLAGS="$IR $IR/libart-2.0 $IR/freetype2 $IR/libpng"
        LDFLAGS="-L$BUILD_DIR/lb/lib"
        CFLAGS=-O3
        export CPPFLAGS LDFLAGS CFLAGS

configure went through, but make failed.



Joshua Keroes-2 wrote:

>
> Have you installed libpng? if so, you may have to specify the path to
> libpng.so (see ./configure --help for help specifying the proper syntax)
>
> On Mon, Oct 12, 2009 at 2:58 PM, rbandi <rbandi@...> wrote:
>
>>
>> I'm building rrdtool 1.2.30 on Red Hat Linux 4.0. I was able to build the
>> dependencies successfully by following rrdbuild.txt file. I'm getting the
>> following error when building the rrdtool. configure went through, but
>> the
>> build was failed.
>>
>> ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
>> --disable-perl (works fine)
>>
>> ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl (failed
>> with the below error)
>>
>> /usr/bin/ld: cannot find -lpng
>> collect2: ld returned 1 exit status
>> make[4]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
>> make[4]: Leaving directory
>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings/perl-shared'
>> make[3]: *** [perl_shared] Error 2
>> make[3]: Leaving directory
>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory
>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30'
>> make: *** [all] Error 2
>>
>> Please help me to resolve this. Thanks for your help in advance.
>> --
>> View this message in context:
>> http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3810994.html
>> Sent from the RRDtool Users Mailinglist mailing list archive at
>> Nabble.com.
>>
>> _______________________________________________
>> rrd-users mailing list
>> rrd-users@...
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>
>
> _______________________________________________
> rrd-users mailing list
> rrd-users@...
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>

--
View this message in context: http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3813966.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: rrdtool build failing with perl modules

by rbandi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It's failing here:

gcc  -shared -L/usr/local/lib RRDs.o -L../../src/.libs/  -lrrd  -o
blib/arch/auto/RRDs/RRDs.so   -lm -lpng -lz -lfreetype

/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/RRDs/RRDs.so] Error 1




rbandi wrote:

>
> Yes, libpng has been installed. I have also exported the below variabled
> before building rrd
>
>         IR=-I$BUILD_DIR/lb/include
>         CPPFLAGS="$IR $IR/libart-2.0 $IR/freetype2 $IR/libpng"
>         LDFLAGS="-L$BUILD_DIR/lb/lib"
>         CFLAGS=-O3
>         export CPPFLAGS LDFLAGS CFLAGS
>
> configure went through, but make failed.
>
>
>
> Joshua Keroes-2 wrote:
>>
>> Have you installed libpng? if so, you may have to specify the path to
>> libpng.so (see ./configure --help for help specifying the proper syntax)
>>
>> On Mon, Oct 12, 2009 at 2:58 PM, rbandi <rbandi@...> wrote:
>>
>>>
>>> I'm building rrdtool 1.2.30 on Red Hat Linux 4.0. I was able to build
>>> the
>>> dependencies successfully by following rrdbuild.txt file. I'm getting
>>> the
>>> following error when building the rrdtool. configure went through, but
>>> the
>>> build was failed.
>>>
>>> ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
>>> --disable-perl (works fine)
>>>
>>> ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl (failed
>>> with the below error)
>>>
>>> /usr/bin/ld: cannot find -lpng
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
>>> make[4]: Leaving directory
>>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings/perl-shared'
>>> make[3]: *** [perl_shared] Error 2
>>> make[3]: Leaving directory
>>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory
>>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30'
>>> make: *** [all] Error 2
>>>
>>> Please help me to resolve this. Thanks for your help in advance.
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3810994.html
>>> Sent from the RRDtool Users Mailinglist mailing list archive at
>>> Nabble.com.
>>>
>>> _______________________________________________
>>> rrd-users mailing list
>>> rrd-users@...
>>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>>
>>
>> _______________________________________________
>> rrd-users mailing list
>> rrd-users@...
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>
>>
>
>

--
View this message in context: http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3814011.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: rrdtool build failing with perl modules

by rbandi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have resolved this problem by modifying Makefile.PL for perl bindings.

Here's the line I modified in
rrdtool-1.2.30/bindings/perl-shared/Makefile.PL

Before: my $librrd = "-L../../src/.libs/ $R -lrrd";

After: my $librrd = "-L../../src/.libs/ -L<BUILD_DIR>/lb/lib $R -lrrd";

I've appended -L<BUILD_DIR>/lb/lib to the librrd scalar. <BUILD_DIR> is in
which directory you built the dependent libraries.



rbandi wrote:

>
> It's failing here:
>
> gcc  -shared -L/usr/local/lib RRDs.o -L../../src/.libs/  -lrrd  -o
> blib/arch/auto/RRDs/RRDs.so   -lm -lpng -lz -lfreetype
>
> /usr/bin/ld: cannot find -lpng
> collect2: ld returned 1 exit status
> make: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
>
>
>
>
> rbandi wrote:
>>
>> Yes, libpng has been installed. I have also exported the below variabled
>> before building rrd
>>
>>         IR=-I$BUILD_DIR/lb/include
>>         CPPFLAGS="$IR $IR/libart-2.0 $IR/freetype2 $IR/libpng"
>>         LDFLAGS="-L$BUILD_DIR/lb/lib"
>>         CFLAGS=-O3
>>         export CPPFLAGS LDFLAGS CFLAGS
>>
>> configure went through, but make failed.
>>
>>
>>
>> Joshua Keroes-2 wrote:
>>>
>>> Have you installed libpng? if so, you may have to specify the path to
>>> libpng.so (see ./configure --help for help specifying the proper syntax)
>>>
>>> On Mon, Oct 12, 2009 at 2:58 PM, rbandi <rbandi@...> wrote:
>>>
>>>>
>>>> I'm building rrdtool 1.2.30 on Red Hat Linux 4.0. I was able to build
>>>> the
>>>> dependencies successfully by following rrdbuild.txt file. I'm getting
>>>> the
>>>> following error when building the rrdtool. configure went through, but
>>>> the
>>>> build was failed.
>>>>
>>>> ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
>>>> --disable-perl (works fine)
>>>>
>>>> ./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
>>>> (failed
>>>> with the below error)
>>>>
>>>> /usr/bin/ld: cannot find -lpng
>>>> collect2: ld returned 1 exit status
>>>> make[4]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
>>>> make[4]: Leaving directory
>>>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings/perl-shared'
>>>> make[3]: *** [perl_shared] Error 2
>>>> make[3]: Leaving directory
>>>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[2]: Leaving directory
>>>> `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30/bindings'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory `/home/rbandi/tmp/rrdbuild/rrdtool-1.2.30'
>>>> make: *** [all] Error 2
>>>>
>>>> Please help me to resolve this. Thanks for your help in advance.
>>>> --
>>>> View this message in context:
>>>> http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3810994.html
>>>> Sent from the RRDtool Users Mailinglist mailing list archive at
>>>> Nabble.com.
>>>>
>>>> _______________________________________________
>>>> rrd-users mailing list
>>>> rrd-users@...
>>>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>>>
>>>
>>> _______________________________________________
>>> rrd-users mailing list
>>> rrd-users@...
>>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>>
>>>
>>
>>
>
>

--
View this message in context: http://n2.nabble.com/rrdtool-build-failing-with-perl-modules-tp3810994p3819235.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users