From owner-freebsd-current Tue Sep 29 13:52:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA07495 for freebsd-current-outgoing; Tue, 29 Sep 1998 13:52:57 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.kar.net (n181.cdialup.kar.net [195.178.130.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA07322 for ; Tue, 29 Sep 1998 13:51:51 -0700 (PDT) (envelope-from kushn@mail.kar.net) Received: from localhost (volodya@localhost) by mail.kar.net (8.9.1/8.8.8) with SMTP id XAA04515; Tue, 29 Sep 1998 23:50:24 +0300 (EEST) (envelope-from kushn@mail.kar.net) Date: Tue, 29 Sep 1998 23:50:23 +0300 (EEST) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua To: Alfred Perlstein cc: Ken Monville , freebsd-current@FreeBSD.ORG Subject: Re: Linking weirdness In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 29 Sep 1998, Alfred Perlstein wrote: > 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. > > you might need to manually fix port dependancies. > Sorry, it's not quite so. Actually, mpg123 port is broken under elf. Here's a cure: compile mpg123 with target linux; only take away -DLINUX flag in mpg123-0.59o/Makefile. Here're 2 tiny patches: patch for port's Makefile and one-liner for mpg123-0.59o/Makefile : /*-----------ports/audio/mpg123/Makefile---------------------------*/ *** Makefile.ctm Mon Sep 28 11:16:00 1998 --- Makefile Mon Sep 28 11:19:22 1998 *************** *** 13,19 **** MAINTAINER= ports@freebsd.org ALL_TARGET= freebsd MAN1= mpg123.1 ! .include --- 13,25 ---- MAINTAINER= ports@freebsd.org + .include + + .if ${PORTOBJFORMAT} == "elf" + ALL_TARGET= linux + .else ALL_TARGET= freebsd + .endif MAN1= mpg123.1 /*-----------------ports/audio/mpg123/patches/patch-ab-----------*/ *** Makefile.orig Sun Feb 8 20:23:04 1998 --- Makefile Mon Sep 28 10:17:46 1998 *************** *** 72,78 **** $(MAKE) CC=gcc LDFLAGS= \ OBJECTS='decode_i386.o dct64_i386.o getbits.o decode_i586.o \ audio_oss.o' \ ! CFLAGS='-DI386_ASSEM -DREAL_IS_FLOAT -DPENTIUM_OPT -DLINUX \ -DREAD_MMAP -DOSS \ -Wall -O2 -m486 \ -fomit-frame-pointer -funroll-all-loops \ --- 72,78 ---- $(MAKE) CC=gcc LDFLAGS= \ OBJECTS='decode_i386.o dct64_i386.o getbits.o decode_i586.o \ audio_oss.o' \ ! CFLAGS='-DI386_ASSEM -DREAL_IS_FLOAT -DPENTIUM_OPT \ -DREAD_MMAP -DOSS \ -Wall -O2 -m486 \ -fomit-frame-pointer -funroll-all-loops \ Regards, Vladimir > Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com > -- There are operating systems, and then there's FreeBSD. > -- http://www.freebsd.org/ 3.0-current > > On Tue, 29 Sep 1998, Ken Monville wrote: > > > I recently installed the 3.0-19980927-BETA/ and immediately cvsupped and did > > a `make -DNOAOUT world' with no problems. However, after that I have been > > unable to get some programs to link properly. Here is an example of some of > > the errors i got ( compiling mpg123 ). Note: I get the same type of linker > > errors compiling most X apps, though some compile and link fine. > > > > -- > > Ken Monville > > ===========================|======================= Vladimir Kushnir | kushn@mail.kar.net, | Powered by FreeBSD kushnir@ap3.bitp.kiev.ua | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message