Hi guys,
I have been hoping to try out Netsurf, but the build fails on my
OpenBSD box.
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
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
M.CONFIG: building with JPEG support
M.CONFIG: building with JNG/MNG/PNG support
M.CONFIG: building without PDF export
M.CONFIG: building with glibc internal iconv
M.CONFIG: auto-enabled SVG rendering (librsvg-2.0).
M.CONFIG: building with NetSurf BMP decoder
M.CONFIG: auto-enabled NetSurf BMP decoder (libnsbmp).
M.CONFIG: building with NetSurf GIF decoder
M.CONFIG: auto-enabled NetSurf GIF decoder (libnsgif).
M.CONFIG: building with PNG support
M.CONFIG: auto-enabled PNG support (libpng).
Package openssl was not found in the pkg-config search path
Package openssl was not found in the pkg-config search path
LINK: nsgtk
/usr/local/lib/libglib-2.0.so.1802.0: warning: vsprintf() is often
misused, please use vsnprintf()
build-OpenBSD-gtk/content_urldb.o(.text+0x1e17): In function
`urldb_add_path':
content/urldb.c:1742: warning: strcpy() is almost always misused,
please use strlcpy()
build-OpenBSD-gtk/gtk_gtk_gui.o(.text+0x58): In function
`find_resource':
gtk/gtk_gui.c:119: warning: strcat() is almost always misused, please
use strlcat()
build-OpenBSD-gtk/content_urldb.o(.text+0x2f1e): In function
`urldb_get_cookie':
content/urldb.c:2664: warning: sprintf() is often misused, please use
snprintf()
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'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x97): In function
`binding_create_tree':
render/hubbub_binding.c:155: undefined reference to
`hubbub_parser_create'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x11d):render/hubbub_binding.c:181:
undefined reference to `hubbub_parser_setopt'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x141):render/hubbub_binding.c:185:
undefined reference to `hubbub_parser_setopt'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x15a):render/hubbub_binding.c:167:
undefined reference to `hubbub_parser_destroy'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x1c1): In function
`binding_destroy_tree':
render/hubbub_binding.c:200: undefined reference to
`hubbub_parser_destroy'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x1de): In function
`binding_parse_chunk':
render/hubbub_binding.c:219: undefined reference to
`hubbub_parser_parse_chunk'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0x208): In function
`binding_parse_completed':
render/hubbub_binding.c:231: undefined reference to
`hubbub_parser_completed'
build-OpenBSD-gtk/render_hubbub_binding.o(.text+0xc0a): In function
`change_encoding':
render/hubbub_binding.c:781: undefined reference to
`hubbub_parser_read_charset'
build-OpenBSD-gtk/render_textplain.o(.text+0xc4): In function
`textplain_create':
render/textplain.c:98: undefined reference to `iconv_open'
build-OpenBSD-gtk/render_textplain.o(.text+0x1c3):render/textplain.c:101:
undefined reference to `iconv_open'
build-OpenBSD-gtk/render_textplain.o(.text+0x2cf): In function
`textplain_process_data':
render/textplain.c:152: undefined reference to `iconv'
build-OpenBSD-gtk/render_textplain.o(.text+0x426): In function
`textplain_convert':
render/textplain.c:200: undefined reference to `iconv_close'
build-OpenBSD-gtk/render_textplain.o(.text+0x741): In function
`textplain_destroy':
render/textplain.c:312: undefined reference to `iconv_close'
build-OpenBSD-gtk/utils_utf8.o(.text+0x1c1): In function
`utf8_finalise':
utils/utf8.c:190: undefined reference to `iconv_close'
build-OpenBSD-gtk/utils_utf8.o(.text+0x34e): In function
`utf8_convert':
utils/utf8.c:312: undefined reference to `iconv'
build-OpenBSD-gtk/utils_utf8.o(.text+0x3d9):utils/utf8.c:316:
undefined reference to `iconv_close'
build-OpenBSD-gtk/utils_utf8.o(.text+0x3ea):utils/utf8.c:282:
undefined reference to `iconv_open'
build-OpenBSD-gtk/utils_utf8.o(.text+0x433):utils/utf8.c:292:
undefined reference to `iconv_close'
collect2: ld returned 1 exit status
gmake: *** [nsgtk] Error 1
Just what causes these errors?
Thanks,
—Anthony Bentley