The mathlib is defintely missing in the dynamic ODBC-Lib. It's linked without
-lm which caused the described error. After no response to my flame I tried a
bit around and found the following solution:

I've took the static library libsqlod.a copied it to a temp folder.
Then I dearchived this library with ar -x libsqlod.a.
With the extracted objects I created a new dynamic library with the missing
mathlib included: gcc -shared -W1, -Bsymbolic  -lc -lm -lncurses -o libsqlodnew.
so *.o
Afer replacing the old libsqlod.so with libsqlodnew.so everything works as
expected.


Thomas


[EMAIL PROTECTED]  (05.03.2003  10:07):
>Hello,
>
>I am nagging on an error which has been posted here several times, but as far
>as I can see nobody found a solution.
>Well, I am using the Reportmanager, running in a Linux-Box. The program uses
>dbexpress2odbc using the installed unixODBC Drivers. When I use the program
>locally on the system and connect to a remote server, running a SAPDP,
>everything works well. When I use a Windows-Client, connecting remotely to the
>Reportmanager-Server, I am getting the following error :
>
>05/03/2003 10:01:48 - Error - Error returned from ODBC function
>SQLDriverConnect (NoPrompt)
>ODBC Return Code: -1: SQL_ERROR
>
>ODBC SqlState:        01000
>[unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libsqlod.so' :
>/usr/local/lib/libsqlod.so: undefined symbol: __fpclassify
>
>Connection string: DSN=SAPDB;UID=TEST;PWD=***;
>
>05/03/2003 10:01:42 - Authorization ok
>ODBC SqlState:        01000
>
>
>As far as I can see in the history of this list, this error occurs in other
>environments (e.g. PHP) also.
>It seems that an execution of libsqlod.so is not loading libm.so, wehere
>__fpclassify is located.
>After doing a little debugging of  libsqlod.so it seems that it might have been
>forgotten to link it with -lm.
>
>Any clues ?
>
>
>Thomas
>
>_______________________________________________
>sapdb.general mailing list
>[EMAIL PROTECTED]
>http://listserv.sap.com/mailman/listinfo/sapdb.general


_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to