On Tuesday, January 7, 2003, at 10:15 PM, Josh Coalson wrote:> I am going to check in a fix soon that will be in flac-1.0.5-beta2. > In the meantime you can manually add -Dunix to the two assignments > of OUR_CFLAGS_TAIL in configure.I tried that fix, ran `make clean; ./configure --prefix=/opt` then: [TLB:~/Desktop/flac-1.0.5_beta1/flac-1.0.5_beta1] glenn% make make all-recursive Making all in doc Making all in . doxygen Doxyfile make[3]: doxygen: Command not found make[3]: *** [FLAC.tag] Error 127 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [TLB:~/Desktop/flac-1.0.5_beta1/flac-1.0.5_beta1] glenn% Let me know if you want me to try something else, otherwise I'll wait for beta2. thanks, glenn
On Tue, Jan 07, 2003 at 09:54:35PM -0600, Glenn wrote:> I just tried to compile FLAC 1.0.5 beta1 under Apple's X11 v0.1 > (released today) and it didn't work. The error message was: > > file_decoder.c: In function `_declspec': > file_decoder.c:477: warning: unused parameter `dllimport' > file_decoder.c:478: warning: unused parameter > `FLAC__file_decoder_process_until_end_of_file' > make[4]: *** [file_decoder.lo] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > [TLB:~/Desktop/flac-1.0.5_beta1/flac-1.0.5_beta1] glenn%Those are only warnings; the first real error is this: ../../include/FLAC/format.h:144: syntax error, missing `;' after `const'\ followed by a lot of compiler confusion. It looks like your compiler doesn't define 'unix', and something needs to be added to the test in include/FLAC/export.h. -- - mdz
--- Josh Coalson <xflac@yahoo.com> wrote:> This is a problem with the code that does DLL on windows. > The 'off' switch assumes "unix" is #defined by the compiler, > which it isn't on Darwin. > > I am going to check in a fix soon that will be in flac-1.0.5-beta2. > In the meantime you can manually add -Dunix to the two assignments > of OUR_CFLAGS_TAIL in configure.P.S. the real fix will not be a hack like I mentioned, but will actually fix the logic in all the export.h(s) Josh __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
I just tried to compile FLAC 1.0.5 beta1 under Apple's X11 v0.1 (released today) and it didn't work. The error message was: file_decoder.c: In function `_declspec': file_decoder.c:477: warning: unused parameter `dllimport' file_decoder.c:478: warning: unused parameter `FLAC__file_decoder_process_until_end_of_file' make[4]: *** [file_decoder.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [TLB:~/Desktop/flac-1.0.5_beta1/flac-1.0.5_beta1] glenn% I've attached a complete log of the install. I've also got fink/OroborOSX installed and I don't know if that is affecting anything. I've got xmms installed (via fink) and I'd really like to get the xmms-flac plugin to work. Suggestions? thanks, glenn -------------- next part -------------- A non-text attachment was scrubbed... Name: flac-errors.rtf Type: application/rtf Size: 112531 bytes Desc: not available Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20030107/c73ddf1e/flac-errors.rtf
This is a problem with the code that does DLL on windows. The 'off' switch assumes "unix" is #defined by the compiler, which it isn't on Darwin. I am going to check in a fix soon that will be in flac-1.0.5-beta2. In the meantime you can manually add -Dunix to the two assignments of OUR_CFLAGS_TAIL in configure. Josh --- Glenn <glenn@meaning.com> wrote:> > I just tried to compile FLAC 1.0.5 beta1 under Apple's X11 v0.1 > (released today) and it didn't work. The error message was: > > file_decoder.c: In function `_declspec': > file_decoder.c:477: warning: unused parameter `dllimport' > file_decoder.c:478: warning: unused parameter > `FLAC__file_decoder_process_until_end_of_file' > make[4]: *** [file_decoder.lo] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > [TLB:~/Desktop/flac-1.0.5_beta1/flac-1.0.5_beta1] glenn% > > I've attached a complete log of the install. I've also got > fink/OroborOSX installed and I don't know if that is affecting > anything. > > I've got xmms installed (via fink) and I'd really like to get the > xmms-flac plugin to work. > > Suggestions? > > thanks, > glenn > >> ATTACHMENT part 2 application/rtf x-unix-mode=0644;name=flac-errors.rtf __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
On Tuesday, January 7, 2003, at 07:54 PM, Glenn wrote:> > I've got xmms installed (via fink) and I'd really like to get the > xmms-flac plugin to work. > > Suggestions? >You could of course use the FLAC from fink, it comes with the plugin. I haven't updated it for 1.0.4 (because the library paths were messed up, causing the build to fail) and not to 1.0.5 because it isn't out yet. Hopefully the library bug will be fixed in 1.0.5, perhaps i should try it before you release. :) -Ben
On Thursday, January 9, 2003, at 11:38 AM, Ben Hines wrote:> > On Tuesday, January 7, 2003, at 07:54 PM, Glenn wrote: > >> >> I've got xmms installed (via fink) and I'd really like to get the >> xmms-flac plugin to work. >> >> Suggestions? >> > > You could of course use the FLAC from fink, it comes with the plugin. > I haven't updated it for 1.0.4 (because the library paths were messed > up, causing the build to fail) and not to 1.0.5 because it isn't out > yet. > > Hopefully the library bug will be fixed in 1.0.5, perhaps i should try > it before you release. :) >Nope, it still fails: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/include -I../.. -I./include -I../../include -I/sw/include -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ -c file_decoder.c -Wp,-MD,.deps/file_decoder.TPlo -fno-common -DPIC -o .libs/file_decoder.lo ../../include/FLAC/format.h:144: syntax error, missing `;' after `const' ../../include/FLAC/format.h:147: syntax error, missing `;' after `const' ../../include/FLAC/format.h:152: syntax error, missing `;' after `const' It looks like this time, it is due to my CPPFLAGS setting: CPPFLAGS = -I/sw/include DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) CFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I/sw/include -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) All of those "-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include" are getting put after the -I/sw/include which breaks things. It looks like this CPPFLAGS is being added by your configure script from the dlopen check: AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" But its still a bug in your buildsystem, all your local include paths should always be before user specified ones, CPPFLAGS or CFLAGS. -Ben