Bug 309

Summary: ns-3.2 RC1 build fails on FreeBSD7
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: gjcarneiro
Priority: P1    
Version: ns-3.2   
Hardware: All   
OS: All   
Attachments: tentative patch

Description Tom Henderson 2008-09-03 18:27:36 UTC
(marked as simulation core for now-- need to add a "contrib" component)

[281/532] cxx: src/contrib/gtk-config-store.cc -> build/debug/src/contrib/gtk-config-store_1.o
cc1plus: warnings being treated as errors
../src/contrib/gtk-config-store.cc: In function 'void ns3::cell_data_function_col_1(GtkTreeViewColumn*, GtkCellRenderer*, GtkTreeModel*, GtkTreeIter*, void*)':
../src/contrib/gtk-config-store.cc:180: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:181: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:185: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:186: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc: In function 'void ns3::cell_data_function_col_0(GtkTreeViewColumn*, GtkCellRenderer*, GtkTreeModel*, GtkTreeIter*, void*)':
../src/contrib/gtk-config-store.cc:199: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:202: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:205: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:208: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:213: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:216: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc: In function 'GtkWidget* ns3::create_view(GtkTreeStore*)':
../src/contrib/gtk-config-store.cc:352: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc:364: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc: In function 'void ns3::save_clicked(GtkButton*, void*)':
../src/contrib/gtk-config-store.cc:395: warning: missing sentinel in function call
../src/contrib/gtk-config-store.cc: In function 'void ns3::load_clicked(GtkButton*, void*)':
../src/contrib/gtk-config-store.cc:429: warning: missing sentinel in function call
Build failed
 -> task failed (err #129): [bld:///usr/home/core/ns/ns-3.2-RC1/src/contrib/gtk-config-store_1.o]
Comment 1 Mathieu Lacage 2008-09-03 20:19:10 UTC
could this be a 64 bit box ?
Comment 2 Mathieu Lacage 2008-09-03 20:34:37 UTC
Created attachment 238 [details]
tentative patch

Please, test and report
Comment 3 Tom Henderson 2008-09-04 11:41:12 UTC
(In reply to comment #2)
> Created an attachment (id=238) [details]
> tentative patch
> 
> Please, test and report
> 

Your patch worked and ns-3 built. However, it led to another problem:
$ ./waf check
Entering directory `/usr/home/ns/ns-3.2-RC1/build'
Compilation finished successfully 
WARNING <wscript_main> Don't know how to configure dynamic library path for the platform 'freebsd7'
/libexec/ld-elf.so.1: Shared object "libns3.so" not found, required by "print-introspected-doxygen"

btw, it is a 32-bit box
Comment 4 Mathieu Lacage 2008-09-04 11:43:45 UTC
gustavo, any idea ?
Comment 5 Mathieu Lacage 2008-09-04 11:59:14 UTC
btw, what version of gcc ?
Comment 6 Gustavo J. A. M. Carneiro 2008-09-04 13:31:29 UTC
Should be fixed now.  Confirm?
Comment 7 Tom Henderson 2008-09-04 19:26:02 UTC
(In reply to comment #6)
> Should be fixed now.  Confirm?
> 

Yes, ns-3-dev now works.  I'll close it, thanks.  By the way, it is gcc-4.2.1 on this machine.