Public bug reported: Binary package hint: firebird2.1-classic
firebird-2.1 classic is compiled with -fno-stack-protector, so any third-party UDF compiled with default gcc options are not loaded by firebird at runtime. and firebird said: -function TANH is not defined -module name or entrypoint could not be found i think that When i compile same UDF source with -fno-stack-protector, udf loads and work perfectly. How i guess that: I wrote simple .c file: int main() { return 0; } and run command: root# gcc qwe.c rfunc /usr/bin/ld: a.out: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status Because earlier i reported about very BUGGY stak protector i decide to off this feature in UDF makefile. and YES! now UDF worked ! r...@quadsrv:/usr/lib/firebird/2.1/UDF/tmp# lsb_release -rd Description: Ubuntu 8.10 Release: 8.10 r...@quadsrv:/usr/lib/firebird/2.1/UDF/tmp# LANG=C apt-cache policy firebird2.1-classic firebird2.1-classic: Installed: 2.1.0.17798-0.ds2-1 Candidate: 2.1.0.17798-0.ds2-1 Version table: *** 2.1.0.17798-0.ds2-1 0 500 http://ru.archive.ubuntu.com intrepid/universe Packages 100 /var/lib/dpkg/status ** Affects: firebird2.1 (Ubuntu) Importance: Undecided Status: New -- firebird 2.1 compiled without stack protector, so UDF open failed https://bugs.launchpad.net/bugs/363694 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs