We are trying to build php 4.1.1 with ming 0.2a support on our Solaris
2.8 
machine using gcc 2.95.2. However, we encounter some problems:

First, when we tried to build a dynamic ming library at the source tree of ming
0.2a, we kept getting the following error message:

   gcc -g -Wall movie.o displaylist.o blocklist.o position.o movieclip.o  shape_util.o 
shape_cubic.o text_util.o fill.o ming.o actioncompiler/compile.o  
actioncompiler/swf4compiler.tab.o  actioncompiler/lex.swf4.o  
actioncompiler/swf5compiler.tab.o  actioncompiler/lex.swf5.o  
actioncompiler/compileaction.o  actioncompiler/assembler.o blocks/*.o -shared -fpic \
  -o libming.so
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x3120      actioncompiler/swf4compiler.tab.o
<unknown>                           0x3124      actioncompiler/swf4compiler.tab.o
<unknown>                           0x3128      actioncompiler/swf4compiler.tab.o
<unknown>                           0x312c      actioncompiler/swf4compiler.tab.o
<unknown>                           0x3130      actioncompiler/swf4compiler.tab.o
[...]
<unknown>                           0x23c       actioncompiler/lex.swf4.o
<unknown>                           0x240       actioncompiler/lex.swf4.o
<unknown>                           0x244       actioncompiler/lex.swf4.o
<unknown>                           0x248       actioncompiler/lex.swf4.o
[...]
<unknown>                           0x5270      actioncompiler/swf5compiler.tab.o
<unknown>                           0x5274      actioncompiler/swf5compiler.tab.o
<unknown>                           0x5278      actioncompiler/swf5compiler.tab.o
[...]
<unknown>                           0x1e80      actioncompiler/lex.swf5.o
<unknown>                           0x1e84      actioncompiler/lex.swf5.o
<unknown>                           0x1e88      actioncompiler/lex.swf5.o
[...]
<unknown>                           0x964       blocks/jpeg.o
destroySWFOutputBlock               0x40        blocks/action.o
destroySWFOutputBlock               0xfc        blocks/outputblock.o
[...]
SWFOutput_byteAlign                 0x448       blocks/textfield.o
destroySWFBlockList                 0xa4        movie.o
destroySWFBlockList                 0x10        movieclip.o
[...]
completeSWFTextField                0x510       blocks/textfield.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `dynamic'
Current working directory /site4/web_kit_1.0_rodgers/ming-0.2a/src
*** Error code 1
make: Fatal error: Command failed for target `dynamic'

 The error messages went more than 6000 lines.

We tried to continue it by entering php_ext directory and did the "make". The
error message shows that file "ming.c" does not exist. After we manually copied
ming-4.0.7.c to ming.c, we still had error message:

   gcc -Wall -g -DHAVE_MING -DCOMPILE_DL_MING -DZEND_NEW_ERROR_HANDLING -c ming.c -I. 
-I.. `php-config --includes`
   In file included from /depot/package/php_4.0.0/include/php/php.h:34,
                 from ming.c:27:
   /depot/package/php_4.0.0/include/php/Zend/zend.h:26: warning: 
`ZEND_NEW_ERROR_HANDLING' redefined
   *Initialization*:1: warning: this is the location of the previous definition
   ming.c:28: tsrm_virtual_cwd.h: No such file or directory
   *** Error code 1
   make: Fatal error: Command failed for target `ming.o'

Then, we have to settle with ming static library and installed it. We copied
the files under php_ext/ to php_4.1.1/ext/ming/. When we
tried to configure php 4.1.1 with option "--with-ming=/depot/package/ming_0.2a",
or "--with-ming=./ext/ming", it complains that:

   configure: error: Please reinstall libming.so - I cannot find libming.so


So what is the standard procedure to install ming with php? And why can't
I build the dynamic library for ming?

Thanks for the help.

Ziying Sherwin

P.S. I am not on the mailing list, please send your response to:

[EMAIL PROTECTED]


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to