Skip site navigation (1)Skip section navigation (2)
Date:      19 Mar 2003 21:38:25 +0200
From:      Dan Naumov <dan.naumov@ofw.fi>
To:        freebsd-ports@freebsd.org
Subject:   What's wrong with this port ?
Message-ID:  <1048102704.40287.10.camel@localhost>

next in thread | raw e-mail | index | archive | help
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 <dan.naumov@ofw.fi>
#
# $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 <bsd.port.mk>
========================================================

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 <dan.naumov@ofw.fi>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1048102704.40287.10.camel>