[Image-SIG] libImaging on solaris 2.7

Alexandre Gillet gillet@scripps.edu
Wed, 14 Mar 2001 13:21:58 -0800


This is a multi-part message in MIME format.
--------------627F849C54B58F2B3BF31EC3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I did what you told me to do but I still can't get it to compile.
the problem seems to come from "inline" as you can see in the
output.configure and config.log.
I attach the config.log file and the output of configure.

Should I try to use gcc compiler?

Alex



Fredrik Lundh wrote:
> 
> Alexandre Gillet wrote:> I am trying to compile libimaging (from Imaging1.1.1)under solaris 2.7
> > using SUNWspro-5.0 c compiler.
> > I got the following error when it compile Draw.c.
> >
> > cc  -I../. -I/usr/local/include -DHAVE_CONFIG_H -c ../Draw.c
> > "../Draw.c", line 53: undefined or not a type: inline
> > "../Draw.c", line 55: parameter not in identifier list: point8
> >
> > Is there any compilation options that I missing?
> 
> try removing config.cache, and run ./configure again before
> rebuilding everything.
> 
> if configure complains about cross-compiling, or zero-sized data
> types, check the config.log file.
> 
> (if you get stuck, post the configure output and config.log)
> 
> Cheers /F

-- 
**********************************
Alexandre Gillet
The Scripps Research Institute,       tel: (858) 784-9557
Dept. Molecular Biology,  MB-5,       fax: (858) 784-2860
10550  North Torrey Pines Road,       email: gillet@scripps.edu
La Jolla,  CA 92037-1000,  USA.
--------------627F849C54B58F2B3BF31EC3
Content-Type: text/plain; charset=us-ascii;
 name="output.configure"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="output.configure"

creating cache ./config.cache
checking for --without-gcc... no
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking for ranlib... ranlib
checking for ar... ar
checking MACHDEP... sunos5
checking for jpeg_destroy_compress in -ljpeg... yes
checking for deflate in -lz... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for inline... no
checking whether byte ordering is bigendian... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of float... 4
checking size of double... 8
checking for working const... yes
checking for prototypes... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating ImConfig.h

--------------627F849C54B58F2B3BF31EC3
Content-Type: text/plain; charset=us-ascii;
 name="config.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="config.log"

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:558: checking for --without-gcc
configure:588: checking for gcc
configure:617: checking for cc
configure:665: checking whether the C compiler (cc  ) works
configure:679: cc -o conftest    conftest.c  1>&5
configure:699: checking whether the C compiler (cc  ) is a cross-compiler
configure:704: checking whether we are using GNU C
configure:713: cc -E conftest.c
configure:758: checking for ranlib
configure:790: checking for ar
configure:829: checking MACHDEP
configure:857: checking for jpeg_destroy_compress in -ljpeg
configure:876: cc -o conftest -g   conftest.c -ljpeg   1>&5
configure:920: checking for deflate in -lz
configure:939: cc -o conftest -g   conftest.c -lz  -ljpeg  1>&5
configure:969: checking how to run the C preprocessor
configure:990: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1030: checking for ANSI C header files
configure:1043: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1110: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1136: checking for inline
configure:1150: cc -c -g  conftest.c 1>&5
"configure", line 1146: undefined or not a type: inline
"configure", line 1146: syntax error before or at: foo
cc: acomp failed for conftest.c
configure: failed program was:
#line 1143 "configure"
#include "confdefs.h"

int main() {
} inline foo() {
; return 0; }
configure:1150: cc -c -g  conftest.c 1>&5
"configure", line 1146: undefined or not a type: __inline__
"configure", line 1146: syntax error before or at: foo
cc: acomp failed for conftest.c
configure: failed program was:
#line 1143 "configure"
#include "confdefs.h"

int main() {
} __inline__ foo() {
; return 0; }
configure:1150: cc -c -g  conftest.c 1>&5
"configure", line 1146: undefined or not a type: __inline
"configure", line 1146: syntax error before or at: foo
cc: acomp failed for conftest.c
configure: failed program was:
#line 1143 "configure"
#include "confdefs.h"

int main() {
} __inline foo() {
; return 0; }
configure:1177: checking whether byte ordering is bigendian
configure:1195: cc -c -g  conftest.c 1>&5
"configure", line 1190: undefined symbol: bogus
"configure", line 1190: syntax error before or at: endian
cc: acomp failed for conftest.c
configure: failed program was:
#line 1184 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
configure:1243: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure: failed program was:
#line 1230 "configure"
#include "confdefs.h"
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
configure:1268: checking size of char
configure:1287: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1307: checking size of short
configure:1326: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1346: checking size of int
configure:1365: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1385: checking size of long
configure:1404: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1425: checking size of float
configure:1444: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1464: checking size of double
configure:1483: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1504: checking for working const
configure:1558: cc -c -g  conftest.c 1>&5
configure:1581: checking for prototypes
configure:1590: cc -c -g  conftest.c 1>&5
"configure", line 1587: warning: statement not reached
configure:1608: checking for unistd.h
configure:1618: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1647: checking for getpagesize
configure:1675: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5
configure:1700: checking for working mmap
configure:1848: cc -o conftest -g   conftest.c -lz -ljpeg  1>&5

--------------627F849C54B58F2B3BF31EC3--