Hello everyone,
I've been trying to compile
libinstpatch from SVN on Mandriva 2009.0, following the instructions listed
here. There were no error messages upon running ./autogen.sh and ./configure. However, 'make' ended with this:
Code:
make all-am
make[3]: Entering directory `/usr/local/libinstpatch/libinstpatch'
( cd . && glib-mkenums \
--fhead "#include \"libinstpatch.h\"\n#include \"ipatch_priv.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
IpatchAudioFile.h IpatchBase.h IpatchContainer.h IpatchConverter.h IpatchConvert_DLS2.h IpatchConvert_Gig.h IpatchConvert_SF2.h IpatchCram.h IpatchCramDecoder.h IpatchCramEncoder.h IpatchCramDecoderConverter.h IpatchCramEncoderConverter.h IpatchCramFile.h IpatchDLS2Conn.h IpatchDLS2.h IpatchDLS2Info.h IpatchDLS2Inst.h IpatchDLS2Region.h IpatchDLS2Sample.h IpatchDLSFile.h IpatchDLSReader.h IpatchDLSWriter.h IpatchFile.h IpatchGig.h IpatchGigDimension.h IpatchGigEffects.h IpatchGigFile.h IpatchGigInst.h IpatchGigRegion.h IpatchGigSample.h IpatchGigSubRegion.h IpatchItem.h IpatchIter.h IpatchList.h IpatchParamProp.h IpatchPaste.h IpatchPickle.h IpatchPickler.h IpatchRange.h IpatchRiffParser.h IpatchSample.h IpatchSampleData.h IpatchSampleFile.h IpatchSampleList.h IpatchSampleStore.h IpatchSampleStoreFile.h IpatchSampleStoreRAM.h IpatchSampleStoreROM.h IpatchSampleStoreSplit24.h IpatchSampleStoreSwap.h IpatchSampleStoreVirtual.h IpatchSampleTransform.h IpatchSF2.h IpatchSF2File.h IpatchSF2Gen.h IpatchSF2GenItem.h IpatchSF2Inst.h IpatchSF2IZone.h IpatchSF2Mod.h IpatchSF2ModItem.h IpatchSF2Preset.h IpatchSF2PZone.h IpatchSF2Reader.h IpatchSF2Sample.h IpatchSF2VoiceCache.h IpatchSF2VoiceCache_DLS.h IpatchSF2VoiceCache_SF2.h IpatchSF2VoiceCache_Gig.h IpatchSF2VoiceCache_VBank.h IpatchSF2Writer.h IpatchSF2Zone.h IpatchStrArray.h IpatchTypeProp.h IpatchUnit.h IpatchUnit_generic.h IpatchUnit_DLS.h IpatchUnit_SF2.h IpatchVBank.h IpatchVBankInst.h IpatchVBankRegion.h IpatchVirtualContainer.h IpatchVirtualContainer_types.h misc.h sample.h util.h version.h ) \
| sed 's/dl_s2/dls2/g;s/DL_S2/DLS2/g' \
> xgen-enumc && cp xgen-enumc ./builtin_enums.c \
&& rm -f xgen-enumc
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I ../libFLAC/include -I.. -DLIBINSTPATCH_COMPILATION -DG_LOG_DOMAIN=\"libInstPatch\" -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -Wall -MT builtin_enums.lo -MD -MP -MF .deps/builtin_enums.Tpo -c -o builtin_enums.lo builtin_enums.c
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I ../libFLAC/include -I.. -DLIBINSTPATCH_COMPILATION -DG_LOG_DOMAIN=\"libInstPatch\" -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -Wall -MT builtin_enums.lo -MD -MP -MF .deps/builtin_enums.Tpo -c builtin_enums.c -fPIC -DPIC -o .libs/builtin_enums.o
In file included from ../libinstpatch/IpatchPickle.h:37,
from libinstpatch.h:66,
from builtin_enums.c:4:
../libinstpatch/IpatchUnpickler.h:59: error: expected specifier-qualifier-list before ‘IpatchPickleWriteFunc’
../libinstpatch/IpatchUnpickler.h:100: error: expected specifier-qualifier-list before ‘IpatchPickleDecodeFunc’
../libinstpatch/IpatchUnpickler.h:112: error: expected declaration specifiers or ‘...’ before ‘IpatchPickleEncodeFunc’
../libinstpatch/IpatchUnpickler.h:113: error: expected declaration specifiers or ‘...’ before ‘IpatchPickleDecodeFunc’
../libinstpatch/IpatchUnpickler.h:115: error: expected declaration specifiers or ‘...’ before ‘IpatchPickleEncodeFunc’
../libinstpatch/IpatchUnpickler.h:116: error: expected declaration specifiers or ‘...’ before ‘IpatchPickleDecodeFunc’
../libinstpatch/IpatchUnpickler.h:118: error: expected declaration specifiers or ‘...’ before ‘IpatchPickleEncodeFunc’
../libinstpatch/IpatchUnpickler.h:119: error: expected declaration specifiers or ‘...’ before ‘IpatchPickleDecodeFunc’
../libinstpatch/IpatchUnpickler.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:122: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:123: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:126: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:127: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:128: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:129: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:131: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:134: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:136: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:138: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:140: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:142: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:144: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:147: error: expected ‘)’ before ‘*’ token
../libinstpatch/IpatchUnpickler.h:151: error: expected ‘)’ before ‘*’ token
In file included from libinstpatch.h:66,
from builtin_enums.c:4:
../libinstpatch/IpatchPickle.h:84: error: conflicting types for ‘ipatch_pickle_register’
../libinstpatch/IpatchUnpickler.h:111: error: previous declaration of ‘ipatch_pickle_register’ was here
../libinstpatch/IpatchPickle.h:87: error: conflicting types for ‘ipatch_pickle_lookup’
../libinstpatch/IpatchUnpickler.h:114: error: previous declaration of ‘ipatch_pickle_lookup’ was here
../libinstpatch/IpatchPickle.h:90: error: conflicting types for ‘ipatch_pickle_lookup_by_prop_name’
../libinstpatch/IpatchUnpickler.h:117: error: previous declaration of ‘ipatch_pickle_lookup_by_prop_name’ was here
make[3]: *** [builtin_enums.lo] Error 1
make[3]: Leaving directory `/usr/local/libinstpatch/libinstpatch'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/libinstpatch/libinstpatch'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/libinstpatch'
make: *** [all] Error 2
I've installed all the dependencies listed on the
download page, except 'build-essential'. I didn't find this package in the Mandriva urpmi, and after a bit of googling, I found
this thread on the Mandriva Users forum. Following the suggestion, I did
Code:
urpmi rpm-build flex bison
and ran ./autogen.sh, ./configure and 'make' again, with the same errors.
I would appreciate any help in this regard.
Thanks in advance,
Guru