Author Topic: CentOS -- dvipng will configure but not compile  (Read 3305 times)

0 Members and 1 Guest are viewing this topic.

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
CentOS -- dvipng will configure but not compile
« on: March 29, 2007, 05:45:19 pm »
I downloaded dvipng-1.9 from sourceforge and am now trying to install it. (My stupid package manager, up2date, doesn't have it in its repositories. And I can't use yum b/c it takes up too much RAM. Damn VPS!)

It does fine when I run ./configure, but it screws up when I do a make. It almost seems as if there's an error in the code because it kills itself after it tries to compile set.c.

Here's the output (including the directory listing, the configure, and the make):

ls:
Code: [Select]
[root@vps dvipng-1.9]# ls
COPYING      commands.h     dvipng.1     install.texi   readme.texi
ChangeLog    config.h       dvipng.c     macros.texi    set.c
ChangeLog.0  config.h.in    dvipng.h     miktex.h       sfd.c
INSTALL      config.log     dvipng.o     miktex.mak     special.c
Makefile     config.status  dvipng.texi  misc.c         t1.c
Makefile.in  configure      enc.c        misc.o         test_dvipng.tex
README       configure.ac   font.c       mkinstalldirs  tfm.c
RELEASE      draw.c         font.o       papersiz.c     vf.c
aclocal.m4   draw.o         fontmap.c    pk.c
color.c      dvi.c          ft.c         pk.o
color.o      dvi.o          install-sh   ppagelist.c

configure:
Code: [Select]
[root@vps dvipng-1.9]# ./configure
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... 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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gs... gs
checking whether gs has the pngalpha device... no
checking whether gs has the png16m device... yes
configure: WARNING: Your EPS inclusions will be cropped to the
             boundingbox, and rendered on an opaque background.
             Upgrade GhostScript to avoid this.
checking for pow in -lm... yes
checking for deflate in -lz... yes
checking for basename in -lgen... no
checking for png_read_image in -lpng... yes
checking for gdImageCreate in -lgd... yes
checking for kpse_set_progname in -lkpathsea... yes
checking for T1_InitLib in -lt1... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking kpathsea/kpathsea.h usability... yes
checking kpathsea/kpathsea.h presence... yes
checking for kpathsea/kpathsea.h... yes
checking t1lib.h usability... no
checking t1lib.h presence... no
checking for t1lib.h... no
checking for freetype-config... /opt/lampp/bin/freetype-config
checking for FreeType - version >= 6.1.0... no
*** The FreeType test program failed to run.  If your system uses
*** shared libraries and they are installed outside the normal
*** system library path, make sure the variable LD_LIBRARY_PATH
*** (or whatever is appropiate for your system) is correctly set.
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking whether kpse_enc_format is in kpathsea/tex-file.h... no
checking for working alloca.h... yes
checking for alloca... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for dup2... yes
checking for memset... yes
checking for munmap... yes
checking for pow... yes
checking for putenv... yes
checking for strchr... yes
checking for strrchr... yes
checking for strtol... yes
checking for strstr... yes
checking for gdImageCreateTrueColor... no
checking for gdImagePngEx... no
checking for gdImageGif... no
checking for FT_Library_Version... yes
checking for makeinfo... :
checking if : understands @acronym{}... yes
checking if : understands @env{}... yes
checking if : understands @option{}... yes
checking for install-info... /sbin/install-info
checking for texmf.cnf... /usr/share/texmf/web2c/texmf.cnf
checking for kpsewhich... /usr/bin/kpsewhich
checking for psfonts.map... /usr/share/texmf/dvips/base/psfonts.map

** Configuration summary for dvipng 1.9:

   The -d (debug) switch is enabled:        yes
   Your gd is new enough (>=2.0) to enable
     the --truecolor switch, full alpha
     transparency, proper rescaling of
     included bitmaps, and jpeg inclusion:  no
   Your gd is new enough (>=2.0.12) to
     enable transparent backgrounds for EPS
     inclusion and the -z (compression)
     switch:                                no
   Your gd is new enough (>=2.0.28) to
     enable gif inclusion and output
     (dvigif):                              no
   FreeType font rendering available:       no
   Support for subfonts (CJK-LaTeX):        no
   T1lib font rendering available:          no

configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating config.h
config.status: config.h is unchanged

make:
Code: [Select]
[andrew@vps dvipng-1.9]$ make
gcc -g -O2 -Wall -I.  -c -o set.o set.c
set.c: In function `WriteImage':
set.c:170: warning: implicit declaration of function `gdImagePngEx'
set.c:170: `compression' undeclared (first use in this function)
set.c:170: (Each undeclared identifier is reported only once
set.c:170: for each function it appears in.)
make: *** [set.o] Error 1

Anyone have any ideas for how to fix this?

Thanks
« Last Edit: March 29, 2007, 06:02:31 pm by Ender »

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: CentOS -- dvipng will configure but not compile
« Reply #1 on: April 01, 2007, 09:44:42 am »
Solution: dvipng-1.9 and -1.8 won't compile, but 1.7 will.