Peter Daniel Kirchner wrote:

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

I tried that from the point make last failed. No
difference. I did a make distclean then tried it
again with those set. They do seem to be picked up
but the /usr/local/include getting put in there from
the Makefile.am.

Here is the tail end of the make:

gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../dpexec 
-I/usr/include -I/usr/local/include -Dsolaris  -I/usr/local1/include 
-I/usr/openwin/include -I/usr/openwin/include/X11  -I/usr/local1/include 
-I/usr/openwin/include -D_GNU_SOURCE -c _im_image.c
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'
/usr/local1/include/magick/magick/utility.h:91: previous declaration of 
`LSBFirstWriteShort'
/usr/local1/include/magick/blob.h:37: conflicting types for `MSBFirstWriteLong'
/usr/local1/include/magick/magick/utility.h:94: previous declaration of 
`MSBFirstWriteLong'
/usr/local1/include/magick/blob.h:38: conflicting types for `MSBFirstWriteShort'
/usr/local1/include/magick/magick/utility.h:95: previous declaration of 
`MSBFirstWriteShort'
/usr/local1/include/magick/blob.h:49: conflicting types for `LSBFirstReadShort'
/usr/local1/include/magick/magick/utility.h:80: previous declaration of 
`LSBFirstReadShort'
/usr/local1/include/magick/blob.h:50: conflicting types for `MSBFirstReadShort'
/usr/local1/include/magick/magick/utility.h:81: previous declaration of 
`MSBFirstReadShort'
/usr/local1/include/magick/blob.h:53: conflicting types for `LSBFirstReadLong'
/usr/local1/include/magick/magick/utility.h:75: previous declaration of 
`LSBFirstReadLong'
/usr/local1/include/magick/blob.h:54: conflicting types for `MSBFirstReadLong'
/usr/local1/include/magick/magick/utility.h:76: previous declaration of 
`MSBFirstReadLong'
/usr/local1/include/magick/blob.h:58: parse error before `*'
/usr/local1/include/magick/blob.h:63: parse error before `*'
/usr/local1/include/magick/blob.h:64: parse error before `*'
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'
/usr/local1/include/magick/cache_io.h:19: warning: parameter names (without 
types) in function declaration
/usr/local1/include/magick/cache_io.h:19: warning: data definition has no type 
or storage class
/usr/local1/include/magick/cache_io.h:22: warning: parameter names (without 
types) in function declaration
/usr/local1/include/magick/cache_io.h:25: parse error before `*'
/usr/local1/include/magick/cache_io.h:25: parse error before `const'
/usr/local1/include/magick/cache_io.h:25: warning: data definition has no type 
or storage class
/usr/local1/include/magick/cache_io.h:32: parse error before `*'
/usr/local1/include/magick/cache_io.h:32: parse error before `const'
/usr/local1/include/magick/cache_io.h:32: warning: data definition has no type 
or storage class
/usr/local1/include/magick/cache_io.h:35: parse error before `const'
/usr/local1/include/magick/cache_io.h:36: parse error before `const'
/usr/local1/include/magick/cache_io.h:37: parse error before `const'
/usr/local1/include/magick/cache_io.h:38: parse error before `const'
/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 `*'
/usr/local1/include/magick/timer.h:16: parse error before `*'
/usr/local1/include/magick/timer.h:19: parse error before `*'
/usr/local1/include/magick/timer.h:22: parse error before `*'
/usr/local1/include/magick/timer.h:23: parse error before `*'
/usr/local1/include/magick/timer.h:24: parse error before `*'
/usr/local1/include/magick/timer.h:25: parse error before `*'
_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
root_abqn07[12]% 

> X-Authentication-Warning: opendx.watson.ibm.com: majordom set sender to 
> [EMAIL PROTECTED] using -f
> Date: Fri, 05 May 2000 12:55:27 -0400
> From: Peter Daniel Kirchner <[EMAIL PROTECTED]>
> X-Accept-Language: en
> MIME-Version: 1.0
> To: [email protected]
> Subject: Re: [opendx-users] Solaris 7 and /usr/local/include
> Content-Transfer-Encoding: 7bit
> 
> 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