php - 在 Ubuntu 上为 PHP 安装 Ingres 扩展

标签 php ubuntu ingres

PHP Ingres 失败并显示消息:

/usr/bin/php: symbol lookup error: /opt/Ingres/IngresII/ingres/lib/libiiapi.1.so: undefined symbol: adg_srv_size

我有一个有效的 Ingres 安装。

构建和链接不会提示,但在尝试运行或进行测试时会引发上述错误。

我有什么明显的遗漏吗?

尝试使用 Ingres:
ingres-10.0.0-132-NPTL-com-pc-linux-ingbuild-i386
and ingres-9.2.1-103-NPTL-com-pc-linux-ingbuild-i386

env...

    LD_LIBRARY_PATH=/lib:/usr/lib:/opt/Ingres/IngresII/ingres/lib
    PATH=/opt/Ingres/IngresII/ingres/bin:/opt/Ingres/IngresII/ingres/utility:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    II_SYSTEM=/opt/Ingres/IngresII

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"




$ phpize

    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626

$ ./configure

    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    checking for PHP extension directory... /usr/lib/php5/20090626+lfs
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking for improved Ingres support... yes, shared
    checking Use ingres2 as the extension name... no
    checking how to print strings... printf
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
    checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking for gawk... (cached) nawk
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for sysroot... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    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 for dlfcn.h... yes
    checking for objdir... .libs
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc linker (/usr/bin/ld) 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
    configure: creating ./config.status
    config.status: creating config.h
    config.status: executing libtool commands



    $ make
     /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=compile cc  -I. -I/home/ingres  /ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files  -DHAVE_CONFIG_H  -g -O2   -c /home/ingres/ingres-2.2.3/ingres.c -o ingres.lo
    libtool: compile:  cc -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files -DHAVE_CONFIG_H -g -O2 -c /home/ingres/ingres-2.2.3/ingres.c  -fPIC -DPIC -o .libs/ingres.o
    /home/ingres/ingres-2.2.3/ingres.c: In function 'php_ii_gen_cursor_id':
    /home/ingres/ingres-2.2.3/ingres.c:2980:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat]
    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=compile cc  -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files  -DHAVE_CONFIG_H  -g -O2   -c /home/ingres/ingres-2.2.3/convertUTF.c -o convertUTF.lo
    libtool: compile:  cc -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files -DHAVE_CONFIG_H -g -O2 -c /home/ingres/ingres-2.2.3/convertUTF.c  -fPIC -DPIC -o .libs/convertUTF.o
    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=link cc -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files  -DHAVE_CONFIG_H  -g -O2   -o ingres.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/ingres/ingres-2.2.3/modules  ingres.lo convertUTF.lo -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -lcompat.1 -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -lframe.1 -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -lq.1 -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -liiapi.1
    libtool: link: cc -shared  -fPIC -DPIC  .libs/ingres.o .libs/convertUTF.o   -L/opt/Ingres/IngresII/ingres/lib -lcompat.1 -lframe.1 -lq.1 -liiapi.1  -O2 -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib   -Wl,-soname -Wl,ingres.so -o .libs/ingres.so
    libtool: link: ( cd ".libs" && rm -f "ingres.la" && ln -s "../ingres.la" "ingres.la" )
    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=install cp ./ingres.la /home/ingres/ingres-2.2.3/modules
    libtool: install: cp ./.libs/ingres.so /home/ingres/ingres-2.2.3/modules/ingres.so
    libtool: install: cp ./.libs/ingres.lai /home/ingres/ingres-2.2.3/modules/ingres.la
    libtool: finish: PATH="/opt/Ingres/IngresII/ingres/bin:/opt/Ingres/IngresII/ingres/utility:/opt/Ingres/IngresII/ingres/bin:/opt/Ingres/IngresII/ingres/utility:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin" ldconfig -n /home/ingres/ingres-2.2.3/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /home/ingres/ingres-2.2.3/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.
    Don't forget to run 'make test'.







    $ make test

    Build complete.
    Don't forget to run 'make test'.

    /usr/bin/php: symbol lookup error: /opt/Ingres/IngresII/ingres/lib/libiiapi.1.so: undefined symbol: adg_srv_size
    /usr/bin/php: symbol lookup error: /opt/Ingres/IngresII/ingres/lib/libiiapi.1.so: undefined symbol: adg_srv_size

    =====================================================================
    PHP         : /usr/bin/php 
    CWD         : /home/ingres/ingres-2.2.3
    Extra dirs  :
    VALGRIND    : Not used
    =====================================================================
    TIME START 2012-06-14 10:19:01
    =====================================================================
    FAIL Ingres: Bug #15586 - test for white space handling at the start of a query [tests/bug_15586.phpt]
    FAIL Ingres: Bug #15586 - test for a new line at the start of a query [tests/bug_15586_newlines.phpt]
    FAIL Ingres: Bug 16752 - Passing zero length strings based on PHP types [tests/bug_16752_1.phpt]
    FAIL Ingres: Bug 16752 - Passing zero length strings using parameter typing [tests/bug_16752_2.phpt]
    FAIL Ingres: Bug 16752 - Passing zero length strings based on DESCRIBE INPUT [tests/bug_16752_3.phpt]
    FAIL Ingres: Bug 16990 - SEGV when executing a procedure [tests/bug_16990_procedure_segv.phpt]
    FAIL Ingres: Bug #17302 - Test for closure of statements [tests/bug_17302.phpt]
    FAIL Ingres: Bug #17556 - test for error handling in non-result returning statements [tests/bug_17556.phpt]
    FAIL Ingres: Insert a boolean value using DESCRIBE INPUT. [tests/insert_boolean_1.phpt]
    FAIL Ingres: Insert a boolean value using a static query. [tests/insert_boolean_2.phpt]
    FAIL Ingres: connect to a database as current user [tests/test_001.phpt]
    FAIL Ingres: connect to a database with user+password [tests/test_002.phpt]
    FAIL Ingres: execute a simple select against default link - no results returned. [tests/test_003.phpt]
    FAIL Ingres: execute a simple select against default link - fetch object. [tests/test_
     /usr/bin/php: symbol lookup error: /opt/Ingres/IngresII/ingres/lib/libiiapi.1.so: undefined symbol: adg_srv_size


    Anything obvious that I am missing?

    here are the output from my installation.

    Your assistants is much appreciated.


    Tried with ingres:
    ingres-10.0.0-132-NPTL-com-pc-linux-ingbuild-i386
    and ingres-9.2.1-103-NPTL-com-pc-linux-ingbuild-i386




    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=12.04
    DISTRIB_CODENAME=precise
    DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"




    $ phpize
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626


    $ ./configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    checking for PHP extension directory... /usr/lib/php5/20090626+lfs
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking for improved Ingres support... yes, shared
    checking Use ingres2 as the extension name... no
    checking how to print strings... printf
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
    checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking for gawk... (cached) nawk
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for sysroot... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    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 for dlfcn.h... yes
    checking for objdir... .libs
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc linker (/usr/bin/ld) 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
    configure: creating ./config.status
    config.status: creating config.h
    config.status: executing libtool commands

$ make

    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=compile cc  -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files  -DHAVE_CONFIG_H  -g -O2   -c /home/ingres/ingres-2.2.3/ingres.c -o ingres.lo
    libtool: compile:  cc -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files -DHAVE_CONFIG_H -g -O2 -c /home/ingres/ingres-2.2.3/ingres.c  -fPIC -DPIC -o .libs/ingres.o
    /home/ingres/ingres-2.2.3/ingres.c: In function 'php_ii_gen_cursor_id':
    /home/ingres/ingres-2.2.3/ingres.c:2980:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat]
    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=compile cc  -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files  -DHAVE_CONFIG_H  -g -O2   -c /home/ingres/ingres-2.2.3/convertUTF.c -o convertUTF.lo
    libtool: compile:  cc -I. -I/home/ingres/ingres-2.2.3 -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files -DHAVE_CONFIG_H -g -O2 -c /home/ingres/ingres-2.2.3/convertUTF.c  -fPIC -DPIC -o .libs/convertUTF.o
    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=link cc -DPHP_ATOM_INC -I/home/ingres/ingres-2.2.3/include -I/home/ingres/ingres-2.2.3/main -I/home/ingres/ingres-2.2.3 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/Ingres/IngresII/ingres/files  -DHAVE_CONFIG_H  -g -O2   -o ingres.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/ingres/ingres-2.2.3/modules  ingres.lo convertUTF.lo -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -lcompat.1 -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -lframe.1 -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -lq.1 -Wl,-rpath,/opt/Ingres/IngresII/ingres/lib -L/opt/Ingres/IngresII/ingres/lib -liiapi.1
    libtool: link: cc -shared  -fPIC -DPIC  .libs/ingres.o .libs/convertUTF.o   -L/opt/Ingres/IngresII/ingres/lib -lcompat.1 -lframe.1 -lq.1 -liiapi.1  -O2 -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib -Wl,-rpath -Wl,/opt/Ingres/IngresII/ingres/lib   -Wl,-soname -Wl,ingres.so -o .libs/ingres.so
    libtool: link: ( cd ".libs" && rm -f "ingres.la" && ln -s "../ingres.la" "ingres.la" )
    /bin/sh /home/ingres/ingres-2.2.3/libtool --mode=install cp ./ingres.la /home/ingres/ingres-2.2.3/modules
    libtool: install: cp ./.libs/ingres.so /home/ingres/ingres-2.2.3/modules/ingres.so
    libtool: install: cp ./.libs/ingres.lai /home/ingres/ingres-2.2.3/modules/ingres.la
    libtool: finish: PATH="/opt/Ingres/IngresII/ingres/bin:/opt/Ingres/IngresII/ingres/utility:/opt/Ingres/IngresII/ingres/bin:/opt/Ingres/IngresII/ingres/utility:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin" ldconfig -n /home/ingres/ingres-2.2.3/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /home/ingres/ingres-2.2.3/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.
    Don't forget to run 'make test'.







$ make test

Build complete.
Don't forget to run 'make test'.

/usr/bin/php: symbol lookup error: /opt/Ingres/IngresII/ingres/lib/libiiapi.1.so: undefined symbol: adg_srv_size
/usr/bin/php: symbol lookup error: /opt/Ingres/IngresII/ingres/lib/libiiapi.1.so: undefined symbol: adg_srv_size

=====================================================================
PHP         : /usr/bin/php 
CWD         : /home/ingres/ingres-2.2.3
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2012-06-14 10:19:01
=====================================================================



    enter code here

最佳答案

这是一个已在最新版本 2.2.4 中修复的错误 - 您可以通过 http://pecl.php.net/get/ingres 下载代码.用于与 Ingres 链接的库的顺序似乎已经改变或变得更加敏感。

关于php - 在 Ubuntu 上为 PHP 安装 Ingres 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11033111/

相关文章:

ubuntu - GCC对HDF5的 undefined reference

postgresql - 在 Ubuntu 16.10 上将 PostgreSQL 从 9.6 升级到 10.0

sql - 限制 Ingres 选择查询中检索的行数

sql - 如何限制 Ingres 中任意查询的结果集大小?

php - 使用 PHP 创建缩略图还是手动添加缩略图?

PHP Doc - 如何指定确切的抽象类型?

php - Ubuntu Phpmyadmin - 没有收到要导入的数据。要么没有提交文件名,

php - 如何在我的 php、mysql 代码中放置边框和顺序

ubuntu - 我可以在 Ubuntu 中为自定义内核编译内核后创建可引导的 .iso 文件吗

sql - 出于分析/测试目的编写相同 SQL 查询的替代方法