[Lunar-bugs] [Lunar Linux 0000284]: Building error with avifile-0.7-0.7.45

Lunar bug reports list lunar-bugs at lunar-linux.org
Tue Oct 16 09:03:20 CEST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.lunar-linux.org/view.php?id=284 
====================================================================== 
Reported By:                thongrim
Assigned To:                
====================================================================== 
Project:                    Lunar Linux
Issue ID:                   284
Category:                   module
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Moonbase Version:           20070916.14 
Core Tools:                 Theedge 
Core Tools Version:         20070914  
====================================================================== 
Date Submitted:             09-16-2007 18:47 CEST
Last Modified:              10-16-2007 09:03 CEST
====================================================================== 
Summary:                    Building error with avifile-0.7-0.7.45
Description: 
Unable to build the module avifile-0.7-0.7.45 due to building problem
====================================================================== 

---------------------------------------------------------------------- 
 engelsman - 09-16-07 21:57  
---------------------------------------------------------------------- 
I can confirm that it doesn't build for me either (on 1.6.2-beta1)
and I have attached the compile log.

kv4lsetup.cpp: In function 'int main(int, char**)':
kv4lsetup.cpp:250: error: 'foo' was not declared in this scope
kv4lsetup.cpp:250: error: 'bar' was not declared in this scope
kv4lsetup.cpp:252: error: 'ma' was not declared in this scope
kv4lsetup.cpp:252: error: 'mi' was not declared in this scope
make[3]: *** [kv4lsetup.o] Error 1 

---------------------------------------------------------------------- 
 lunar_mike - 10-09-07 18:16  
---------------------------------------------------------------------- 
I can confirm i got it working , i uploaded the avifile.txt , my friend
helped me out with this one , turns out its compiler mismatches is what im
told !

Good luck

P.S. try posting your actual compile log :)

 

---------------------------------------------------------------------- 
 engelsman - 10-09-07 20:35  
---------------------------------------------------------------------- 
Duh. Uploaded the failing avifile compile log to replace the lvu help
listing :-( 

---------------------------------------------------------------------- 
 lunar_mike - 10-09-07 21:08  
---------------------------------------------------------------------- 
Good thanks , going to have a look at it in a bit! got some other stuff to
do then ill poke at it :) 

---------------------------------------------------------------------- 
 lunar_mike - 10-10-07 01:37  
---------------------------------------------------------------------- 
http://www.antiyes.com/pastebin/index.php?id=165 have a look at this link ,
top half should be your current code , bottom half is what it should be
give it a try and if it works you can buy my friend a coffee :) 

---------------------------------------------------------------------- 
 engelsman - 10-10-07 07:14  
---------------------------------------------------------------------- 
I will try the changes later. In the meantime, I hope your friend has sent
a patch to the avifile developers... 

---------------------------------------------------------------------- 
 lunar_mike - 10-10-07 17:26  
---------------------------------------------------------------------- 
patch lol , my problem was completely different from this, the entire
source is bad code generally from what ive seen and am told :)

Maybe the avifile developers are having some issues ?

 

---------------------------------------------------------------------- 
 engelsman - 10-13-07 21:37  
---------------------------------------------------------------------- 
Updated my zlocal version to use lunar_mike's patch, but it still fails.
Will attach modified zlocal/avifile/BUILD, patch file, and new compile
log.

Really need to work out which of the HAVE_LIBXXF86* variables are set,
or not, and why. Obviously lunar_mike's and my systems are different.

[Deleted attached BUILD, patch, and patched compile log. To be replaced]

 

---------------------------------------------------------------------- 
 lunar_mike - 10-11-07 23:19  
---------------------------------------------------------------------- 
Did you manually add this code , or just place it as the patch info because
the pastebin item was for manual adding ! 

---------------------------------------------------------------------- 
 engelsman - 10-13-07 21:47  
---------------------------------------------------------------------- 
Looking at the config log, I see:
checking for XF86DGAQueryExtension in -lXxf86dga... no

which causes following samples/qtvidcap/kv4lsetup.cpp code to misbehave:

#ifdef HAVE_LIBXXF86DGA
    int width,bar,foo,flags,ma,mi;
    void* base = 0;
#endif
#ifdef HAVE_LIBXXF86VM
    int vm_count;
    XF86VidModeModeInfo** vm_modelines;
#endif

the following change makes it behave itself on my system:

    int bar,foo,ma,mi;
#ifdef HAVE_LIBXXF86DGA
    int width,flags;
    void* base = 0;
#endif
#ifdef HAVE_LIBXXF86VM
    int vm_count;
    XF86VidModeModeInfo** vm_modelines;
#endif

I shall attach an updated patch file, and a BUILD file to apply it. 

---------------------------------------------------------------------- 
 engelsman - 10-16-07 09:03  
---------------------------------------------------------------------- 
thongrim,
a slightly modified BUILD and patch file have been submitted, accepted and
are
now available in the moonbase. Does this update solve your original
problem? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-16-07 18:47  thongrim       New Issue                                    
09-16-07 18:47  thongrim       Moonbase Version          => 20070916.14     
09-16-07 18:47  thongrim       Core Tools                => Theedge         
09-16-07 18:47  thongrim       Core Tools Version        => 20070914        
09-16-07 21:55  engelsman      File Added: avifile-compile-log.txt              
     
09-16-07 21:57  engelsman      Note Added: 0000625                          
10-09-07 18:10  lunar_mike     File Added: avifile.txt                      
10-09-07 18:12  lunar_mike     Note Added: 0000660                          
10-09-07 18:13  lunar_mike     Issue Monitored: lunar_mike                    
10-09-07 18:16  lunar_mike     Note Edited: 0000660                         
10-09-07 20:34  engelsman      File Deleted: avifile-compile-log.txt            
       
10-09-07 20:34  engelsman      File Added: avifile-compile-log.txt              
     
10-09-07 20:35  engelsman      Note Added: 0000661                          
10-09-07 21:08  lunar_mike     Note Added: 0000662                          
10-10-07 01:37  lunar_mike     Note Added: 0000663                          
10-10-07 07:14  engelsman      Note Added: 0000664                          
10-10-07 17:26  lunar_mike     Note Added: 0000665                          
10-10-07 17:26  lunar_mike     Note Edited: 0000665                         
10-11-07 23:14  engelsman      Note Added: 0000666                          
10-11-07 23:15  engelsman      File Added: BUILD                            
10-11-07 23:15  engelsman      File Added: avifile-0.7-0.7.45-kv4lsetup.patch   
                
10-11-07 23:16  engelsman      File Added: avifile-patched-compile-log.txt      
             
10-11-07 23:19  engelsman      Note Edited: 0000666                         
10-11-07 23:19  lunar_mike     Note Added: 0000667                          
10-13-07 21:36  engelsman      File Deleted: BUILD                          
10-13-07 21:36  engelsman      File Deleted: avifile-0.7-0.7.45-kv4lsetup.patch 
                  
10-13-07 21:36  engelsman      File Deleted: avifile-patched-compile-log.txt    
               
10-13-07 21:37  engelsman      Note Edited: 0000666                         
10-13-07 21:47  engelsman      Note Added: 0000668                          
10-13-07 21:48  engelsman      File Added: avifile-0.7-0.7.45-kv4lsetup.patch   
                
10-13-07 21:48  engelsman      File Added: BUILD                            
10-16-07 09:03  engelsman      Note Added: 0000669                          
======================================================================



More information about the Lunar-bugs mailing list