LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-14-2008, 02:31 AM   #1
prasadbrg
LQ Newbie
 
Registered: Nov 2003
Posts: 27

Rep: Reputation: 15
[solved]


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

Last edited by prasadbrg; 12-14-2008 at 09:17 PM. Reason: Solved
 
Old 12-14-2008, 09:15 PM   #2
prasadbrg
LQ Newbie
 
Registered: Nov 2003
Posts: 27

Original Poster
Rep: Reputation: 15
Solved!

Hello everyone,
I wrote to one of the original authors of the program. He has fixed the particular bugs mentioned above and checked the code into subversion - rather nice of him! I tried out the new version, and I no longer get these errors.
Thanks to everyone who might have spent time thinking about my question!
Cheers,

Guru
 
  


Reply

Tags
compile error, svn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors while compiling Faust: "PATH_MAX was not declared in this scope" prasadbrg Linux - Software 6 12-15-2008 01:04 AM
LXer: Dealing With "Argument list too long" Errors on Linux and Unix LXer Syndicated Linux News 0 11-28-2008 06:30 AM
error: expected specifier-qualifier-list before ‘t_scalar_t’ sunilvadranapu Suse/Novell 1 09-04-2008 01:30 PM
c++: "expected unqualified-id" newbie errors kpachopoulos Programming 1 08-26-2007 04:16 AM
"expected specifier-qualifier-list" ERROR while adding a new system call ahm_irf Linux - Kernel 0 04-29-2007 10:52 PM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration