Date: Tue, 29 Sep 1998 23:50:23 +0300 (EEST) From: Vladimir Kushnir <kushn@mail.kar.net> To: Alfred Perlstein <bright@hotjobs.com> Cc: Ken Monville <desmo@bandwidth.org>, freebsd-current@FreeBSD.ORG Subject: Re: Linking weirdness Message-ID: <Pine.BSF.4.00.9809292342330.4463-100000@kushnir.kiev.ua> In-Reply-To: <Pine.BSF.4.02A.9809291120590.6148-100000@bright.fx.genx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> --- 13,25 ---- MAINTAINER= ports@freebsd.org + .include <bsd.port.mk> + + .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. > > <errors skipped> > > -- > > Ken Monville <desmo@bandwidth.org> > > ===========================|======================= 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9809292342330.4463-100000>