tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc error - compiling with configure (dillo)


From: Jens Arm
Subject: [Tinycc-devel] tcc error - compiling with configure (dillo)
Date: Tue, 22 Apr 2003 12:03:39 +0200

Hi

I have tried to compile dillo with tcc, but in the configure I get SegFaults in 
checking for jpeg and png:


address@hidden dillo]$ export CC=tcc
address@hidden dillo]$./configure
checking build system type... i686-pc-linux-gnuaout
checking host system type... i686-pc-linux-gnuaout
checking target system type... i686-pc-linux-gnuaout
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... tcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether tcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of tcc... none
checking for tcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking how to run the C preprocessor... /lib/cpp
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for zlibVersion in -lz... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... no
which: no libpng-config in 
(/home/tux/bin:/home/tux/j2sdk1.4.1_02/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games)
which: no libpng12-config in 
(/home/tux/bin:/home/tux/j2sdk1.4.1_02/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games)
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_check_sig in -lpng... no
checking for pthread_create in -lpthread... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for socket... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dpi/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/IO/Makefile
config.status: creating config.h
config.status: executing depfiles commands


>From the attached config.log:


configure:3846: tcc -o conftest -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -I/usr/X11R6/include -g   conftest.c -ljpeg  -lz  
-L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 
-lm >&5
./configure: line 1: 27046 Segmentation fault      $CC -o conftest$ac_exeext 
$CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:3849: $? = 139
configure: failed program was:
#line 3820 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char jpeg_destroy_decompress ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
jpeg_destroy_decompress ();
  ;
  return 0;
}


Then after that I get a lvalue error:

tcc -DHAVE_CONFIG_H -I. -I. -I..  -DDILLORC_SYS='"/usr/local/etc/dillorc"'   
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/X11R6/include -g -c `test -f 'dw_table.c' || echo './'`dw_table.c
dw_table.c:1383: lvalue expected


Jens

Attachment: config.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]