[Flac-dev] FLAC 1.2.0 won't build without ogg

Christopher Key cjk32 at cam.ac.uk
Thu Aug 9 05:35:16 PDT 2007


Hello,

Apologies if this has already been covered.  I'm trying to compile FLAC
1.2.0 under FreeBSD without ogg support:

when I run gmake, I get:

encode.c: In function `convert_to_seek_table_template':
encode.c:2181: error: structure has no member named `use_ogg'

the following appears to fix the problem for me, although I've not
checked it fully:

--- flac-1.2.0/src/flac/encode.c.old    Tue Jul 10 03:10:44 2007
+++ flac-1.2.0/src/flac/encode.c        Thu Aug  9 13:27:20 2007
@@ -2178,10 +2178,15 @@
 
        if(num_requested_seek_points < 0) {
                /*@@@@@@ workaround ogg bug: too many seekpoints makes
table not fit in one page */
-               if(e->use_ogg && e->total_samples_to_encode > 0 &&
e->total_samples_to_encode / e->sample_rate / 10 > 230)
+#if FLAC__HAS_OGG
+               if(e->use_ogg && e->total_samples_to_encode > 0 &&
e->total_samples_to_encode / e->sample_rate / 10 > 230) {
                        requested_seek_points = "230x;";
+               }
                else
+#endif
+               {
                        requested_seek_points = "10s;";
+               }
                num_requested_seek_points = 1;
        }


Regards,

Christopher Key



More information about the Flac-dev mailing list