DanielVanNoord / open-phd-guiding

Automatically exported from code.google.com/p/open-phd-guiding
0 stars 0 forks source link

Build failure in svn -r76 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.checkout svn (currently -r76)
2.mkdir build; cd build; cmake ../; make

What is the expected output? What do you see instead?
I expect the PHD binary to be built. 
Scanning dependencies of target PHD
[  3%] Building CXX object CMakeFiles/PHD.dir/camera.cpp.o                      

[  6%] Building CXX object CMakeFiles/PHD.dir/cam_INDI.cpp.o                    

[  9%] Building CXX object CMakeFiles/PHD.dir/cam_SBIG.cpp.o                    

[ 12%] Building CXX object CMakeFiles/PHD.dir/cam_simulator.cpp.o               

[ 15%] Building CXX object CMakeFiles/PHD.dir/canvas.cpp.o                      

[ 18%] Building CXX object CMakeFiles/PHD.dir/config_INDI.cpp.o                 

[ 21%] Building CXX object CMakeFiles/PHD.dir/eegg.cpp.o                        

[ 25%] Building CXX object CMakeFiles/PHD.dir/frame_events.cpp.o                

[ 28%] Building CXX object CMakeFiles/PHD.dir/graph.cpp.o                       

/home/bgilsrud/openphd/graph.cpp: In member function ‘void 
GraphLogWindow::OnButtonMode(wxCommandEvent&)’:                               

/home/bgilsrud/openphd/graph.cpp:182:15: warning: variable ‘mstate’ set but 
not used [-Wunused-but-set-variable]
[ 31%] Building CXX object CMakeFiles/PHD.dir/guide_routines.cpp.o
[ 34%] Building CXX object CMakeFiles/PHD.dir/image_math.cpp.o                  

[ 37%] Building CXX object CMakeFiles/PHD.dir/phd.cpp.o                         

[ 40%] Building CXX object CMakeFiles/PHD.dir/prefs.cpp.o                       

[ 43%] Building CXX object CMakeFiles/PHD.dir/scope.cpp.o                       

[ 46%] Building CXX object CMakeFiles/PHD.dir/socket_server.cpp.o               

[ 50%] Building CXX object CMakeFiles/PHD.dir/tele_INDI.cpp.o                   

[ 53%] Building CXX object CMakeFiles/PHD.dir/usImage.cpp.o                     

[ 56%] Building CXX object CMakeFiles/PHD.dir/GC_USBST4.cpp.o                   

[ 59%] Building C object CMakeFiles/PHD.dir/libindiclient/indi.c.o              

[ 62%] Building CXX object CMakeFiles/PHD.dir/libindiclient/wx/indigui.cpp.o    

/home/bgilsrud/openphd/libindiclient/wx/indigui.cpp: In member function ‘void 
IndiGui::CreateSwitchCombobox(indi_prop_t*, int)’:                            

/home/bgilsrud/openphd/libindiclient/wx/indigui.cpp:370:80: warning: cast to 
pointer from integer of different size [-Wint-to-pointer-cast]
[ 65%] Building CXX object CMakeFiles/PHD.dir/libindiclient/wx/indi_io.cpp.o
[ 68%] Building CXX object CMakeFiles/PHD.dir/libindiclient/wx/indi_list.cpp.o  

/home/bgilsrud/openphd/libindiclient/wx/indi_list.cpp: In function ‘void* 
il_item(void*)’:                                                              

/home/bgilsrud/openphd/libindiclient/wx/indi_list.cpp:81:10: error: ‘NULL’ 
was not declared in this scope
/home/bgilsrud/openphd/libindiclient/wx/indi_list.cpp: In function ‘void* 
il_first(void*)’:
/home/bgilsrud/openphd/libindiclient/wx/indi_list.cpp:89:10: error: ‘NULL’ 
was not declared in this scope
make[2]: *** [CMakeFiles/PHD.dir/libindiclient/wx/indi_list.cpp.o] Error 1
make[1]: *** [CMakeFiles/PHD.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
SVN on ubuntu 11.10

Please provide any additional information below.

===================================================================
--- libindiclient/wx/indi_list.cpp      (revision 76)
+++ libindiclient/wx/indi_list.cpp      (working copy)
@@ -1,5 +1,6 @@
 #include "../indi_list.h"

+#include <cstring>
 #include <list>
 using namespace std;

Original issue reported on code.google.com by bgils...@gmail.com on 14 Nov 2011 at 4:36

GoogleCodeExporter commented 9 years ago
The proposed patch works.

Original comment by h...@dse.nl on 14 Nov 2011 at 8:07

GoogleCodeExporter commented 9 years ago
Thanks, I've applied the patch

Original comment by geoffr...@gmail.com on 15 Nov 2011 at 1:23