Try setting CFLAGS and CPPFLAGS to -I/usr/local1/include prior to configure, 
and please report the results.
Pete

[EMAIL PROTECTED] wrote:

> I am trying to build opendx on my workstation.
> It gets /usr/local/... from a departmental server
> which has production software. I keep all software
> I use for my own education on my workstation in
> /usr/local1/...
>
> My server:
> SunOS abqato 5.6 Generic_105181-09 sun4m sparc
> My workstation:
> SunOS abqn07 5.7 Generic sun4m sparc
>
> I built a newer version of Image Magick (5.1.1) and
> other prerequisites for opendx locally, using only
> local tools (no server paths in any of my paths) and
> their includes are in /usr/local1/include.
>
> Configuring opendx with
> ./configure --prefix=/usr/local1
> failed because of finding older files in
> /usr/local/include. So I configured with
> ./configure --prefix=/usr/local1 \
>  --includedir=/usr/local1/include
> and during make I still get lines like
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../include \
>  -I../../../include -I../dpexec -I/usr/include \
>  -I/usr/local/include -Dsolaris  \
>  -I/usr/openwin/include \
>  -I/usr/openwin/include/X11  -g -O2 \
>  -I/usr/openwin/include -D_GNU_SOURCE \
>  -c _im_image.c
> which then cause the failure:
> _im_image.c:78: magick/api.h: No such file or directory
> make[3]: *** [_im_image.o] Error 1
> make[3]: Leaving directory `/usr/local1/build/dx-4.1.0/src/exec/dxmods'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local1/build/dx-4.1.0/src/exec'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local1/build/dx-4.1.0/src'
> make: *** [all-recursive] Error 1
>
> I find that if at that point I go in and edit the
> /usr/local1/build/dx-4.1.0/src/exec/dxmods/Makefile
> and change the includes to /usr/local1/include that
> the make then fails with a lot of errors.
>
> Samples are:
> In file included from /usr/local1/include/magick/api.h:45,
>                  from _im_image.c:78:
> /usr/local1/include/magick/blob.h:35: conflicting types for 
> `LSBFirstWriteLong'
> /usr/local1/include/magick/magick/utility.h:90: previous declaration of 
> `LSBFirstWriteLong'
> /usr/local1/include/magick/blob.h:36: conflicting types for 
> `LSBFirstWriteShort'
> <snip>
> /usr/local1/include/magick/blob.h:58: parse error before `*'
> <snip>
> In file included from /usr/local1/include/magick/api.h:46,
>                  from _im_image.c:78:
> /usr/local1/include/magick/cache.h:15: parse error before `*'
> /usr/local1/include/magick/cache.h:18: warning: data definition has no type 
> or storage class
> In file included from /usr/local1/include/magick/api.h:47,
>                  from _im_image.c:78:
> /usr/local1/include/magick/cache_io.h:19: parse error before `GetCacheType'
> <snip>
> /usr/local1/include/magick/cache_io.h:39: parse error before `const'
> /usr/local1/include/magick/cache_io.h:42: warning: parameter names (without 
> types) in function declaration
> /usr/local1/include/magick/cache_io.h:43: warning: parameter names (without 
> types) in function declaration
> /usr/local1/include/magick/cache_io.h:44: parse error before `*'
> /usr/local1/include/magick/cache_io.h:45: parse error before `unsigned'
> /usr/local1/include/magick/cache_io.h:47: parse error before `const'
> In file included from /usr/local1/include/magick/api.h:50,
>                  from _im_image.c:78:
> /usr/local1/include/magick/timer.h:15: parse error before `*'
> <snip>
> _im_image.c: In function `write_im':
> _im_image.c:108: `MagickInfo' undeclared (first use in this function)
> _im_image.c:108: (Each undeclared identifier is reported only once
> _im_image.c:108: for each function it appears in.)
> _im_image.c:108: `magick_info' undeclared (first use in this function)
> _im_image.c:111: parse error before `*'
> _im_image.c:185: `miff_filename' undeclared (first use in this function)
> _im_image.c:189: `miff_fp' undeclared (first use in this function)
> _im_image.c:191: `miff_exists_flag' undeclared (first use in this function)
> _im_image.c:204: `image_info' undeclared (first use in this function)
> _im_image.c:211: `image' undeclared (first use in this function)
> make[3]: *** [_im_image.o] Error 1
> make[3]: Leaving directory `/usr/local1/build/dx-4.1.0/src/exec/dxmods'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local1/build/dx-4.1.0/src/exec'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local1/build/dx-4.1.0/src'
> make: *** [all-recursive] Error 1
>
> Is it too late at that point in the make process to be
> modifying that include directory location? Which by the
> way comes from Makefile.am.  Should I make distclean,
> edit all Makefile.am files and re-configure? Or does
> this seem to be an error with Image Magick include
> files that other software has not encountered?
>
> Thanks.
>
> -Robert Lopez

Reply via email to