Easysoft
ODBC Drivers for Oracle, SQL Server, Firebird, ISAM, InterBase, Sybase, MS Access & more.

Easysoft ODBC-ODBC Bridge

Why do I get linker errors building Apache/PHP with OOB

Article : 00117
Last Reviewed : 28th October 2008
Revision : 3

There are generally 2 reasons for linker failures when building Apache/PHP with OOB.

  1. You have installed a libc5 distribution of OOB on your glibc based Linux distribution or vice versa.

    A typical result of this when building Apache is:

    Creating Configuration.apaci in src
    ld: warning: libm.so.5, needed by
    /usr/local/easysoft/oob/client/lib/libesoobclient.so,
    may conflict with libm.so.6
    /usr/i486-linux-libc5/lib/libm.so.5: warning: erfcl is not implemented
    and will always fail
    /usr/i486-linux-libc5/lib/libm.so.5: warning: erfl is not implemented
    and will always fail
    /usr/i486-linux-libc5/lib/libm.so.5: undefined reference to `__getfpucw'
    make: *** [dummy] Error 1

    This output resulted from building Apache on a glibc based system with the libc5 version of OOB.

  2. The linker does not know how to find the OOB client shared object.

    Make sure you followed the Apache_PHP document in the docs directory of the OOB distribution carefully. Pay particular attention to

    1. --with-custom-odbc setting for PHP configuration.

    2. CUSTOM_ODBC_LIBS setting for PHP configuration. The example log in the Apache_PHP file shows one actual command line split over multiple lines in the text file. Make sure you enter this all as one line.

    3. LDFLAGS setting when configuring Apache. If you fail to set LDFLAGS as in the Apache_PHP document you will most likely get an error during configuration such as:

      /usr/bin/ld: cannot open -lesoobclient: No such file or directory
      collect2: ld returned 1 exit status
      make: *** [dummy] Error 1

    4. Check that the path to the libesoobclient.so shared object is in your /etc/ld.so.conf file and that ldconfig has been run to re-read this file.

Applies To

Knowledge Base Feedback

* Did this content help you?
Yes
No
Maybe
 
* Please select one option based on your first choice:
I'm very satisfied
I think it will help, but I haven't tried it yet
It is helpful, but I need more information
It is helpful, but hard to understand
Seemed relevant in search results, but didn't help me
The information is incorrect
The page contains one or more broken links
 
  Suggest new content or let us know how we can improve this content:

 
  (* Required Fields)   



© 1993 - 2012 Easysoft Limited. All rights reserved.