can't find expat header

Ryan Schmidt ryandesign at macports.org
Mon Jul 28 16:56:51 PDT 2008


On Jul 28, 2008, at 13:03, Harry van der Wolf wrote:

> Michael Thon wrote:
>
>> 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
>
> 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.

And/or "sudo port install flex" since the error mentioned flex.

If you do get this to compile on Mac OS X, please consider writing a  
portfile so that other Mac users can benefit without having to figure  
it out on their own. Or, at least tell us here what you had to do and  
someone else can write a portfile. Or you can file a port request  
ticket and provide your notes there.



More information about the macports-users mailing list