libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DWITH_CGRAPH -I. -I../.. -I../../lib/common -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/cgraph -I../../lib/cdt -I../../lib/pathplan -DDEMAND_LOADING=1 -pthread -I/usr/lib64/icedtea7/include -I/usr/lib64/icedtea7/include/linux -march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -c gv_guile.cpp -fPIC -DPIC -o .libs/libgv_guile_la-gv_guile.o gv_guile.cpp: In function ‘scm_unused_struct* SWIG_Guile_NewPointerObj(void*, swig_type_info*, int)’: gv_guile.cpp:857:47: error: ‘SCM_NULLP’ was not declared in this scope if (!cdata || SCM_NULLP(cdata->goops_class) || swig_make_func == SCM_EOL ) { ^ gv_guile.cpp: In function ‘long unsigned int SWIG_Guile_PointerAddress(SCM)’: gv_guile.cpp:877:21: error: ‘SCM_NULLP’ was not declared in this scope if (SCM_NULLP(smob)) return 0; ^ gv_guile.cpp: In function ‘swig_type_info* SWIG_Guile_PointerType(SCM)’: gv_guile.cpp:890:21: error: ‘SCM_NULLP’ was not declared in this scope if (SCM_NULLP(smob)) return NULL; ^ gv_guile.cpp: In function ‘int SWIG_Guile_ConvertPtr(SCM, void**, swig_type_info*, int)’: gv_guile.cpp:906:21: error: ‘SCM_NULLP’ was not declared in this scope if (SCM_NULLP(smob)) { ^ gv_guile.cpp: In function ‘void SWIG_Guile_MarkPointerNoncollectable(SCM)’: gv_guile.cpp:968:22: error: ‘SCM_NULLP’ was not declared in this scope if (!SCM_NULLP(smob)) { ^ gv_guile.cpp: In function ‘void SWIG_Guile_MarkPointerDestroyed(SCM)’: gv_guile.cpp:981:22: error: ‘SCM_NULLP’ was not declared in this scope if (!SCM_NULLP(smob)) { ^ gv_guile.cpp: In function ‘void SWIG_Guile_SetModule(swig_module_info*)’: gv_guile.cpp:1192:7: warning: unused variable ‘variable’ [-Wunused-variable] SCM variable; ^ gv_guile.cpp: In function ‘int SWIG_Guile_GetArgs(scm_unused_struct**, SCM, int, int, const char*)’: gv_guile.cpp:1209:24: error: ‘SCM_CONSP’ was not declared in this scope if (!SCM_CONSP(rest)) ^ gv_guile.cpp:1215:42: error: ‘SCM_CONSP’ was not declared in this scope for (i = 0; i<optargs && SCM_CONSP(rest); i++) { ^ gv_guile.cpp:1222:22: error: ‘SCM_NULLP’ was not declared in this scope if (!SCM_NULLP(rest)) ^ gv_guile.cpp: In function ‘scm_unused_struct* SWIG_Guile_NewPointerObj(void*, swig_type_info*, int)’: gv_guile.cpp:871:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[4]: *** [libgv_guile_la-gv_guile.lo] Error 1 make[4]: Opuszczenie katalogu `/var/tmp/portage/media-gfx/graphviz-2.34.0/work/graphviz-2.34.0/tclpkg/gv' make[3]: *** [all-recursive] Error 1 make[3]: Opuszczenie katalogu `/var/tmp/portage/media-gfx/graphviz-2.34.0/work/graphviz-2.34.0/tclpkg/gv' make[2]: *** [all-recursive] Error 1 make[2]: Opuszczenie katalogu `/var/tmp/portage/media-gfx/graphviz-2.34.0/work/graphviz-2.34.0/tclpkg' make[1]: *** [all-recursive] Error 1 make[1]: Opuszczenie katalogu `/var/tmp/portage/media-gfx/graphviz-2.34.0/work/graphviz-2.34.0' make: *** [all] Błąd 2 * ERROR: media-gfx/graphviz-2.34.0::gentoo failed (compile phase): * emake failed # emerge -ptv dev-scheme/guile These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] dev-scheme/guile-1.8.8-r1:12::gentoo USE="networking nls regex threads -debug -debug-freelist -debug-malloc -deprecated -discouraged -emacs" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB # emerge -ptv media-gfx/graphviz These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild U ] media-gfx/graphviz-2.34.0::gentoo [2.28.0::gentoo] USE="X cairo gdk-pixbuf%* gtk guile%* java nls pdf%* perl postscript python qt4 ruby svg tcl -devil -doc -examples -gts -lasi -static-libs" ELIBC="(-FreeBSD)" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB
Actually this code is generated by swig...
Created attachment 363602 [details, diff] swig-2.0.11-guile-no_discouraged_code.patch This patch deletes references to discouraged macros/functions, which are declared in /usr/include/libguile/discouraged.h.
Have you tried upstreaming this patch yet? It doesn't appear to be in 2.0.12.
Created attachment 370510 [details, diff] swig-2.0.12-guile-no_discouraged_code.patch I have not yet contacted upstream.
is this still valid with 3.0.8?
Still valid for dev-lang/swig-3.0.10.
*** Bug 569516 has been marked as a duplicate of this bug. ***
Created attachment 439442 [details, diff] swig-3.0.10-guile-no_discouraged_code.patch
if this is valid with 3.0.12 this should probably be upstreamed or they are not going to fix it ever
Created attachment 519300 [details, diff] swig-3.0.12-guile-no_discouraged_code.patch
Created attachment 589354 [details, diff] swig-4.0.0-guile-no_discouraged_code.patch
https://github.com/swig/swig/commit/336de2f745fec4e1979d24e9d7991dbf05fa90fb https://github.com/swig/swig/commit/fd0a47fee883022042c186dbafb93574a1fc6d5a https://github.com/swig/swig/commit/6bf2138fa0e90c56e3cfe920a7bcede79cc2c677