# uname -a FreeBSD cx.example.com 10.1-RELEASE-p26 FreeBSD 10.1-RELEASE-p26 #0: Wed Jan 13 20:59:29 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 -fPIC -pthread -pthread -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -o .libs/saga_cmd callback.o module_library.o saga_cmd.o -L/usr/local/lib -lm -L/usr/local/lib/c++ -L/usr/local/lib/gcc48 ../saga_api/.libs/libsaga_api.so -lgomp -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_webview-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lhpdf -fopenmp -pthread -Wl,-rpath -Wl,/usr/local/lib /usr/local/lib/libwebkitgtk-1.0.so.0: undefined reference to `cairo_glx_device_create' /usr/local/lib/libwebkitgtk-1.0.so.0: undefined reference to `cairo_gl_surface_create_for_texture' /usr/local/lib/libwebkitgtk-1.0.so.0: undefined reference to `cairo_gl_surface_get_width' /usr/local/lib/libwebkitgtk-1.0.so.0: undefined reference to `cairo_gl_surface_get_height' /usr/local/lib/libwebkitgtk-1.0.so.0: undefined reference to `cairo_gl_device_set_thread_aware' collect2: error: ld returned 1 exit status *** Error code 1 Stop. make[7]: stopped in /usr/ports/math/saga/work/saga-2.2.4/src/saga_core/saga_cmd *** Error code 1 Stop. make[6]: stopped in /usr/ports/math/saga/work/saga-2.2.4/src/saga_core/saga_cmd *** Error code 1 Stop. make[5]: stopped in /usr/ports/math/saga/work/saga-2.2.4/src/saga_core *** Error code 1 Stop. make[4]: stopped in /usr/ports/math/saga/work/saga-2.2.4/src *** Error code 1 Stop. make[3]: stopped in /usr/ports/math/saga/work/saga-2.2.4 *** Error code 1 Stop. make[2]: stopped in /usr/ports/math/saga/work/saga-2.2.4 *** Error code 1 Stop. make[1]: stopped in /usr/ports/math/saga *** Error code 1 Stop. make: stopped in /usr/ports/math/saga if this helps: # ll /usr/local/lib/ | grep libwebkitgtk lrwxr-xr-x 1 root wheel 27 6 feb 02:18 libwebkitgtk-1.0.so@ -> libwebkitgtk-1.0.so.0.22.15 lrwxr-xr-x 1 root wheel 27 6 feb 02:18 libwebkitgtk-1.0.so.0@ -> libwebkitgtk-1.0.so.0.22.15 -rwxr-xr-x 1 root wheel 33042688 6 feb 02:18 libwebkitgtk-1.0.so.0.22.15*
(In reply to jjachuf from comment #0) I am a bit irritated about your failure. www/webkit-gtk2 is not a direct dependency of math/saga. So this is likely not a failure of math/saga itself. Your failure seems to be triggered via x11-toolkits/wxgtk30, which indeed is a direct dependency of math/saga. www/webkit-gtk2 is a dependency of x11-toolkits/wxgtk30, and graphics/cairo is a dependency of www/webkit-gtk2. I suppose, that there is a problem with graphics/cairo, especially with its OPENGL option. Please check, if you are able to build graphics/cairo, www/webkit-gtk2 and then x11-toolkits/wxgtk30, in this order. Probably you have a misconfiguration with GL/openGL? It would be nice, if you could try and report back. Thanks in advance.
the problem was that I was using /www/webkit-gtk2 from binary (pkg install). I you uninstall and installed again compiling works well. We can give this bug closed (false bug)
The binary package should be fine, otherwise there wouldn't be a binary package for saga available as well. It's possible that something went wrong with some other dependency you had like Rainer described.