Date: Fri, 10 Jan 1997 10:54:31 -0800 (PST) From: scrutchfield@ifusion.com To: freebsd-gnats-submit@freebsd.org Subject: bin/2440: Typo in libc and libc_r functions results in undefined symbol at runtime. Message-ID: <199701101854.KAA25750@freefall.freebsd.org> Resent-Message-ID: <199701101900.LAA25967@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2440 >Category: bin >Synopsis: Typo in libc and libc_r functions results in undefined symbol at runtime. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 10 11:00:00 PST 1997 >Last-Modified: >Originator: Steven M. Crutchfield >Organization: IFusionCom >Release: 2.2-BETA >Environment: FreeBSD no_dobbs.ifusion.com 2.2-BETA_A FreeBSD 2.2-BETA_A #0: Tue Jan 7 16:05:22 EST 1997 root@no_dobbs.ifusion.com:/usr/src/sys/compile/PS2MOUSE i386 >Description: While linking an application that required the pthread version of libc, I discovered a typo in libc. The problem is a function named "pthread_key_create" that was being called as "pthread_keycreate", which could not be resolved at runtime. Upon examining the source for libc, I discovered that there were 3 instances where it was incorrectly named: /usr/src/lib/libc/gen/ttyname.c - line 120 /usr/src/lib/libc/stdtime/localtime.c - lines 1105 and 1189 Changing these references to the correct function name fixed the problem. >How-To-Repeat: Do anything requiring the above functions to be linked in. >Fix: Changing these references from "pthread_keycreate" to "pthread_key_create" fixed the problem. /usr/src/lib/libc/gen/ttyname.c - line 120 /usr/src/lib/libc/stdtime/localtime.c - lines 1105 and 1189 >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701101854.KAA25750>