jer
...
сборка php с поддержкой freetype2
freebsd 6.2
php 5.2.6
все необходимые либы лежат в /usr/local/lib
freetype 2.3.7
./configure --with-mysql --with-pdo-mysql --enable-debug --with-t1lib=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --enable-gd-native-ttf --with-gd
проходит без ошибок
далее:
make
...
In function `fontFetch':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:339: undefined reference to `TT_Open_Face'
ext/gd/gdttf.o(.text+0x335):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:349: undefined reference to `TT_Get_Face_Properties'
ext/gd/gdttf.o(.text+0x34d):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:352: undefined reference to `TT_New_Instance'
ext/gd/gdttf.o(.text+0x389):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:358: undefined reference to `TT_Set_Instance_Resolutions'
ext/gd/gdttf.o(.text+0x3e9):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:364: undefined reference to `TT_Set_Instance_CharSize'
ext/gd/gdttf.o(.text+0x428):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:370: undefined reference to `TT_Get_Instance_Metrics'
ext/gd/gdttf.o(.text+0x439):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:373: undefined reference to `TT_Get_CharMap_Count'
ext/gd/gdttf.o(.text+0x46c):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:376: undefined reference to `TT_Get_CharMap_ID'
ext/gd/gdttf.o(.text+0x4ae):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:380: undefined reference to `TT_Get_CharMap'
ext/gd/gdttf.o(.text+0x4ec):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:384: undefined reference to `TT_Get_CharMap'
ext/gd/gdttf.o(.text+0x52a):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:388: undefined reference to `TT_Get_CharMap'
ext/gd/gdttf.o(.text+0x676): In function `fontRelease':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:415: undefined reference to `TT_Done_Instance'
ext/gd/gdttf.o(.text+0x687):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:416: undefined reference to `TT_Close_Face'
ext/gd/gdttf.o(.text+0x76d): In function `glyphFetch':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:448: undefined reference to `TT_New_Glyph'
ext/gd/gdttf.o(.text+0x7ee):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:459: undefined reference to `TT_Char_Index'
ext/gd/gdttf.o(.text+0x828):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:461: undefined reference to `TT_Char_Index'
ext/gd/gdttf.o(.text+0x857):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:463: undefined reference to `TT_Char_Index'
ext/gd/gdttf.o(.text+0x87e):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:465: undefined reference to `TT_Load_Glyph'
ext/gd/gdttf.o(.text+0x8c3):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:471: undefined reference to `TT_Get_Glyph_Metrics'
ext/gd/gdttf.o(.text+0x8f6):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:473: undefined reference to `TT_Get_Glyph_Outline'
ext/gd/gdttf.o(.text+0x912):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:474: undefined reference to `TT_Transform_Outline'
ext/gd/gdttf.o(.text+0xdc3): In function `glyphRelease':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:521: undefined reference to `TT_Done_Glyph'
ext/gd/gdttf.o(.text+0xecd): In function `bitmapFetch':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:553: undefined reference to `TT_Get_Glyph_Pixmap'
ext/gd/gdttf.o(.text+0xef5):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:555: undefined reference to `TT_Get_Glyph_Bitmap'
ext/gd/gdttf.o(.text+0x155e): In function `gdttf':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:753: undefined reference to `TT_Init_FreeType'
*** Error code 1
чего ему не хватает?
freebsd 6.2
php 5.2.6
все необходимые либы лежат в /usr/local/lib
freetype 2.3.7
./configure --with-mysql --with-pdo-mysql --enable-debug --with-t1lib=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --enable-gd-native-ttf --with-gd
проходит без ошибок
далее:
make
...
In function `fontFetch':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:339: undefined reference to `TT_Open_Face'
ext/gd/gdttf.o(.text+0x335):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:349: undefined reference to `TT_Get_Face_Properties'
ext/gd/gdttf.o(.text+0x34d):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:352: undefined reference to `TT_New_Instance'
ext/gd/gdttf.o(.text+0x389):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:358: undefined reference to `TT_Set_Instance_Resolutions'
ext/gd/gdttf.o(.text+0x3e9):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:364: undefined reference to `TT_Set_Instance_CharSize'
ext/gd/gdttf.o(.text+0x428):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:370: undefined reference to `TT_Get_Instance_Metrics'
ext/gd/gdttf.o(.text+0x439):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:373: undefined reference to `TT_Get_CharMap_Count'
ext/gd/gdttf.o(.text+0x46c):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:376: undefined reference to `TT_Get_CharMap_ID'
ext/gd/gdttf.o(.text+0x4ae):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:380: undefined reference to `TT_Get_CharMap'
ext/gd/gdttf.o(.text+0x4ec):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:384: undefined reference to `TT_Get_CharMap'
ext/gd/gdttf.o(.text+0x52a):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:388: undefined reference to `TT_Get_CharMap'
ext/gd/gdttf.o(.text+0x676): In function `fontRelease':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:415: undefined reference to `TT_Done_Instance'
ext/gd/gdttf.o(.text+0x687):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:416: undefined reference to `TT_Close_Face'
ext/gd/gdttf.o(.text+0x76d): In function `glyphFetch':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:448: undefined reference to `TT_New_Glyph'
ext/gd/gdttf.o(.text+0x7ee):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:459: undefined reference to `TT_Char_Index'
ext/gd/gdttf.o(.text+0x828):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:461: undefined reference to `TT_Char_Index'
ext/gd/gdttf.o(.text+0x857):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:463: undefined reference to `TT_Char_Index'
ext/gd/gdttf.o(.text+0x87e):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:465: undefined reference to `TT_Load_Glyph'
ext/gd/gdttf.o(.text+0x8c3):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:471: undefined reference to `TT_Get_Glyph_Metrics'
ext/gd/gdttf.o(.text+0x8f6):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:473: undefined reference to `TT_Get_Glyph_Outline'
ext/gd/gdttf.o(.text+0x912):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:474: undefined reference to `TT_Transform_Outline'
ext/gd/gdttf.o(.text+0xdc3): In function `glyphRelease':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:521: undefined reference to `TT_Done_Glyph'
ext/gd/gdttf.o(.text+0xecd): In function `bitmapFetch':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:553: undefined reference to `TT_Get_Glyph_Pixmap'
ext/gd/gdttf.o(.text+0xef5):/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:555: undefined reference to `TT_Get_Glyph_Bitmap'
ext/gd/gdttf.o(.text+0x155e): In function `gdttf':
/usr/home/adm/php-5.2.6/ext/gd/gdttf.c:753: undefined reference to `TT_Init_FreeType'
*** Error code 1
чего ему не хватает?