On Aug 7, 2008, at 1:32 AM, Daniel Macks wrote:
> On Thu, Aug 07, 2008 at 06:47:22AM +0200, Beat Birkhofer wrote:
>> Hi
>>
>> After I built the current 10.4 unstable grace (maintained by nobody)
>> the png support was missing. Configure:
>>
>> checking for IJG JPEG software >= 61... yes
>> checking for libpng >= 0.9.6... no
>> --> PNG backend is disabled
>>
>> It seems that it doesn't like the X11 libpng too much, although this
>> is 1.2.x, too. Because after I appended a ':/sw/include' to the
>> setCPPFLAGS (originally just 'SetCPPFLAGS: -I/usr/X11R6/include') in
>> line 31 of the grace.info configure recognized the png lib. I'm using
>> X11 2.2.3, according the change log there weren't changes in libpng
>> to
>> the current 2.3.0.
>
> When libpng detection fails, could you check the config.log file to
> see if there are any more details about why/how it's failing? Probably
> begins with a line like:
>
> configure:16037:checking for libpng >= 0.9.6
>
> and then some compiler calls and (hopefully!) error messages.
>
> dan
>
> --
> Daniel Macks
> [EMAIL PROTECTED]
> http://www.netspace.org/~dmacks
>
>
Since I use grace on occasion, I'll jump in here:
...
configure:16037: checking for libpng >= 0.9.6
configure:16088: gcc -o conftest -O2 -fno-common -Wall -Wpointer-
arith -Wnested-externs -I/usr/X11R6/include -I/sw/include -framework
Carbon -L/sw/lib conftest.c -lpng -lz -lm >&5
conftest.c: In function 'main':
conftest.c:105: warning: assignment discards qualifiers from pointer
target type
conftest.c:108: warning: implicit declaration of function 'exit'
conftest.c:108: warning: incompatible implicit declaration of built-in
function 'exit'
conftest.c:111: warning: incompatible implicit declaration of built-in
function 'exit'
conftest.c:113: warning: incompatible implicit declaration of built-in
function 'exit'
configure:16091: $? = 0
configure:16097: ./conftest
configure:16100: $? = 2
configure: program exited with status 2
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define WITH_F77_WRAPPER 1
| #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_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_LONG_DOUBLE 16
| #define SIZEOF_VOID_P 4
| #define HAVE_LIEEE_FPU 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_MATH_H 1
| #define HAVE_FLOAT_H 1
| #define RETSIGTYPE void
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_GETCWD 1
| #define HAVE_GETHOSTNAME 1
| #define HAVE_STRSTR 1
| #define HAVE_MEMCPY 1
| #define HAVE_MEMMOVE 1
| #define HAVE_UNLINK 1
| #define HAVE_FCNTL 1
| #define HAVE_POPEN 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_FNMATCH 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_STRERROR 1
| #define HAVE_DRAND48 1
| #define HAVE_DRAND48_DECL 1
| #define HAVE_SETLOCALE 1
| #define HAVE_LIBM 1
| #define HAVE_HYPOT 1
| #define HAVE_HYPOT_DECL 1
| #define HAVE_RINT 1
| #define HAVE_RINT_DECL 1
| #define HAVE_CBRT 1
| #define HAVE_CBRT_DECL 1
| #define HAVE_LOG2 1
| #define HAVE_LOG2_DECL 1
| #define HAVE_ASINH 1
| #define HAVE_ASINH_DECL 1
| #define HAVE_ACOSH 1
| #define HAVE_ACOSH_DECL 1
| #define HAVE_ATANH 1
| #define HAVE_ATANH_DECL 1
| #define HAVE_LGAMMA 1
| #define HAVE_LGAMMA_DECL 1
| #define HAVE_SIGNGAM_DECL 1
| #define HAVE_ERF 1
| #define HAVE_ERF_DECL 1
| #define HAVE_ERFC 1
| #define HAVE_ERFC_DECL 1
| #define HAVE_J0 1
| #define HAVE_J0_DECL 1
| #define HAVE_J1 1
| #define HAVE_J1_DECL 1
| #define HAVE_JN 1
| #define HAVE_JN_DECL 1
| #define HAVE_Y0 1
| #define HAVE_Y0_DECL 1
| #define HAVE_Y1 1
| #define HAVE_Y1_DECL 1
| #define HAVE_YN 1
| #define HAVE_YN_DECL 1
| #define HAVE_FINITE 1
| #define HAVE_FINITE_DECL 1
| #define HAVE_ISNAN 1
| #define HAVE_LIBT1 1
| #define HAVE_DLOPEN 1
| #define HAVE_RTLD_NOW 1
| #define HAVE_NETCDF 1
| #define HAVE_FFTW 1
| #define HAVE_LIBJPEG 1
| /* end confdefs.h. */
|
| #include <string.h>
| #include <png.h>
| int main(void) {
| char *vlib, *vinc;
| vlib = png_libpng_ver;
| vinc = PNG_LIBPNG_VER_STRING;
| if (strcmp(vinc, "0.9.6") < 0) {
| exit(1);
| }
| if (strcmp(vinc, vlib) != 0) {
| exit(2);
| }
| exit(0);
| }
|
configure:16123: result: no
configure:16134: result: --> PNG backend is disabled
Checking /usr/x11/include/png.h, I found:
#ifdef PNG_USE_GLOBAL_ARRAYS
PNG_EXPORT_VAR (PNG_CONST char) png_libpng_ver[18];
/* need room for 99.99.99beta99z */
#else
#define png_libpng_ver png_get_header_ver(NULL)
#endif
-and-
#define PNG_LIBPNG_VER_STRING "1.2.26"
And in Fink's version:
#ifdef PNG_USE_GLOBAL_ARRAYS
PNG_EXPORT_VAR (PNG_CONST char) png_libpng_ver[18];
/* need room for 99.99.99beta99z */
#else
#define png_libpng_ver png_get_header_ver(NULL)
#endif
-and-
#define PNG_LIBPNG_VER_STRING "1.2.29"
I made my own copy of the conftest program and modified it to give
output, with the following result:
vlib= 1.2.29, vinc= 1.2.26
So it appears to be mixing the header from X11 with the library from
Fink.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel