[rrd-users] Install issue with libpng library
Jeff Penhale
Jeff_Penhale at infosys.com
Wed Sep 5 05:17:31 CEST 2007
Hi,
I'm having issues with installing rrdtool onto solaris server. Configure keeps reporting that it can't find a working copy of libpng. Freetype and libart libaries are OK, it's just libpng that is causing me grief. No errors were reported during libpng/zlib compiling. Has anybody come across this (or a similar) error?
Below is extract from config.log
configure:25566: checking for png_access_version_number in -lpng
configure:25596: cc -o conftest -xO3 -KPIC -DPIC -I/tmp/rrdbuild/lb/include -I/tmp/rrdbuild/lb/include/libart-2.0 -I/tmp/rrdbuild/lb/include/freetype2 -I/tmp/
rrdbuild/lb/include/libpng -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 -L/tmp/rrdbuild/lb/lib conftest.c -lpng -lz -lart_lgpl_2 -lm >&5
Undefined first referenced
symbol in file
png_mmx_support /tmp/rrdbuild/lb/lib/libpng.a(libpng12_la-png.o)
ld: fatal: Symbol referencing errors. No output written to conftest
configure:25602: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "rrdtool"
| #define PACKAGE_TARNAME "rrdtool"
| #define PACKAGE_VERSION "1.2.23"
| #define PACKAGE_STRING "rrdtool 1.2.23"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "rrdtool"
| #define VERSION "1.2.23"
| #define RRDGRAPH_YLEGEND_ANGLE 90.0
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void exit (int);
| #endif
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_TIME_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IEEEFP_H 1
| #define HAVE_MATH_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_FLOAT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_LIBM 1
| #define HAVE_STRFTIME 1
| #define HAVE_VPRINTF 1
| #define HAVE_DOPRNT 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_TZSET 1
| #define HAVE_MBSTOWCS 1
| #define HAVE_OPENDIR 1
| #define HAVE_READDIR 1
| #define HAVE_CHDIR 1
| #define HAVE_CHROOT 1
| #define HAVE_GETUID 1
| #define HAVE_SETLOCALE 1
| #define HAVE_STRERROR 1
| #define HAVE_SNPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_FPCLASS 1
| #define HAVE_ISNAN 1
| #define HAVE_MEMMOVE 1
| #define HAVE_STRCHR 1
| #define HAVE_MKTIME 1
| #define HAVE_GETRUSAGE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_FINITE 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char png_access_version_number ();
| int
| main ()
| {
| png_access_version_number ();
| ;
| return 0;
| }
configure:25628: result: no
configure:25781: checking for pkg-config
configure:25810: result: no
configure:26077: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libpng. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libpng and its header files. If
you have not installed libpng, you can get it either from its original home on
http://prdownloads.sourceforge.net/libpng/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of libpng is 1.2.10.
LIBS=-lz -lart_lgpl_2 -lm
LDFLAGS=-L/tmp/rrdbuild/lb/lib
CPPFLAGS=-I/tmp/rrdbuild/lb/include -I/tmp/rrdbuild/lb/include/libart-2.0 -I/tmp/rrdbuild/lb/include/freetype2 -I/tmp/rrdbuild/lb/include/libpng -D_POSIX_PTH
READ_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0
And directory listing...
[root at hostname:/tmp/rrdbuild/lb/include]# ls -altr
total 320
drwxr-xr-x 6 root root 363 Sep 4 10:40 ..
drwxr-xr-x 3 root root 182 Sep 4 11:15 freetype2
-rw-r--r-- 1 root root 3890 Sep 4 11:16 ft2build.h
drwxr-xr-x 3 root root 185 Sep 4 15:06 libart-2.0
-rw-r--r-- 1 root root 66188 Sep 5 09:34 zlib.h
-rw-r--r-- 1 root root 9544 Sep 5 09:34 zconf.h
drwxr-xr-x 2 root root 245 Sep 5 10:03 libpng12
lrwxrwxrwx 1 root root 18 Sep 5 10:03 pngconf.h -> libpng12/pngconf.h
lrwxrwxrwx 1 root root 14 Sep 5 10:03 png.h -> libpng12/png.h
lrwxrwxrwx 1 root root 8 Sep 5 11:32 libpng -> libpng12
drwxr-xr-x 5 root root 700 Sep 5 11:32 .
Any guidance would be most welcome.
Thank you
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
More information about the rrd-users
mailing list