if the most anyone could/is willing to say with a glance at this
is to say i might be barking up the right tree assuming that there
might be a problem with includes, that would be awesome. if you
think i'm a fool and have no clue what i'm doing, that's rather true.
i copied the /usr/ports/audio/libsidplay to a ../libsidplay2 dir and
copied all files into it. edited the Makefile to have instead:
============================
DISTNAME= libsidplay-2.1.0
CATEGORIES= audio
HOMEPAGE=
http://sidplay2.sourceforge.net/
DISTFILES= sidplay-libs-2.1.0.tar.gz
MASTER_SITES= ${HOMEPAGE}
WRKSRC= ${WRKDIR}/sidplay-libs-2.1.0
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/unix
=====================
( did the recalc of the checksum for the distinfo file )
and the make doesn't go far, it says something that seems to be
related to the 'boolean' typedefs:
===============
Making all in mos6510
source='mos6510.cpp' object='mos6510.lo' libtool=yes \
depfile='.deps/mos6510.Plo' tmpdepfile='.deps/mos6510.TPlo' depmode=gcc /bin/sh
\
../../unix/depcomp /bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H
\
-O2 -march=i586 -DHAVE_UNIX -I../../include -I../../include/sidplay -c -o \
mos6510.lo `test -f 'mos6510.cpp' || echo './'`mos6510.cpp
c++ -DHAVE_CONFIG_H -O2 -march=i586 -DHAVE_UNIX -I../../include \
-I../../include/sidplay -c mos6510.cpp -Wp,-MD,.deps/mos6510.TPlo -fPIC -o \
.libs/mos6510.o
In file included from ../../include/sidplay/sidtypes.h:38,
from mos6510.cpp:38:
/usr/include/stdbool.h:13: syntax error before `false'
In file included from mos6510.cpp:40:
../../include/sidenv.h:121: syntax error before `('
../../include/sidenv.h:123: syntax error before `('
*** Error code 1
Stop in /home/cvs/ports/audio/libsidplay2/w-libsidplay-2.1.0/sidplay-libs-2.1.0\
/libsidplay/src/mos6510.
*** Error code 1
=================
the '-march=i586' is from my /etc/mk.conf, but doesn't change situation
without it.
line 38 in sidtypes.h is the one where it says include <stdbool.h>
#ifndef SID_HAVE_BOOL
# ifdef SID_HAVE_STDBOOL_H
# include <stdbool.h>
# else
typedef int bool;
# define true 1
# define false 0
# endif /* SID_HAVE_STDBOOL_H */
#endif /* HAVE_BOOL */
line 121 in sidenv.h talks about booleans :
virtual inline bool envCheckBankJump (uint_least16_t addr)
123 doesn't...:
virtual inline uint8_t envReadMemDataByte (uint_least16_t addr)
... :/ i tried with USE_GMAKE=yes in the Makefile, and got no
change... also tried just extract the distfile to a dir and did
'./configure' and got the identical same result.
google/alltheweb for 'sidenv.h + "syntax error"' gave nil, from
the forum at sourceforge, it doesn't look like they have much
trouble compiling there, so i assumed if i mentioned it i might
not have a situation they can reproduce ( thinking tactfully ).
if you can throw me a bone ( perhaps directly at my head ) that
would rock, but pressing 'd' now is ok for me too as i don't really
merit much else for this post.
nothing ventured, nothing flamed?
jared
--
[ openbsd 3.4 GENERIC ( oct 20 ) // i386 ]