Project

General

Profile

php mrc library

Added by Anonymous over 18 years ago

php_mrc extension released

It should fix problems... I tested it with PHP5 as well.


Replies (4)

php mrc library - Added by Anonymous over 18 years ago

Dear Jim and Denis,

I've now installed the latest dbem package, and from there I've copied

over the php_mrc...so file to /usr/lib64/php/extensions/mrc.so in order to

replace the old mrc.so library.

However looking at the test data set the two images 6gr.mrc and 6gr_1sc.mrc

are still not displayed. Checking the apache error_log file I found the

following messages:

[Thu Mar 02 09:46:10 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- 
resuming normal operations
/usr/sbin/httpd2-prefork: symbol lookup error: 
/usr/lib64/php/extensions/mrc.so: undefined symbol: gdImageCreateTrueColor

Interestingly your mrc.so version does not seem to require the gd library,
compared to the one I've compiled myself (first below):
em-raid:/usr/lib64/php/extensions # ldd ralph_mrc.so

libgd.so.2 => /usr/local/lib/libgd.so.2 (0x00002aaaaabb7000)

libsrfftw.so.2 => /usr/local/lib/libsrfftw.so.2 (0x00002aaaaad06000)

libsfftw.so.2 => /usr/local/lib/libsfftw.so.2 (0x00002aaaaae36000)

libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaaaf8b000)

libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaab1b6000)

libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaab2d7000)

libz.so.1 => /usr/lib64/libz.so.1 (0x00002aaaab411000)

libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab526000)

/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)

Now your version:
em-raid:/usr/lib64/php/extensions # ldd mrc.so

libsrfftw.so.2 => /usr/local/lib/libsrfftw.so.2 (0x00002aaaaabd4000)

libsfftw.so.2 => /usr/local/lib/libsfftw.so.2 (0x00002aaaaad04000)

libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaaae3c000)

libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab067000)

/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)

Don't know if that matters, but on the other hand the gd symbols are

exactly the ones which are missing (according to the apache error_log).

Final question: Would you prefer if I put this into the bug tracking system

or the bulletin board instead of mailing you directly?

Ralph

php mrc library - Added by Anonymous over 18 years ago

Hi Ralph,

gdImageCreateTrueColor is part of gd library but also part of "gd bundled (2.0.28 compatible)" provided by PHP; depending how your version of php was build.

http://[yourhost]/info.php

gd

GD Support enabled

GD Version bundled (2.0.28 compatible)

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.1.10

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XPM Support enabled

XBM Support enabled

Do you see any GD lib in your phpinfo page or in your php.ini file?

make sure that mrc.so is registered after gd.so in php.ini:

>vi /etc/php.ini
[extension section]
....
extension=gd.so
....
extension=mrc.so

In /usr/include/php/ext/mrc;
the file config.m4 sets the Makefile via autoconf and automake:
Because my version of PHP uses GD builtin bundle, I commented out 2 lines with ("dnl") :

PHP_ADD_LIBRARY_WITH_PATH(sfftw, $FFTW_LIB_DIR, MRC_SHARED_LIBADD)

PHP_ADD_LIBRARY_WITH_PATH(srfftw, $FFTW_LIB_DIR, MRC_SHARED_LIBADD)
dnl     PHP_ADD_LIBRARY_WITH_PATH(gd, $GD_LIB_DIR, MRC_SHARED_LIBADD)

PHP_ADD_INCLUDE($FFTW_DIR/include)
dnl      PHP_ADD_INCLUDE($GD_DIR)

PHP_SUBST(MRC_SHARED_LIBADD)

each time you change config.m4
run ./clean first
>./clean
> phpize; ./configure; make; make install; rcapache2 restart

let me know how it goes, and yes the bulletin board is better to keep track of such information.

-Denis.

php mrc library - Added by Anonymous over 18 years ago

Hi Denis,

just wanted to let you know that everything now works fine.

It was indeed the missing php-gd module which caused

the problem.

Thanks for your help,

Ralph

sfftw.h .. not found - Added by Anchi Cheng over 16 years ago

Posting for Xing Meng:

....When installing mrctool (php application), there was

error saying 'sfftw.h .. not found'.

I tried two versions FFTW lib (2.xx and 3.xx), the problem still exsit.

Can you give ideas for this?

Thank you again and regards,

Xing Meng

    (1-4/4)