Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Igor O. Ladygin                      2:5020/400     30 Jan 2002  13:16:05
 To : All
 Subject : # MRTG ошибка компиляции нет gdImagePng
 -------------------------------------------------------------------------------- 
 
 Привет Всем!
 
 Проблема с компиляцией MRTG:
 
 checking for gcc... gcc
 checking whether the C compiler (gcc  ) works... yes
 checking whether the C compiler (gcc  ) is a cross-compiler... no
 checking whether we are using GNU C... yes
 checking whether gcc accepts -g... yes
 checking how to run the C preprocessor... gcc -E
 checking whether make sets ${MAKE}... yes
 checking for a BSD compatible install... /usr/bin/ginstall -c
 checking for perl... /usr/bin/perl
 checking for groff... /usr/bin/groff
 checking for sqrt in -lm... yes
 checking for acos in -lm... yes
 checking for gdImageGif in -lgd... no
 checking for gdImagePng in -lgd... no
 checking for gdImagePng_jpg in -lgd... no
 checking for gdImagePng_jpg_ft in -lgd... no
 checking for gd.h... yes
 
 ** The GD library is required for rateup to compile.
    Get it from http://www.boutell.com, compile it and
    use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
    its location. You might also have to use --with-z-inc, --with-z-lib
    and --with-png-inc, --with-png-lib for gd versions 1.6 and higher.
    Check config.log for more information on the problem. If your system
    has libgd installed, you probably mis the gd.h header file.
 
 Библиотеки zlib, libpng, gd установлены для верности и в /usr/lib и
 /usr/local/lib. Тест для gd (make test, ./gddemo) проходит, тестовая
 картинка рисуется. Сам MRTG при компиляции находит gdlib.so, и в лог идёт
 следующее:
 
 configure:1259: checking for gdImagePng in -lgd
 configure:1278: gcc -o
 conftest -g -O2  -I/usr/local/lib  -L/usr/local/lib -L/us
 r/lib -lgd -L/usr/local/lib -L/usr/local/lib -lm
 conftest.c -lgd -lpng -lz -lm -
 
 lm  1>&5
 
 /usr/lib/libgd.so: undefined reference to `jpeg_read_scanlines'
 /usr/lib/libgd.so: undefined reference to `jpeg_simple_progression'
 /usr/lib/libgd.so: undefined reference to `jpeg_set_defaults'
 /usr/lib/libgd.so: undefined reference to `jpeg_start_decompress'
 /usr/lib/libgd.so: undefined reference to `jpeg_destroy'
 /usr/lib/libgd.so: undefined reference to `jpeg_write_marker'
 /usr/lib/libgd.so: undefined reference to `jpeg_destroy_decompress'
 /usr/lib/libgd.so: undefined reference to `jpeg_std_error'
 /usr/lib/libgd.so: undefined reference to `jpeg_CreateDecompress'
 /usr/lib/libgd.so: undefined reference to `jpeg_read_header'
 /usr/lib/libgd.so: undefined reference to `jpeg_start_compress'
 /usr/lib/libgd.so: undefined reference to `jpeg_destroy_compress'
 /usr/lib/libgd.so: undefined reference to `jpeg_finish_decompress'
 /usr/lib/libgd.so: undefined reference to `jpeg_resync_to_restart'
 /usr/lib/libgd.so: undefined reference to `jpeg_CreateCompress'
 /usr/lib/libgd.so: undefined reference to `jpeg_finish_compress'
 /usr/lib/libgd.so: undefined reference to `jpeg_set_quality'
 /usr/lib/libgd.so: undefined reference to `jpeg_write_scanlines'
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 1267 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
 char gdImagePng();
 
 int main() {
 gdImagePng()
 ; return 0; }
 
 Библиотека /usr/lib/libgd.so это именно та с которой проходит тест gd.
 Версии ПО следующие:
 
 zlib-1.1.3
 libpng-1.2.1
 gd-2.0.1
 Mrtg-2.9.7
 
 Почему mrtg не может найти поддержку gdImagePng в /usr/lib/libgd.so ???????
 %(
 
 Sended By ASSA
 --- ifmail v.2.15dev5
  * Origin: Zabtrans RailWay Depatment (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 # MRTG ошибка компиляции нет gdImagePng   Igor O. Ladygin   30 Jan 2002 13:16:05 
Архивное /ru.linux/13797449f134c.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional