Subject: undefined PLT symbol "XXXXX"
To: None <current-users@netbsd.org>
From: Thomas T. Thai <tom@minnesota.com>
List: current-users
Date: 12/17/2000 17:57:00
i've been whining about that error on NetBSD-Alpha for a while now. Yet
I've not seen any fixes. In addition, there have been other users
complaining about similar errors as well. 

http://marc.theaimsgroup.com/?w=2&r=1&s=Undefined+PLT+symbol+%22memcpy%22&q=t

it appears to happen more frequently on 64-bit architectures. a lot of
application developers (mysql, pine, etc) believe this problem is due to
egcs on 64-bit architectures. i've not been able to compile gcc-2.95.2 on
the alpha to see if it would help. i've been told that later versions of
gcc fixed many issues on 64-bit platforms including the alpha.

i use mysql extensively on this Alpha and it leaves me nothing but
frustrations as it core dumps on a daily basis.

---
001215 16:52:53  mysqld started
/usr/local/install/mysql-3.23.28/libexec/mysqld: ready for connections
001216 16:23:50  mysqld restarted
/usr/local/install/mysql-3.23.28/libexec/mysqld: ready for connections
/usr/local/install/mysql-3.23.28/libexec/mysqld: Undefined PLT symbol
"memcpy" (reloc type = 26,
symnum = 7)
001217 11:55:09  mysqld restarted
/usr/local/install/mysql-3.23.28/libexec/mysqld: ready for connections
/usr/local/install/mysql-3.23.28/libexec/mysqld: Undefined PLT symbol
"memcpy" (reloc type = 26,
symnum = 7)
001217 15:35:45  mysqld restarted
/usr/local/install/mysql-3.23.28/libexec/mysqld: ready for connections
---

here is a backtrace on one of the core dumps:

# gdb /usr/local/libexec/mysqld /var/mysql/mysqld.core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "alpha--netbsd"...
Core was generated by `mysqld'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Reading symbols from /usr/lib/libz.so.0...done.
Reading symbols from /usr/lib/libcrypt.so.0...done.
Reading symbols from /usr/lib/libstdc++.so.2...done.
Reading symbols from /usr/lib/libm.so.0...done.
Reading symbols from /usr/lib/libc.so.12...done.
#0  0x1202260c8 in machdep_sys_sigprocmask () at syscall-template.S:53
syscall-template.S:53: No such file or directory.
(gdb) bt
#0  0x1202260c8 in machdep_sys_sigprocmask () at syscall-template.S:53
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x124c52610
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable).  In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post'
command.

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
Current language:  auto; currently asm
(gdb)
---

i thought building a kernel with COMPAT_13 option enabled would help, but
it didn't.