From owner-freebsd-current Tue Sep 29 10:45:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA02748 for freebsd-current-outgoing; Tue, 29 Sep 1998 10:45:11 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA02624 for ; Tue, 29 Sep 1998 10:44:41 -0700 (PDT) (envelope-from wpaul@skynet.ctr.columbia.edu) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id NAA12175; Tue, 29 Sep 1998 13:49:31 -0400 From: Bill Paul Message-Id: <199809291749.NAA12175@skynet.ctr.columbia.edu> Subject: Re: Linking weirdness To: bright@hotjobs.com (Alfred Perlstein) Date: Tue, 29 Sep 1998 13:49:29 -0400 (EDT) Cc: desmo@bandwidth.org, current@FreeBSD.ORG In-Reply-To: from "Alfred Perlstein" at Sep 29, 98 11:22:06 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Of all the gin joints in all the towns in all the world, Alfred Perlstein had to walk into mine and say: > you have a.out format .a files in your lib directories, run "nm" on them, > if you get "file format not recognized" then move them to thier respective > "aout" dirs. *Bzzzt!* I'm sorry that's incorrect, but thanks for playing. The mpg123 program comes with two assembler (.s) files called getbits.s and getbits_.s which contain optimized routines for x86 machines. The difference between these two files is that the latter file has all the symbol names prefixed with an underscore. This used to be the correct file to use on FreeBSD but it isn't any more: now the linker is looking for getbits rather than _getbits. The correct fix is to edit the Makefile and change the freebsd target to specify getbits.o instead of getbits_.o. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" ============================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message