can't find expat header

Harry van der Wolf hvdwolf at gmail.com
Mon Jul 28 11:03:00 PDT 2008


This is most probably a bison bug (solved Febr 2008 for OSX). The bison
version that comes with XCode is too old. Try using the bison from macports:
"sudo port install bison" and try again.

Harry

2008/7/28 Michael Thon <mike.thon at gmail.com>

>
> On Jul 28, 2008, at 7:17 PM, Harry van der Wolf wrote:
>
>  You do not tell us whether you are using a cmake or a .configure config
>> tool, but in case it is an automake .configure tool, you should use
>> something like:
>> "export CFLAGS="-I/opt/local/include"
>> "export CXXFLAGS="-I/opt/local/include"
>> "export LDFLAGS="-L/opt/local/lib"
>> to tell your package (which one is it by the way?) where expat is.
>> Possibly you might need also "export
>> PKG_CONFIG_PATH=/opt/local/lib/pkgconfig" later on in your configure or
>> cmake script.
>>
>>
> The package is called mira and its for biological data analysis and it is
> using a configure script from automake.  It appears to be developed on linux
> but I don't have a linux box with enough RAM so I'm trying to compile it on
> my mac pro.  Those env. variables got me past the expat problem but now I
> ran into this:
>
> if g++ -DPACKAGE_NAME=\"mira\" -DPACKAGE_TARNAME=\"mira\"
> -DPACKAGE_VERSION=\"2.8.3\" -DPACKAGE_STRING=\"mira\ 2.8.3\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mira\" -DVERSION=\"2.8.3\"
> -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1
> -DHAVE_STDBOOL_H=1 -Drestrict=__restrict -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1
> -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_STRFTIME=1 -DHAVE_FLOOR=1
> -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SQRT=1 -DDEVELOPMENTVERSION=0
> -DBOUNDTRACKFLAG=1 -DBUGTRACKFLAG=1 -I. -I. -I../    -DPUBLICQUIET
> -I/opt/local/include  -O2 -MT exp_flexer.flex.o -MD -MP -MF
> ".deps/exp_flexer.flex.Tpo" -c -o exp_flexer.flex.o exp_flexer.flex.C; \
> then mv -f ".deps/exp_flexer.flex.Tpo" ".deps/exp_flexer.flex.Po"; else rm
> -f ".deps/exp_flexer.flex.Tpo"; exit 1; fi
> /opt/local/include/FlexLexer.h:130: error: expected unqualified-id before
> numeric constant
> make[2]: *** [exp_flexer.flex.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> I guess I'm stuck unless you or anyone else has some more suggestions.
> Cheers
> Mike
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080728/c09a512f/attachment.html 


More information about the macports-users mailing list