Super-foX 0 Posted 2008-07-01 22:05:14 Share Posted 2008-07-01 22:05:14 Всем привет, столкнулся с проблемой, ставлю php5 из портов, без опции --with-gd php5 ставится нормально, а при включении этой опции выбивает такую ошибку In file included from /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:68: /usr/local/include/gdfontt.h:27: error: syntax error before "gdFontPtr" /usr/local/include/gdfontt.h:28: error: syntax error before "gdFontGetTiny" /usr/local/include/gdfontt.h:28: warning: data definition has no type or storage class In file included from /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:69: /usr/local/include/gdfonts.h:26: error: syntax error before "gdFontPtr" /usr/local/include/gdfonts.h:27: error: syntax error before "gdFontGetSmall" /usr/local/include/gdfonts.h:27: warning: data definition has no type or storage class In file included from /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:70: /usr/local/include/gdfontmb.h:26: error: syntax error before "gdFontPtr" /usr/local/include/gdfontmb.h:27: error: syntax error before "gdFontGetMediumBold" /usr/local/include/gdfontmb.h:27: warning: data definition has no type or storage class In file included from /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:71: /usr/local/include/gdfontl.h:28: error: syntax error before "gdFontPtr" /usr/local/include/gdfontl.h:29: error: syntax error before "gdFontGetLarge" /usr/local/include/gdfontl.h:29: warning: data definition has no type or storage class In file included from /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:72: /usr/local/include/gdfontg.h:27: error: syntax error before "gdFontPtr" /usr/local/include/gdfontg.h:28: error: syntax error before "gdFontGetGiant" /usr/local/include/gdfontg.h:28: warning: data definition has no type or storage class In file included from /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:104: /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd_ctx.c: In function `_php_image_output_ctx': /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd_ctx.c:108: error: structure has no member named `free' /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd_ctx.c:151: error: structure has no member named `free' /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c: In function `_php_image_type': /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:1411: error: structure has no member named `free' /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:1418: error: structure has no member named `free' /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c: In function `_php_image_create_from_string': /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:1452: error: structure has no member named `free' /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c: In function `_php_image_create_from': /usr/ports/lang/php5/work/php-5.1.6/ext/gd/gd.c:1613: error: structure has no member named `free' *** Error code 1 Stop in /usr/ports/lang/php5/work/php-5.1.6. *** Error code 1 Stop in /usr/ports/lang/php5. посоветуйте, как с этим бороться? Link to post Share on other sites
Pentalgin 8 Posted 2008-07-01 22:10:07 Share Posted 2008-07-01 22:10:07 Сделай make clean, потом обнови порты, и потробуй поставить занового параметры сборки по пробуй изменить через make config. Link to post Share on other sites
Super-foX 0 Posted 2008-07-01 22:23:56 Author Share Posted 2008-07-01 22:23:56 Сейчас попробую! Попоже отпишусь! Link to post Share on other sites
devchaos 1 Posted 2008-07-01 22:26:45 Share Posted 2008-07-01 22:26:45 Я ставлю вот так, проблем небыло. cd /usr/ports/lang/php5 make install clean cd /usr/ports/lang/php5-extensions make config make install clean Link to post Share on other sites
Super-foX 0 Posted 2008-07-01 22:54:33 Author Share Posted 2008-07-01 22:54:33 У меня сначала стояло тоже, и было всё нормально, но мне потом пришлось включить опцию gettext, из за того я пересобирал пхп, ну после деинсталяции всё и началось, подымается только без опции --with-gd! Link to post Share on other sites
Super-foX 0 Posted 2008-07-02 07:16:04 Author Share Posted 2008-07-02 07:16:04 Обновил порты, установил обновлённый php5, после установки у меня сайты не грузит и в логах пишет PHP Fatal error: Call to undefined function session_set_cookie_params() in ... подскажите в чём проблема? Link to post Share on other sites
Super-foX 0 Posted 2008-07-02 16:22:51 Author Share Posted 2008-07-02 16:22:51 Спасибо, всё почистил, обновил порты, установил и всё нормально работает! Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now