On Tue, 2 Oct 2007 16:42:16 -0400, wrote:
-Wno-unused-parameter -MT ui.o -MD -MP -MF .deps/ui.Tpo -c -o ui.o ui.cc
ui.cc: In function 'void b1_cb(fltk::Widget*, void*)': ui.cc:235: error: cast from 'void*' to 'int' loses precision make[3]: *** [ui.o] Error 1
Try: - int bn = (int)cb_data; + int bn = (long)cb_data;
If this works OK, the same may be used for C++ in Dw (i.e. default to long).
Thanks, it works!! it allowed the build to continue it gave several errors like this and i fix then the same way. I can extract a patch and send it if you want. Now it starts, but when i try to load a page it crashes: (gdb) run Starting program: /usr/local/bin/dillo-fltk [Thread debugging using libthread_db enabled] [New Thread 47988767561568 (LWP 17385)] dillo_dns_init: Here we go! (threaded) Disabling cookies. Nav_open_url: Url=>http://localhost< [New Thread 1082132800 (LWP 17390)] Dns_server [0]: localhost is 0x77aef0 [Thread 1082132800 (LWP 17390) exited] Connecting to 127.0.0.1 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47988767561568 (LWP 17385)] 0x00002ba54013bba0 in strlen () from /lib64/libc.so.6 (gdb) bt full #0 0x00002ba54013bba0 in strlen () from /lib64/libc.so.6 No symbol table info available. #1 0x00002ba54010bb9b in vfprintf () from /lib64/libc.so.6 No symbol table info available. #2 0x00002ba54012cd7a in vsnprintf () from /lib64/libc.so.6 No symbol table info available. #3 0x0000000000423b9a in dStr_vsprintfa (ds=0x77bf40, format=0x4a1798 "GET %s HTTP/1.0\r\n%sAccept-Charset: utf-8, iso-8859-1\r\nHost: %s%s\r\n%sUser-Agent: Dillo/%s\r\nCookie2: $Version=\"1\"\r\n%s\r\n", argp=0x7fff6c9976e0) at dlib.c:349 n = <value optimized out> n_sz = <value optimized out> #4 0x0000000000423c56 in dStr_sprintfa (ds=0x10, format=0x4a179c "%s HTTP/1.0\r\n%sAccept-Charset: utf-8, iso-8859-1\r\nHost: %s%s\r\n%sUser-Agent: Dillo/%s\r\nCookie2: $Version=\"1\"\r\n%s\r\n") at dlib.c:397 argp = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7fff6c9977e0, reg_save_area = 0x7fff6c997700}} #5 0x0000000000424f43 in a_Http_make_query_str (url=0x77afe0, use_proxy=<value optimized out>) at http.c:205 str = <value optimized out> cookies = 0x77f940 "" s_port = (Dstr *) 0x77bf20 query = (Dstr *) 0x77bf40 full_path = (Dstr *) 0x77bf80 proxy_auth = (Dstr *) 0x77f900 #6 0x000000000042511d in a_Http_dns_cb (Status=<value optimized out>, addr_list=<value optimized out>, data=<value optimized out>) at http.c:244 status = <value optimized out> name = {sin_family = 2, sin_port = 20480, sin_addr = {s_addr = 16777343}, sin_zero = "\000\000\000\000\000\000\000"} dh = <value optimized out> socket_len = 1097963232 SKey = 1 #7 0x0000000000420482 in Dns_timeout_client (data=<value optimized out>) at dns.c:457 channel = 0 srv = (DnsServer *) 0x6db680 #8 0x000000000047349d in fltk::wait () No symbol table info available. #9 0x00000000004735e3 in fltk::run () No symbol table info available. #10 0x00002ba5400e38c4 in __libc_start_main () from /lib64/libc.so.6 No symbol table info available. #11 0x0000000000408c99 in _start () No symbol table info available. it crashes with any page -- Naturally the common people don't want war... but after all it is the leaders of a country who determine the policy, and it is always a simple matter to drag the people along, whether it is a democracy, or a fascist dictatorship, or a parliament, or a communist dictatorship. Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in every country. -- Hermann Goering, Nazi and war criminal, 1883-1946