Hi, A.Rymkus.

You wrote at 2 июля 2007 г., 14:55:00:

AR> Hi.

AR>    This morning I'd tried to update mpd from version 4.1 to 4.2 on my
AR> test FreeBSD box with latest 6.2 stable and get following error
AR> message:


AR> --------------------------------------------------------------------
AR> cc -O -pipe -march=pentium3
AR> -DPATH_CONF_DIR=\"/usr/local/etc/mpd4\"
AR> -DSYSLOG_FACILITY=LOG_DAEMON -DMPD_VERSION='"4.2.1
AR> ([EMAIL PROTECTED] 09:41  2-Jul-2007)"' -g -Wall 
AR> -Wcast-align  -Wchar-subscripts  -Wformat  -Winline 
AR> -Wmissing-declarations  -Wmissing-prototypes  -Wnested-externs 
AR> -Wpointer-arith  -Wwrite-strings  -pthread  -I/usr/local/include
AR> -DPHYSTYPE_MODEM -DPHYSTYPE_UDP -DPHYSTYPE_TCP
AR> -DPHYSTYPE_NG_SOCKET -DPHYSTYPE_PPTP -DPHYSTYPE_PPPOE
AR> -DPHYSTYPE_L2TP -DCOMPRESSION_PRED1 -DCOMPRESSION_DEFLATE
AR> -DENCRYPTION_DES  -c iface.c
AR> iface.c:59:29: netgraph/ng_car.h: No such file or directory
AR> iface.c: In function `IfaceSetupLimits':
AR> iface.c:2473: error: storage size of 'car' isn't known
AR> iface.c:2487: error: `NG_CAR_NODE_TYPE' undeclared (first use in this 
function)
AR> iface.c:2487: error: (Each undeclared identifier is reported only once
AR> iface.c:2487: error: for each function it appears in.)
AR> iface.c:2489: error: `NG_CAR_HOOK_LOWER' undeclared (first use in this 
function)
AR> iface.c:2489: error: `NG_CAR_HOOK_UPPER' undeclared (first use in this 
function)
AR> iface.c:2509: error: `NG_CAR_SHAPE' undeclared (first use in this function)
AR> iface.c:2511: error: `NG_CAR_RED' undeclared (first use in this function)
AR> iface.c:2536: error: `NG_CAR_ACTION_FORWARD' undeclared (first use in this 
function)
AR> iface.c:2538: error: `NG_CAR_ACTION_DROP' undeclared (first use in this 
function)
AR> iface.c:2543: error: `NGM_CAR_COOKIE' undeclared (first use in this 
function)
AR> iface.c:2543: error: `NGM_CAR_SET_CONF' undeclared (first use in this 
function)
AR> iface.c:2473: warning: unused variable `car'
AR> *** Error code 1

AR> Stop in /usr/ports/net/mpd4/work/mpd-4.2.1/src.
AR> *** Error code 1

AR> Stop in /usr/ports/net/mpd4/work/mpd-4.2.1.
AR> *** Error code 1

AR> Stop in /usr/ports/net/mpd4.
AR> ** Command failed [exit code 1]: /usr/bin/script -qa
AR> /tmp/portupgrade.97934.0 env UPGRADE_TOOL=portupgrade
AR> UPGRADE_PORT=mpd-4.1 UPGRADE_PORT_VER=4.1 make
AR> DEPENDS_TARGET=package
AR> ** Fix the problem and try again.
AR> ** Listing the failed packages (*:skipped / !:failed)
AR>         ! net/mpd4 (mpd-4.1)    (missing header)
--->>  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

AR> --------------------------------------------------------------------

AR>    After chekout on freebsd's source tree I finded no sign of such 
header/source
AR> file. Updated tree again, no sign of it again. I'd digged on freebsd
AR> CVS system and found what that header/source files are only on current
AR> list.
AR>    Can I somehow build that version of mpd in my environment?

   ok, this is a dependency and is there a possibility of use port's
Makefile syntax in that case?
It's described in "Porter's handbook", and link to corresponding chapter is
http://www.freebsd.org/doc/en/books/porters-handbook/makefile-depend.html
and the greatest way, I think so ;), is use of BUILD_DEPENDS variable
in simple way:
BUILD_DEPENDS = /usr/src/sys/netgraph/ng_car.h:$(PORTSDIR)/net/ng_car
and all other needed files have to be declared like that file.


-- 
WBR, A.Rymkus


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mpd-users mailing list
Mpd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mpd-users

Reply via email to