On 2/1/2013 10:55 AM, Bletzinger, Michael Erwin wrote:
> Hello Everyone,
>
> I am seeing the same libmikmod build error seen earlier this month.  The 
> trace is below.  I hope this is sufficient for a fix suggestion.
>
>       Thanks
>       Michael
>
>
> /bin/bash ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H 
> -D_FORTIFY_SOURCE=2 -I/sw/include -g -O2 -fstack-protector -Wno-unused-value 
> -Wno-deprecated-declarations -finline-functions -funroll-loops -ffast-math 
> -Dunix -I../include -I.. -I../include -DMIKMOD_H=../include/mikmod.h -c 
> ../mmio/mmerror.c
> /bin/bash ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H 
> -D_FORTIFY_SOURCE=2 -I/sw/include -g -O2 -fstack-protector -Wno-unused-value 
> -Wno-deprecated-declarations -finline-functions -funroll-loops -ffast-math 
> -Dunix -I../include -I.. -I../include -DMIKMOD_H=../include/mikmod.h -c 
> ../mmio/mmio.c
> In file included from ../mmio/mmio.c:58:
> ../include/mikmod_internals.h:670: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before 'vc_callback'
> ../mmio/mmio.c: In function '_mm_iobase_setcur':
> ../mmio/mmio.c:109: error: 'MREADER' has no member named 'prev_iobase'
> ../mmio/mmio.c:109: error: 'MREADER' has no member named 'iobase'
> ../mmio/mmio.c:110: error: 'MREADER' has no member named 'iobase'
> ../mmio/mmio.c: In function '_mm_iobase_revert':
> ../mmio/mmio.c:116: error: 'MREADER' has no member named 'iobase'
> ../mmio/mmio.c:116: error: 'MREADER' has no member named 'prev_iobase'
> ../mmio/mmio.c: In function '_mm_FileReader_Seek':
> ../mmio/mmio.c:144: error: 'MREADER' has no member named 'iobase'
> ../mmio/mmio.c: In function '_mm_FileReader_Tell':
> ../mmio/mmio.c:149: error: 'MREADER' has no member named 'iobase'
> make[2]: *** [mmio.lo] Error 1
> make[1]: *** [all-recursive] Error 1

I've traced this down to having the package 'libmikmod' installed.  When 
'libmikmod' is removed, libmikmod3 builds fine.

Daniel: the culprit is in the patchfile (libmikmod/Makefile.in chunk), 
where CPPFLAGS is added near the beginning of the COMPILE command. 
Because CPPFLAGS includes -I%p/include, this prefers an installed 
libmikmod header over a srcdir hearder and KABOOM.  Using 
"NoSetCPPFLAGS: true" takes care of this problem.

Might not hurt to add -MD to SetCFLAGS and do a f-p-p check after the 
compile.

Hanspeter


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to