Patch taken from: 
https://trac.xiph.org/changeset/19117
To fix bug report:
https://bugs.gentoo.org/show_bug.cgi?id=537422
--- vorbis-tools-1.4.0/oggenc/oggenc.c	
+++ vorbis-tools-1.4.0/oggenc/oggenc.c
@@ -97,6 +97,8 @@
               .3,-1,
               0,0,0.f,
               0, 0, 0, 0, 0};
+    input_format raw_format = {NULL, 0, raw_open, wav_close, "raw", 
+        N_("RAW file reader")};
 
     int i;
 
@@ -239,8 +241,6 @@
 
         if(opt.rawmode)
         {
-            input_format raw_format = {NULL, 0, raw_open, wav_close, "raw", 
-                N_("RAW file reader")};
 
             enc_opts.rate=opt.raw_samplerate;
             enc_opts.channels=opt.raw_channels;
