Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491716 - dev-lang/swig generates code incompatible with ~dev-scheme/guile-1.8.8[-discouraged] (causing build failure of media-gfx/graphviz[guile])
Summary: dev-lang/swig generates code incompatible with ~dev-scheme/guile-1.8.8[-disco...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Scheme Project
URL: https://github.com/swig/swig/issues/1624
Whiteboard:
Keywords: PATCH
: 569516 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-19 22:07 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2022-08-05 06:38 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
swig-2.0.11-guile-no_discouraged_code.patch (swig-2.0.11-guile-no_discouraged_code.patch,3.24 KB, patch)
2013-11-19 22:51 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
swig-2.0.12-guile-no_discouraged_code.patch (swig-2.0.12-guile-no_discouraged_code.patch,3.24 KB, patch)
2014-02-15 19:29 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
swig-3.0.10-guile-no_discouraged_code.patch (swig-3.0.10-guile-no_discouraged_code.patch,3.24 KB, patch)
2016-07-02 14:44 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
swig-3.0.12-guile-no_discouraged_code.patch (swig-3.0.12-guile-no_discouraged_code.patch,3.17 KB, patch)
2018-02-13 09:42 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
swig-4.0.0-guile-no_discouraged_code.patch (swig-4.0.0-guile-no_discouraged_code.patch,3.16 KB, patch)
2019-09-07 19:23 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-11-19 22:07:05 UTC
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
Comment 1 Arfrever Frehtes Taifersar Arahesis 2013-11-19 22:15:11 UTC
Actually this code is generated by swig...
Comment 2 Arfrever Frehtes Taifersar Arahesis 2013-11-19 22:51:01 UTC
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.
Comment 3 Tim Harder gentoo-dev 2014-02-11 05:05:07 UTC
Have you tried upstreaming this patch yet? It doesn't appear to be in 2.0.12.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2014-02-15 19:29:02 UTC
Created attachment 370510 [details, diff]
swig-2.0.12-guile-no_discouraged_code.patch

I have not yet contacted upstream.
Comment 5 Pacho Ramos gentoo-dev 2016-05-28 08:45:06 UTC
is this still valid with 3.0.8?
Comment 6 Arfrever Frehtes Taifersar Arahesis 2016-07-02 14:39:07 UTC
Still valid for dev-lang/swig-3.0.10.
Comment 7 Arfrever Frehtes Taifersar Arahesis 2016-07-02 14:42:09 UTC
*** Bug 569516 has been marked as a duplicate of this bug. ***
Comment 8 Arfrever Frehtes Taifersar Arahesis 2016-07-02 14:44:47 UTC
Created attachment 439442 [details, diff]
swig-3.0.10-guile-no_discouraged_code.patch
Comment 9 Pacho Ramos gentoo-dev 2018-02-13 08:54:06 UTC
if this is valid with 3.0.12 this should probably be upstreamed or they are not going to fix it ever
Comment 10 Arfrever Frehtes Taifersar Arahesis 2018-02-13 09:42:19 UTC
Created attachment 519300 [details, diff]
swig-3.0.12-guile-no_discouraged_code.patch
Comment 11 Arfrever Frehtes Taifersar Arahesis 2019-09-07 19:23:26 UTC
Created attachment 589354 [details, diff]
swig-4.0.0-guile-no_discouraged_code.patch