Menu

#10 Redhat ES Version 4 x86 64 Bit Ed. Install

open
nobody
None
5
2015-01-22
2006-05-08
No

Hi,

I have been using the SAPRFC module for a couple
of years now. I am upgrading hardware from an IA32
architecture to the SUN 64bit environment. I feel
comfortable with the install process, but I can't get
past this issue and I can't seem to google anything
regarding this error.

In the /var/log/httpd/error.log file I have an entry
for:
PHP Warning: Unknown(): Unable to load dynamic
library '/usr/lib64/php4/saprfc.so' -
/usr/lib64/php4/saprfc.so: undefined symbol:
_zend_hash_index_update_or_next_insert in Unknown on
line 0

Specs:
Red Hat Enterprise Linux ES release 4 (Nahant Update
3)
Kernel: 2.6.9-34.EL-smp-x86_64
PHP Version 4.3.9
SAP RFCSDK 6.4 Non-Unicode: RFC_23-10003377.SAR

/////////////////////////////////
//Install Process and Output
/////////////////////////////////

[root@localhost sap]# pwd
/usr/sap
[root@localhost sap]# ls
rfcsdk saprfc-1.4.1 tank
[root@localhost saprfc-1.4.1]# pwd
/usr/sap/saprfc-1.4.1
[root@localhost saprfc-1.4.1]# phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
config.m4:30: warning: AC_CANONICAL_HOST invoked
multiple times
config.m4:30: warning: AC_CANONICAL_HOST invoked
multiple times
[root@localhost saprfc-1.4.1]# ./configure
checking for egrep... grep -E
checking for a sed that does not truncate
output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name...
a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none
needed
checking whether gcc and cc understand -c and -o
together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-
gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -
I/usr/local/include/php -
I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -
I/usr/local/include/php/ext
checking for PHP extension
directory... /usr/local/lib/php/extensions/no-debug-
non-zts-20050922
checking for PHP installed headers
prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or
later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for saprfc support... yes, shared
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object
files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries...
pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler...
yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line
arguments... 32768
checking command to parse /usr/bin/nm -B output from
gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions...
no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m
elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked
in... no
checking dynamic linker characteristics... GNU/Linux
ld.so
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m
elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is
GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m
elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m
elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux
ld.so
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
[root@localhost saprfc-1.4.1]# make
/bin/sh /usr/sap/saprfc-1.4.1/libtool --mode=compile
gcc -I. -I/usr/sap/saprfc-1.4.1 -DPHP_ATOM_INC -
I/usr/sap/saprfc-1.4.1/include -I/usr/sap/saprfc-
1.4.1/main -I/usr/sap/saprfc-1.4.1 -
I/usr/local/include/php -
I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -
I/usr/local/rfcsdk/include -DHAVE_CONFIG_H -g -
O2 -c /usr/sap/saprfc-1.4.1/saprfc.c -o saprfc.lo
mkdir .libs
gcc -I. -I/usr/sap/saprfc-1.4.1 -DPHP_ATOM_INC -
I/usr/sap/saprfc-1.4.1/include -I/usr/sap/saprfc-
1.4.1/main -I/usr/sap/saprfc-1.4.1 -
I/usr/local/include/php -
I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -
I/usr/local/rfcsdk/include -DHAVE_CONFIG_H -g -O2 -
c /usr/sap/saprfc-1.4.1/saprfc.c -fPIC -DPIC -
o .libs/saprfc.o
/bin/sh /usr/sap/saprfc-1.4.1/libtool --mode=compile
gcc -I. -I/usr/sap/saprfc-1.4.1 -DPHP_ATOM_INC -
I/usr/sap/saprfc-1.4.1/include -I/usr/sap/saprfc-
1.4.1/main -I/usr/sap/saprfc-1.4.1 -
I/usr/local/include/php -
I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -
I/usr/local/rfcsdk/include -DHAVE_CONFIG_H -g -
O2 -c /usr/sap/saprfc-1.4.1/rfccal.c -o rfccal.lo
gcc -I. -I/usr/sap/saprfc-1.4.1 -DPHP_ATOM_INC -
I/usr/sap/saprfc-1.4.1/include -I/usr/sap/saprfc-
1.4.1/main -I/usr/sap/saprfc-1.4.1 -
I/usr/local/include/php -
I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -
I/usr/local/rfcsdk/include -DHAVE_CONFIG_H -g -O2 -
c /usr/sap/saprfc-1.4.1/rfccal.c -fPIC -DPIC -
o .libs/rfccal.o
/bin/sh /usr/sap/saprfc-1.4.1/libtool --mode=link
gcc -DPHP_ATOM_INC -I/usr/sap/saprfc-1.4.1/include -
I/usr/sap/saprfc-1.4.1/main -I/usr/sap/saprfc-1.4.1 -
I/usr/local/include/php -
I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -
I/usr/local/rfcsdk/include -DHAVE_CONFIG_H -g -
O2 -o saprfc.la -export-dynamic -avoid-version -
prefer-pic -module -rpath /usr/sap/saprfc-
1.4.1/modules saprfc.lo rfccal.lo -Wl,-
rpath,/usr/local/rfcsdk/lib -L/usr/local/rfcsdk/lib -
lrfccm
gcc -shared .libs/saprfc.o .libs/rfccal.o -
L/usr/local/rfcsdk/lib -lrfccm -Wl,-rpath -
Wl,/usr/local/rfcsdk/lib -Wl,-soname -Wl,saprfc.so -
o .libs/saprfc.so
creating saprfc.la
(cd .libs && rm -f saprfc.la && ln -s ../saprfc.la
saprfc.la)
/bin/sh /usr/sap/saprfc-1.4.1/libtool --mode=install
cp ./saprfc.la /usr/sap/saprfc-1.4.1/modules
cp ./.libs/saprfc.so /usr/sap/saprfc-
1.4.1/modules/saprfc.so
cp ./.libs/saprfc.lai /usr/sap/saprfc-
1.4.1/modules/saprfc.la
PATH="$PATH:/sbin" ldconfig -n /usr/sap/saprfc-
1.4.1/modules
------------------------------------------------------
----------------
Libraries have been installed in:
/usr/sap/saprfc-1.4.1/modules

If you ever happen to want to link against installed
libraries
in a given directory, LIBDIR, you must either use
libtool, and
specify the full pathname of the library, or use the
`-LLIBDIR'
flag during linking and do at least one of the
following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment
variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment
variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to
`/etc/ld.so.conf'

See any operating system documentation about shared
libraries for
more information, such as the ld(1) and ld.so(8)
manual pages.
------------------------------------------------------
----------------

Build complete.
(It is safe to ignore warnings about tempnam and
tmpnam).

[root@localhost saprfc-1.4.1]# make install
Installing shared
extensions: /usr/local/lib/php/extensions/no-
debug-non-zts-20050922/

[root@localhost saprfc-1.4.1]#
cp /usr/local/lib/php/extensions/no-debug-non-zts-
20050922/saprfc.so /usr/lib64/php4/

[root@localhost php.d]# pwd
/etc/php.d
[root@localhost php.d]# ls
ldap.ini mysql.ini odbc.ini pgsql.ini saprfc.ini
[root@localhost php.d]# tail saprfc.ini
extension=saprfc.so
[root@localhost php.d]#

//////////////////////////////
//Extension Dir in php.ini
//////////////////////////////
; Directory in which the loadable extensions
(modules) reside.
extension_dir = /usr/lib64/php4

//////////END PHP.INI/////////

[root@localhost httpd]# pwd
/var/log/httpd
[root@localhost httpd]# ls
access_log arc error_log.1 ssl_error_log
access_log.1 error_log ssl_access_log
ssl_request_log

[root@localhost httpd]# apachectl restart
[root@localhost httpd]#

[root@localhost httpd]# tail error_log
[Mon May 08 13:20:59 2006] [notice] caught SIGTERM,
shutting down
[Mon May 08 13:21:02 2006] [notice] suEXEC mechanism
enabled (wrapper: /usr/sbin/suexec)
[Mon May 08 13:21:02 2006] [notice] Digest:
generating secret for digest authentication ...
[Mon May 08 13:21:02 2006] [notice] Digest: done
[Mon May 08 13:21:02 2006] [notice] LDAP: Built with
OpenLDAP LDAP SDK
[Mon May 08 13:21:02 2006] [notice] LDAP: SSL support
unavailable
PHP Warning: Unknown(): Unable to load dynamic
library '/usr/lib64/php4/saprfc.so' -
/usr/lib64/php4/saprfc.so: undefined symbol:
_zend_hash_index_update_or_next_insert in Unknown on
line 0
[Mon May 08 13:21:02 2006] [notice] mod_python:
Creating 4 session mutexes based on 256 max processes
and 0 max threads.
[Mon May 08 13:21:02 2006] [notice] Apache/2.0.52
(Red Hat) configured -- resuming normal operations
[root@localhost httpd]#

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.