** Description changed:

  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 (Exmple for TANH function in common rfunc 
(http://rfunc.sourceforge.net/index.html) library):
  
  -function TANH is not defined
  -module name or entrypoint could not be found
  
  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.so 
  /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 !
+ off this feature in UDF makefile (add CFLAGS+=-fno-stack-protector). 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

-- 
firebird 2.1 compiled without stack protector, so UDF dlopen 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-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
universe-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to