Subject: pkg/29377: graphics/mng doesn't build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <syn@sceen.net>
List: pkgsrc-bugs
Date: 02/14/2005 20:30:00
>Number:         29377
>Category:       pkg
>Synopsis:       graphics/mng doesn't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 14 20:30:00 +0000 2005
>Originator:     syn@sceen.net
>Release:        NetBSD 1.6.2_STABLE
>Organization:
Richard Braun
>Environment:
System: NetBSD leia 1.6.2_STABLE NetBSD 1.6.2_STABLE (LEIA) #0: Sun Feb 13 14:40:39 CET 2005 syn@yoda:/usr/src/sys/arch/i386/compile/LEIA i386
Architecture: i386
Machine: i386
>Description:
make fails with the following error :

 cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1 -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1 -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1 -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1-DMNG_FULL_CMS=1 -I. -I/usr/pkgsrc/graphics/mng/work/.buildlink/include -O2 -c libmng_callback_xs.c  -fPIC -DPIC -o .libs/libmng_callback_xs.o
In file included from libmng.h:301,
                 from libmng_callback_xs.c:62:
libmng_conf.h:233: Invalid token in expression
libmng_conf.h:244: Invalid token in expression
In file included from /usr/pkgsrc/graphics/mng/work/.buildlink/include/jpeglib.h:24,
                 from libmng_types.h:192,
                 from libmng.h:379,
                 from libmng_callback_xs.c:62:
/usr/pkgsrc/graphics/mng/work/.buildlink/include/jconfig.h:12: warning: `HAVE_STDLIB_H' redefined
*Initialization*:1: warning: this is the location of the previous definition
*** Error code 1

I tried to remove the CR characters at the end of lines 233 and 244 of
libmng_conf.h, which changed the error a bit, but did not solve the problem.
However this may help you find its cause.

>How-To-Repeat:
>Fix: