From owner-freebsd-ports Wed Mar 19 11:34:57 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BE5037B404 for ; Wed, 19 Mar 2003 11:34:54 -0800 (PST) Received: from MAILSERVER.ofw.fi (ns.ofw.fi [194.111.144.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44CA143F3F for ; Wed, 19 Mar 2003 11:34:53 -0800 (PST) (envelope-from dan.naumov@ofw.fi) Received: from [172.16.161.81] by MAILSERVER.ofw.fi (NTMail 7.00.0022/NT1439.00.90501b21) with ESMTP id wtrajaaa for freebsd-ports@freebsd.org; Wed, 19 Mar 2003 21:34:10 +0200 Subject: What's wrong with this port ? From: Dan Naumov To: freebsd-ports@freebsd.org Content-Type: text/plain Organization: Message-Id: <1048102704.40287.10.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 19 Mar 2003 21:38:25 +0200 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello list. I've recently decided to try my hand at port-making and thought I'd start by writing a port for XFsamba (http://xfsamba.sourceforge.net/), unfortunately I ran into an issue I couldn't solve myself so I thought I'd ask for help. First of all, here's the actual Makefile: ======================================================== # New ports collection makefile for: xfsamba # Date created: 19 March 2003 # Whom: Dan "Jago" Naumov # # $FreeBSD$ # PORTNAME= xfsamba PORTVERSION= 0.47 CATEGORIES= net MASTER_SITES= http://xfsamba.sourceforge.net/archive/ MAINTAINER= dan.naumov@ofw.fi COMMENT= A GTK-based SMB navigator GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_GMAKE= yes USE_GNOME= glib12 gtk12 gdkpixbuf USE_GNOMENG= yes USE_XPM= yes MAN1= glob.1 xfglob.1 xftree.1 MANCOMPRESSED= yes .include ======================================================== If I unpack the source tarball, run ./configure and gmake manually, everything is fine and dandy. The program configure, compiles and installs without any errors. Yet, when I attempt to do a "make all" when using my port, I get this right at the start of ./configure: ======================================================== configure: WARNING: you should use --build, --host, --target checking build system type... i386-portbld-freebsd5.0 checking host system type... i386-portbld-freebsd5.0 ======================================================== This leads to an error right as the actual compile starts: ======================================================== gmake[2]: Entering directory `/home/jago/Work/ports/net/xfsamba/work/xfsamba-0.47/intl' cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" DHAVE_CONFIG_H -I.. -I. -I../intl -I/usr/X11R6/include -O -pipe -mcpu=pentiumpro -march=i386-portbld-freebsd5.0 intl-compat.c cc1: bad value (i386-portbld-freebsd5.0) for -march= switch cc1: bad value (i386-portbld-freebsd5.0) for -mcpu= switch gmake[2]: *** [intl-compat.o] Error 1 gmake[2]: Leaving directory `/home/jago/Work/ports/net/xfsamba/work/xfsamba-0.47/intl' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/jago/Work/ports/net/xfsamba/work/xfsamba-0.47' gmake: *** [all-recursive-am] Error 2 *** Error code 2 ======================================================== What's even more bizarre is that if I remove my custom make.conf, one of the errors goes away, but I am still left with: ======================================================== cc1: bad value (i386-portbld-freebsd5.0) for -march= switch gmake[2]: *** [intl-compat.o] Error 1 ======================================================== I have the following in my make.conf: ======================================================== CPUTYPE=athlon-tbird CFLAGS= -O -mmmx -m3dnow -pipe ======================================================== What exactly is compiling from ports doing differently from compiling from source that is causing this ? Thank you for your advice. Sincerely, -- Dan Naumov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message