Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83 based; site homxb.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!homxb!gdsd1 From: gdsd1@homxb.UUCP (M.LAI) Newsgroups: net.bugs.usg Subject: S5R2 curses(3X)/malloc(3X) problem Message-ID: <595@homxb.UUCP> Date: Fri, 26-Apr-85 10:47:25 EST Article-I.D.: homxb.595 Posted: Fri Apr 26 10:47:25 1985 Date-Received: Sat, 27-Apr-85 05:16:37 EST Organization: AT&T Bell Labs, Holmdel NJ Lines: 23 SYMPTOM: $ cc t.c -lcurses -lmalloc ld: Symbol calloc in /lib/libc.a is multiply defined. First defined in /usr/lib/libmalloc.a ld fatal: Error(s). No output written to a.out DESCRIPTION: Curses references cfree() which is defined along with calloc in libc.a but *not* in the new libmalloc.a. Cfree() is not advertised in S5 or S3 (K&R p. 157) so it must have been put in libc.a for backwards compatability. SOLUTION: Define your own cfree(), don't use libcurses.a and libmalloc.a together, or add cfree() to /usr/lib/libmalloc.a. -- Neal Nuckolls AT&T Bell Laboratories Red Hill, Middletown, NJ ..!{houxa|vax135}!homxb!gdsd1 (201) 949-9295