473,394 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Anybody who making a shared library for PHP in HP and IBM?

Hello.

I wanna use my dynamic shared library(built with C language) with php
script.
(PHP version is 4.0.6)
So I making a shared library(*.so) in Solaris environment(2.7) and it is
successful.
Php script can load my library successfully.

And Now I port my library to HP(HP-UX 11.0) and IBM(AIX 4.1.3) system.
But I can't build my shared library.
I don't know why it can't be compiled.
Following is Error Message:

in HP environment :
==================

ld: Unsatisfied symbols:
_convert_to_string (code)
convert_to_long (code)
zend_get_parameters_ex (code)
_emalloc (code)
alloc_globals (data)
_zval_copy_ctor (code)
wrong_param_count (code)
_estrndup (code)
$global$ (data)
ld: Unsatisfied symbols:
$global$ (data)
*** Error exit code 1

Stop.

in IBM environment :
==================

ld: 0711-327 WARNING: Entry point not found: __start
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
make: The error code from the last command is 8.
Stop.
In HP environment, I added libphp4.a for link in my Makefile.
So some error was disappear. But "$global$ (data)" message was seen still.
But I can't added libphp4.a in solaris environment and successfully
compiled.
What is problem? Did you know this?
Please Help me..

Same as, In IBM enviroment, I can't make a library.
I don't know why above error message occur.
Please help...

Each environment, I added "-r" linker(ld) options.
So it was compiled. But php script can't load my shared library.
Following is error message :

in HP environment :
==================

Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20001222/mylib.sl' - Bad
magic number for shared library:
/usr/local/lib/php/extensions/no-debug-non-zts-20001222/mylib.sl in
<b>a.php</b>
in IBM environment :
==================

Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20001222/mylib.so' - Could
not load module
/usr/local/lib/php/extensions/no-debug-non-zts-20001222/mylib.so
The .loader section does not exist. in <b>a.php</b>
If you know this problem. Please tell me how I fix this problem.
Please...

Thank you for reading...

Have a nice day..
Jul 17 '05 #1
0 2167

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil | last post by:
I realize this is the php group, but I have a question that recurses back to my php install. My objective is a pure 64 bit shared object installation of php 5.0 on UltraSparc Solaris 9 compiled...
1
by: AH | last post by:
I have two functions in my shared library which are declared as follows: void setName(const std::string& str); std::vector<std::string> getInfo(); Since the code is compiled and in shared...
7
by: redneon | last post by:
Does anyone have any good links to information on how it's possible to make a library in C++? I can't seem to find anything.
2
by: santa19992000 | last post by:
Confusing th eword with "library", "shared library" and how to use these things in real C project, is there any small example I can take a look. Thanks.
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
7
by: akennis | last post by:
First of all, sorry for duplicating this post. I put it up in the alt.comp.lang.learn.c-c++ mistakenly. I'm investigating a problem whereby exceptions thrown from functions in a Shared Library...
5
by: David T. Ashley | last post by:
I've occasionally had trouble compiling and linking programs that use shared libraries. That never made a lot of sense to me, because I thought the operating system went hunting for the symbols...
3
by: S S | last post by:
Hi Are there some known issues using STL with shared library. Recently I got some crash for which the reason I dont see any, and searching on goolge shown some such issues with shared library. ...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.