Jorge wrote:
On Sat, Feb 25, 2012 at 05:22:25AM +0000, Phil Dobbin wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, all.
I'm trying to install Dillo v.3.0.2 from source on OS X 10.6.8 & after successfuly installing fltk-1.3.0 into /usr/local & running configure & make I get this error:
`ld: duplicate symbol Fl_Printer::class_id in /usr/local/lib/libfltk.a(Fl_Printer.o) and ../dw/libDw-fltk.a(libDw_fltk_a-fltkplatform.o) collect2: ld returned 1 exit status make[3]: *** [dillo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2`
I've tried Googling it (this is where I got the email address for this list. Apologies if I should've sent it to dillo-users. If that's the case, please let me know & I'll make amends) but no luck.
IIRC, sometime ago corvid added a few lines in fltkplatform.cc to avoid linking of unused printer code. You may expect his answer, but in the meanwhile, you may try commenting that line:
- const char *Fl_Printer::class_id = "Fl_Printer"; + // const char *Fl_Printer::class_id = "Fl_Printer";
or if that fails, commenting the whole stub (lines 35 to 42 in fltkplatform.cc).
For the moment, I can at least point us back to the original discussion at http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-June/008449.html The search engine suggests that ld complaining about duplicate symbols is fairly consistently an osx thing...