[gopher] Dynamically linked Mosaic on Linux??

Cameron Kaiser spectre at floodgap.com
Fri Nov 12 03:46:46 UTC 2010


> Starting program: /home/floh/ebuilds/mosaic-ck/src/Mosaic 
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x10078ae4 in set_pref_solid (pref_id=121, incoming=0x0, iincoming=0, bincoming=0 '\000') at prefs.c:1678
> 1678	                *((Boolean *)incoming);
> (gdb) backtrace
> #0  0x10078ae4 in set_pref_solid (pref_id=121, incoming=0x0, iincoming=0, bincoming=0 '\000') at prefs.c:1678
> #1  0x10077718 in set_pref_boolean (pref_id=121, value=0 '\000') at prefs.c:1168
> #2  0x1001299c in mo_do_gui (argc=1, argv=0xbfffef14) at gui.c:4437
> #3  0x10006b40 in main (argc=1, argv=0xbfffef14, envp=0xbfffef1c) at main.c:251
> (gdb) 

Okay. I can't get this to trigger, but I think I understand what the problem
is. In prefs.c, change line 1677-1678:

         case eSPLASHSCREEN:
-            thePrefsStructP->RdataP->splashScreen =
-                *((Boolean *)incoming);
+            thePrefsStructP->RdataP->splashScreen = bincoming;
             break;

Does this fix it? If so, I'll add to ck10.

-- 
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser at floodgap.com
-- Don't let 'em drive you crazy when it's within walking distance. -----------



More information about the Gopher-Project mailing list