裝php5但是gd2的make出問題 不能安裝

這個版面主要討論 debian 在 server 端的應用問題, server 種類繁多..舉凡 Web Server 、 File Server、 DHCP Server..等等。

版主: 阿信

裝php5但是gd2的make出問題 不能安裝

文章訪客 » 週四 7月 21, 2005 1:02 am

我先執行

./configure --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype2/

make後出現以下錯誤訊息


gd_png.c:15:67: png.h: No such file or directory
gd_png.c:46: error: syntax error before "jmp_buf"
gd_png.c:46: warning: no semicolon at end of struct or union
gd_png.c:48: warning: data definition has no type or storage class
gd_png.c:50: error: syntax error before "gdPngJmpbufStruct"
gd_png.c:50: warning: data definition has no type or storage class
gd_png.c:53: error: syntax error before "png_ptr"
gd_png.c: In function `gdPngErrorHandler':
gd_png.c:55: error: `jmpbuf_ptr' undeclared (first use in this function)
gd_png.c:55: error: (Each undeclared identifier is reported only once
gd_png.c:55: error: for each function it appears in.)
gd_png.c:66: error: `msg' undeclared (first use in this function)
gd_png.c:69: error: `png_ptr' undeclared (first use in this function)
gd_png.c: At top level:
gd_png.c:83: error: syntax error before "png_ptr"
gd_png.c: In function `gdPngReadData':
gd_png.c:85: error: `data' undeclared (first use in this function)
gd_png.c:85: error: `length' undeclared (first use in this function)
gd_png.c:85: error: `png_ptr' undeclared (first use in this function)
gd_png.c: At top level:
gd_png.c:89: error: syntax error before "png_ptr"
gd_png.c: In function `gdPngWriteData':
gd_png.c:91: error: `data' undeclared (first use in this function)
gd_png.c:91: error: `length' undeclared (first use in this function)
gd_png.c:91: error: `png_ptr' undeclared (first use in this function)
gd_png.c: At top level:
gd_png.c:95: error: syntax error before "png_ptr"
gd_png.c: In function `gdImageCreateFromPngCtx':
gd_png.c:122: error: `png_byte' undeclared (first use in this function)
gd_png.c:122: error: syntax error before "sig"
gd_png.c:123: error: `png_structp' undeclared (first use in this function)
gd_png.c:124: error: `png_infop' undeclared (first use in this function)
gd_png.c:125: error: `png_uint_32' undeclared (first use in this function)
gd_png.c:128: error: `png_colorp' undeclared (first use in this function)
gd_png.c:128: error: syntax error before "palette"
gd_png.c:129: error: `png_color_16p' undeclared (first use in this function)
gd_png.c:131: error: `png_bytep' undeclared (first use in this function)
gd_png.c:133: error: `png_bytepp' undeclared (first use in this function)
gd_png.c:145: error: `sig' undeclared (first use in this function)
gd_png.c:150: error: `png_ptr' undeclared (first use in this function)
gd_png.c:150: error: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
gd_png.c:161: error: `info_ptr' undeclared (first use in this function)
gd_png.c:176: error: request for member `jmpbuf' in something not a structure or union
gd_png.c:189: error: `width' undeclared (first use in this function)
gd_png.c:189: error: `height' undeclared (first use in this function)
gd_png.c:191: error: `PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
gd_png.c:192: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
gd_png.c:204: error: `image_data' undeclared (first use in this function)
gd_png.c:205: error: `row_pointers' undeclared (first use in this function)
gd_png.c:215: error: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
gd_png.c:216: error: `palette' undeclared (first use in this function)
gd_png.c:221: error: `PNG_INFO_tRNS' undeclared (first use in this function)
gd_png.c:229: error: `trans' undeclared (first use in this function)
gd_png.c:243: error: `PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
gd_png.c:244: error: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use in this function)
gd_png.c:247: error: syntax error before "gdMalloc"
gd_png.c:273: error: `trans_gray_rgb' undeclared (first use in this function)
gd_png.c:291: error: case label not within a switch statement
gd_png.c:292: error: case label not within a switch statement
gd_png.c:298: error: `trans_color_rgb' undeclared (first use in this function)
gd_png.c:289: error: break statement not within loop or switch
gd_png.c:308: error: break statement not within loop or switch
gd_png.c: At top level:
gd_png.c:311: warning: parameter names (without types) in function declaration
gd_png.c:311: warning: data definition has no type or storage class
gd_png.c:314: error: `png_ptr' undeclared here (not in a function)
gd_png.c:314: error: `info_ptr' undeclared here (not in a function)
gd_png.c:314: error: initializer element is not constant
gd_png.c:314: warning: data definition has no type or storage class
gd_png.c:315: error: syntax error before "if"
gd_png.c:322: error: syntax error before '&' token
gd_png.c:327: warning: parameter names (without types) in function declaration
gd_png.c:327: error: conflicting types for `gdFree'
gd.h:561: error: previous declaration of `gdFree'
gd_png.c:327: warning: data definition has no type or storage class
gd_png.c:328: error: syntax error before "return"
gd_png.c:334: error: syntax error before '&' token
gd_png.c:335: warning: parameter names (without types) in function declaration
gd_png.c:335: warning: data definition has no type or storage class
gd_png.c:336: error: syntax error before "return"
gd_png.c:345: warning: parameter names (without types) in function declaration
gd_png.c:345: warning: data definition has no type or storage class
gd_png.c:346: error: syntax error before '(' token
gd_png.c:352: error: `im' undeclared here (not in a function)
gd_png.c:352: warning: data definition has no type or storage class
gd_png.c:353: error: syntax error before "for"
gd_png.c:358: error: `i' undeclared here (not in a function)
gd_png.c:358: error: conflicting types for `open'
gd_png.c:352: error: previous declaration of `open'
gd_png.c:358: warning: data definition has no type or storage class
gd_png.c:359: error: syntax error before '}' token
gd_png.c:371: error: syntax error before '&' token
gd_png.c:381: error: syntax error before "g"
gd_png.c:381: error: `row_pointers' undeclared here (not in a function)
gd_png.c:381: error: `j' undeclared here (not in a function)
gd_png.c:381: error: `boffset' undeclared here (not in a function)
gd_png.c:381: warning: data definition has no type or storage class
gd_png.c:382: error: syntax error before "b"
gd_png.c:382: error: `row_pointers' undeclared here (not in a function)
gd_png.c:382: error: `j' undeclared here (not in a function)
gd_png.c:382: error: `boffset' undeclared here (not in a function)
gd_png.c:382: warning: data definition has no type or storage class
gd_png.c:383: error: syntax error before '->' token
gd_png.c:394: error: syntax error before "g"
gd_png.c:394: error: redefinition of `g'
gd_png.c:381: error: `g' previously defined here
gd_png.c:394: error: `row_pointers' undeclared here (not in a function)
gd_png.c:394: error: `j' undeclared here (not in a function)
gd_png.c:394: error: `boffset' undeclared here (not in a function)
gd_png.c:394: warning: data definition has no type or storage class
gd_png.c:395: error: syntax error before "b"
gd_png.c:395: error: redefinition of `b'
gd_png.c:382: error: `b' previously defined here
gd_png.c:395: error: `row_pointers' undeclared here (not in a function)
gd_png.c:395: error: `j' undeclared here (not in a function)
gd_png.c:395: error: `boffset' undeclared here (not in a function)
gd_png.c:395: warning: data definition has no type or storage class
gd_png.c:399: error: syntax error before "a"
gd_png.c:400: error: `row_pointers' undeclared here (not in a function)
gd_png.c:400: error: `j' undeclared here (not in a function)
gd_png.c:400: error: `boffset' undeclared here (not in a function)
gd_png.c:400: warning: data definition has no type or storage class
gd_png.c:401: error: syntax error before '->' token
gd_png.c:413: error: `idx' undeclared here (not in a function)
gd_png.c:413: error: conflicting types for `open'
gd_png.c:358: error: previous declaration of `open'
gd_png.c:413: warning: data definition has no type or storage class
gd_png.c:414: error: syntax error before '}' token
gd_png.c:434: warning: parameter names (without types) in function declaration
gd_png.c:434: warning: data definition has no type or storage class
gd_png.c:435: warning: parameter names (without types) in function declaration
gd_png.c:435: warning: data definition has no type or storage class
gd_png.c:437: error: syntax error before "return"
gd_png.c: In function `gdImagePngCtxEx':
gd_png.c:493: error: `png_byte' undeclared (first use in this function)
gd_png.c:493: error: syntax error before "trans_values"
gd_png.c:494: error: `png_color_16' undeclared (first use in this function)
gd_png.c:495: error: `png_color' undeclared (first use in this function)
gd_png.c:496: error: `png_structp' undeclared (first use in this function)
gd_png.c:497: error: `png_infop' undeclared (first use in this function)
gd_png.c:502: error: `png_ptr' undeclared (first use in this function)
gd_png.c:502: error: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
gd_png.c:514: error: `info_ptr' undeclared (first use in this function)
gd_png.c:518: error: `png_infopp' undeclared (first use in this function)
gd_png.c:523: error: request for member `jmpbuf' in something not a structure or union
gd_png.c:589: error: `PNG_INTERLACE_ADAM7' undeclared (first use in this function)
gd_png.c:589: error: `PNG_INTERLACE_NONE' undeclared (first use in this function)
gd_png.c:596: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
gd_png.c:597: error: `PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
gd_png.c:598: error: `PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
gd_png.c:603: error: `PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
gd_png.c:611: error: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
gd_png.c:617: error: `trans_rgb_value' undeclared (first use in this function)
gd_png.c:666: error: `trans_values' undeclared (first use in this function)
gd_png.c:688: error: `palette' undeclared (first use in this function)
gd_png.c:719: error: `png_bytep' undeclared (first use in this function)
gd_png.c:719: error: `row_pointers' undeclared (first use in this function)
gd_png.c:725: error: `prow_pointers' undeclared (first use in this function)
gd_png.c:741: error: syntax error before "gdMalloc"
gd_png.c:741: error: syntax error before ')' token
gd_png.c: At top level:
gd_png.c:780: error: syntax error before "else"
gd_png.c:788: error: `row_pointers' used prior to declaration
gd_png.c:788: error: `png_bytep' undeclared here (not in a function)
gd_png.c:788: error: `height' undeclared here (not in a function)
gd_png.c:788: warning: initialization makes integer from pointer without a cast
gd_png.c:788: error: initializer element is not constant
gd_png.c:788: warning: data definition has no type or storage class
gd_png.c:789: error: syntax error before "if"
gd_png.c:804: warning: parameter names (without types) in function declaration
gd_png.c:804: warning: data definition has no type or storage class
gd_png.c:805: error: syntax error before "return"
gd_png.c:811: warning: parameter names (without types) in function declaration
gd_png.c:811: warning: data definition has no type or storage class
gd_png.c:812: warning: parameter names (without types) in function declaration
gd_png.c:812: warning: data definition has no type or storage class
gd_png.c:814: error: syntax error before "for"
gd_png.c:816: warning: parameter names (without types) in function declaration
gd_png.c:816: warning: data definition has no type or storage class
gd_png.c:817: error: syntax error before '}' token
gd_png.c:821: warning: parameter names (without types) in function declaration
gd_png.c:821: warning: data definition has no type or storage class
gd_png.c:822: error: syntax error before '}' token
gd_png.c:825: error: syntax error before '&' token
gd_png.c:825: warning: data definition has no type or storage class
gd_png.c:413: error: storage size of `open' isn't known
make[2]: *** [gd_png.lo] Error 1
make[2]: Leaving directory `/home/punk/gd-2.0.33'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/punk/gd-2.0.33'
make: *** [all] Error 2


thx
訪客
 

文章訪客 » 週四 7月 21, 2005 1:03 am

./configure --with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype2/

確定有

Configuration summary for gd 2.0.33:

Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
訪客
 


回到 debian server

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron