<div dir="ltr">I'm trying to compile RRDtool 1.4.7 on Solaris 10.<div>I have Perl 5.16.0 (sun4-solaris-thread-multi-64) installed and manually installed the following packages:</div><div><div><ol style><li style>glib.2.25.15.SPARC.64bit.Solaris.10.pkg</li>
<li style>libcairo.1.8.10.SPARC.64bit.Solaris.10.pkg</li><li style>libpango.1.28.1.SPARC.64bit.Solaris.10.pkg</li></ol></div></div><div>all installed to /usr/local</div><div><br></div><div>I set my environment $PKG_CONFIG_PATH to "/usr/local/lib/pkgconfig/"</div>
<div>ran: ./configure</div><div><br></div><div>and got the following errors:</div><div><br></div><blockquote>checking for hosts_access in -lwrap... no<br>checking for cairo_font_options_create in -lcairo... no<br>checking for pkg-config... pkg-config<br>
checking for cairo_font_options_create in -lcairo... no<br>configure: WARNING:<br>----------------------------------------------------------------------------<br>* I could not find a working copy of cairo-png. Check config.log for hints on why<br>
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libcairo and its header files. If<br> you have not installed cairo-png, you can get it either from its original home on<br>
<a href="http://cairographics.org/releases/">http://cairographics.org/releases/</a><br> You can find also find an archive copy on<br> <a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br>
The last tested version of cairo-png is 1.10.2.<br> LIBS=-lm -lrt -lsocket -lcairo -lpng12<br> LDFLAGS= -L/usr/local/lib<br> CPPFLAGS= -D_REENTRANT -I/usr/local/include/cairo -I/usr/include/libpng12<br>----------------------------------------------------------------------------<br>
checking for cairo_svg_surface_create in -lcairo... no<br>checking for pkg-config... (cached) pkg-config<br>checking for cairo_svg_surface_create in -lcairo... no<br>configure: WARNING:<br>----------------------------------------------------------------------------<br>
* I could not find a working copy of cairo-svg. Check config.log for hints on why<br> this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libcairo and its header files. If<br>
you have not installed cairo-svg, you can get it either from its original home on<br> <a href="http://cairographics.org/releases/">http://cairographics.org/releases/</a><br> You can find also find an archive copy on<br>
<a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br> The last tested version of cairo-svg is 1.10.2.<br> LIBS=-lm -lrt -lsocket -lcairo<br> LDFLAGS= -L/usr/local/lib<br>
CPPFLAGS= -D_REENTRANT -I/usr/local/include/cairo<br>----------------------------------------------------------------------------<br>checking for cairo_pdf_surface_create in -lcairo... no<br>checking for pkg-config... (cached) pkg-config<br>
checking for cairo_pdf_surface_create in -lcairo... no<br>configure: WARNING:<br>----------------------------------------------------------------------------<br>* I could not find a working copy of cairo-pdf. Check config.log for hints on why<br>
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libcairo and its header files. If<br> you have not installed cairo-pdf, you can get it either from its original home on<br>
<a href="http://cairographics.org/releases/">http://cairographics.org/releases/</a><br> You can find also find an archive copy on<br> <a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br>
The last tested version of cairo-pdf is 1.10.2.<br> LIBS=-lm -lrt -lsocket -lz -lcairo<br> LDFLAGS= -L/usr/local/lib<br> CPPFLAGS= -D_REENTRANT -I/usr/local/include/cairo<br>----------------------------------------------------------------------------<br>
checking for cairo_ps_surface_create in -lcairo... no<br>checking for pkg-config... (cached) pkg-config<br>checking for cairo_ps_surface_create in -lcairo... no<br>configure: WARNING:<br>----------------------------------------------------------------------------<br>
* I could not find a working copy of cairo-ps. Check config.log for hints on why<br> this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libcairo and its header files. If<br>
you have not installed cairo-ps, you can get it either from its original home on<br> <a href="http://cairographics.org/releases/">http://cairographics.org/releases/</a><br> You can find also find an archive copy on<br>
<a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br> The last tested version of cairo-ps is 1.10.2.<br> LIBS=-lm -lrt -lsocket -lz -lcairo<br> LDFLAGS= -L/usr/local/lib<br>
CPPFLAGS= -D_REENTRANT -I/usr/local/include/cairo<br>----------------------------------------------------------------------------<br>checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... no<br>checking for pkg-config... (cached) pkg-config<br>
checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... no<br>configure: WARNING:<br>----------------------------------------------------------------------------<br>* I could not find a working copy of pangocairo. Check config.log for hints on why<br>
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libpangocairo-1.0 and its header files. If<br> you have not installed pangocairo, you can get it either from its original home on<br>
<a href="http://ftp.gnome.org/pub/GNOME/sources/pango/1.28">http://ftp.gnome.org/pub/GNOME/sources/pango/1.28</a><br> You can find also find an archive copy on<br> <a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br>
The last tested version of pangocairo is 1.28.4.<br> LIBS=-lm -lrt -lsocket -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lpthread -lthread -lrt -lglib-2.0 -lintl<br> LDFLAGS= -L/usr/local/lib<br>
CPPFLAGS= -D_REENTRANT -D_REENTRANT -D_PTHREADS -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include<br>----------------------------------------------------------------------------<br>
checking for glib_check_version in -lglib-2.0... no<br>checking for pkg-config... (cached) pkg-config<br>checking for glib_check_version in -lglib-2.0... no<br>configure: WARNING:<br>----------------------------------------------------------------------------<br>
* I could not find a working copy of glib-2.0. Check config.log for hints on why<br> this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately<br> so that compiler and the linker can find libglib-2.0 and its header files. If<br>
you have not installed glib-2.0, you can get it either from its original home on<br> <a href="ftp://ftp.gtk.org/pub/glib/2.28/">ftp://ftp.gtk.org/pub/glib/2.28/</a><br> You can find also find an archive copy on<br>
<a href="http://oss.oetiker.ch/rrdtool/pub/libs">http://oss.oetiker.ch/rrdtool/pub/libs</a><br> The last tested version of glib-2.0 is 2.28.7.<br> LIBS=-lm -lrt -lsocket -lglib-2.0 -lintl<br> LDFLAGS= -L/usr/local/lib<br>
CPPFLAGS= -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include<br>----------------------------------------------------------------------------</blockquote><div> </div><div>and the config.log shows this as one of the errors:</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">configure:23988: result: no<br>configure:24131: checking for pkg-config<br>
configure:24158: result: pkg-config<br>configure:24177: checking for cairo_svg_surface_create in -lcairo<br>configure:24212: gcc -o conftest -g -O2 -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarat<br>
ions -Wnested-externs -Winline -Wold-style-definition -W -fPIC -DPIC -D_REENTRANT -I/usr/local/include/cairo -L/usr/local/lib conftest.c -lcairo -lm -lrt -lsocket -lcairo >&5<br>conftest.c:103:1: warning: "TIME_T_IS_32BIT" redefined<br>
conftest.c:100:1: warning: this is the location of the previous definition<br>conftest.c: In function `main':<br>conftest.c:115: warning: old-style parameter declaration<br><b>ld: fatal: file /usr/local/lib/libcairo.so: wrong ELF class: ELFCLASS64<br>
ld: fatal: file /usr/local/lib/libcairo.so: wrong ELF class: ELFCLASS64</b><br>ld: fatal: File processing errors. No output written to conftest<br>collect2: ld returned 1 exit status<br>configure:24219: $? = 1</blockquote>
<div><br></div><div><br></div><div><br></div><div>the 3 packages I installed previously, all are 64bit and my platform is (isainfo -v):</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
64-bit sparcv9 applications<br> asi_blk_init<br>32-bit sparc applications<br> asi_blk_init v8plus div32 mul32</blockquote><div> </div></div><div>any idea what am I missing / doing wrong here?</div><div><br></div>
<div>Thanks,</div><div><br></div></div>