On Thu, 2009-11-26 at 18:00 -0700, Anthony Bentley wrote:
> Hi guys,
> 
> I have been hoping to try out Netsurf, but the build fails on my
> OpenBSD box.

It's a very long time since anyone tried building NetSurf on OpenBSD. So
I'm not entirely surprised that it doesn't "just work" right now.

> Initially it stopped due to undefined references to libcurl; replacing
> “pkg-config --libs libcurl” in the makefile with “curl-config --libs”
> fixed these.
> 
> $ pkg-config --libs libcurl
> -L/usr/local/lib -lcurl
> $ curl-config --libs
> -L/usr/local/lib -lcurl -L/usr/local/lib -lidn -lssl -lcrypto -lz

This seems odd. Both outputs pull in libcurl. The latter pulls in the
things that curl depends on, too. However, if what you say is true, it
shouldn't complain about undefined references to libcurl functions in
either case.

> Now it stops with errors apparently related to hubbub. Yes, hubbub is
> installed…
> 
> $ pkg-config --libs libhubbub
> -L/usr/local/lib -lhubbub -lparserutils
> $ sudo gmake 
> build-OpenBSD-gtk/gtk_gtk_gui.o(.text+0x43a): In function `gui_init':
> gtk/gtk_gui.c:207: undefined reference to `hubbub_initialise'
> build-OpenBSD-gtk/gtk_gtk_gui.o(.text+0x1164): In function `gui_quit':
> gtk/gtk_gui.c:433: undefined reference to `hubbub_finalise'

[...]

Well, the linker is clearly failing to find hubbub on the search path.
Try building with make Q= to see what's going on.

> build-OpenBSD-gtk/render_textplain.o(.text+0xc4): In function
> `textplain_create':
> render/textplain.c:98: undefined reference to `iconv_open'

You're also missing an iconv implementation, by the look of this.


J.


Reply via email to