View previous topic :: View next topic |
Author |
Message |
pogwizd n00b
Joined: 26 Mar 2006 Posts: 60 Location: Warszawa
|
Posted: Sat Jun 22, 2024 8:59 am Post subject: [solved] dante compilation fails |
|
|
Hi everyone,
I have made an Code: | emerge --sync; emerge -uDNa @world | a couple of weeks ago.
This worls rebuild required
Code: |
root@gentoo ~# emerge -uDNa @world
...
[ebuild rR ] net-proxy/dante-1.4.1-r6::gentoo USE="kerberos pam upnp -debug (-selinux) -static-libs -tcpd" 0 KiB
...
|
to be rebuild, but unfortunetely, since then it fails everytimes (on both my machines).
I wondered if someone has an idea why?
Here are the error logs (75 last lines):
Code: |
root@gentoo ~# tail -n 75 /var/tmp/portage/net-proxy/dante-1.4.1-r6/temp/build.log
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from Rbindresvport.c:44:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from Rcompat.c:45:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from Rconnect.c:45:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from Rbind.c:45:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from Rgetpeername.c:45:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
Rcompat.c: In function 'Rwritev':
Rcompat.c:90:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
90 | msg.msg_iov = iov;
| ^
Rcompat.c: In function 'Rsend':
Rcompat.c:106:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
106 | struct iovec iov = { msg, len };
| ^~~
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -g -O2 -ggdb -pipe -c -o Rgetsockname.lo Rgetsockname.c
Rcompat.c: In function 'Rgets':
Rcompat.c:512:14: error: implicit declaration of function 'gets'; did you mean 'Rgets'? [-Wimplicit-function-declaration]
512 | return gets(buf);
| ^~~~
| Rgets
Rcompat.c:512:14: error: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion]
512 | return gets(buf);
| ^~~~~~~~~
make[1]: *** [Makefile:623: Rcompat.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -g -O2 -ggdb -pipe -c Rgetsockname.c -fPIC -DPIC -o .libs/Rgetsockname.o
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from Rgetsockname.c:45:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
make[1]: Leaving directory '/var/tmp/portage/net-proxy/dante-1.4.1-r6/work/dante-1.4.1/lib'
make: *** [Makefile:429: all-recursive] Error 1
* ERROR: net-proxy/dante-1.4.1-r6::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=net-proxy/dante-1.4.1-r6::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-proxy/dante-1.4.1-r6::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-proxy/dante-1.4.1-r6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-proxy/dante-1.4.1-r6/temp/environment'.
* Working directory: '/var/tmp/portage/net-proxy/dante-1.4.1-r6/work/dante-1.4.1'
* S: '/var/tmp/portage/net-proxy/dante-1.4.1-r6/work/dante-1.4.1'
|
I don't know, maybe this is relevant, I've made a GCC update recently, so here is its config:
Code: |
root@gentoo ~# gcc-config -E
export PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/14:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/17/bin:/usr/lib64/subversion/bin:/usr/local/texlive/2024/bin/x86_64-linux/"
export GCC_SPECS="" |
Thanks in advanced for the help
Last edited by pogwizd on Sun Jun 23, 2024 7:59 pm; edited 1 time in total |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1705 Location: South America
|
Posted: Sat Jun 22, 2024 1:23 pm Post subject: |
|
|
You upgraded to GCC 14 and built net-proxy/dante with the kerberos USE flag set, right? If yes, Dante is in need of getting ported to modern C. There are several bugs about it in Gentoo's bug tracker, but I don't see one for this particular failure. You should file a new bug for it, and clarify that it happens with the kerberos USE flag set.
In the meantime, you could see if you can work around this bug using package.env:
/etc/portage/package.env/dante
Code: | net-proxy/dante dante-gcc-14-workaround.conf |
/etc/portage/env/dante-gcc-14-workaround.conf
Code: | CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration -Wno-error=int-conversion" |
_________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
pogwizd n00b
Joined: 26 Mar 2006 Posts: 60 Location: Warszawa
|
Posted: Sat Jun 22, 2024 8:55 pm Post subject: |
|
|
Well, with the package.env, now it fails with this:
Code: |
root@gentoo ~# tail -n 75 /var/tmp/portage/net-proxy/dante-1.4.1-r6/temp/build.log
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c -o userio.lo userio.c
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c upnp.c -fPIC -DPIC -o .libs/upnp.o
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from upnp.c:47:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c userio.c -fPIC -DPIC -o .libs/userio.o
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from userio.c:44:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c -o util.lo util.c
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c -o issetugid.lo `test -f '../libscompat/issetugid.c' || echo './'`../libscompat/issetugid.c
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c -o setproctitle.lo `test -f '../libscompat/setproctitle.c' || echo './'`../libscompat/setproctitle.c
upnp.c: In function 'socks_initupnp':
upnp.c:209:17: error: too few arguments to function 'UPNP_GetValidIGD'
209 | devtype = UPNP_GetValidIGD(dev, &url, &data, myaddr, sizeof(myaddr));
| ^~~~~~~~~~~~~~~~
In file included from ../include/upnp.h:47,
from upnp.c:49:
/usr/include/miniupnpc/miniupnpc.h:122:1: note: declared here
122 | UPNP_GetValidIGD(struct UPNPDev * devlist,
| ^~~~~~~~~~~~~~~~
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c -o strvis.lo `test -f '../libscompat/strvis.c' || echo './'`../libscompat/strvis.c
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c util.c -fPIC -DPIC -o .libs/util.o
make[1]: *** [Makefile:623: upnp.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c ../libscompat/issetugid.c -fPIC -DPIC -o .libs/issetugid.o
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c ../libscompat/setproctitle.c -fPIC -DPIC -o .libs/setproctitle.o
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../include/common.h:56,
from util.c:45:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../libscompat/issetugid.c:7:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../libscompat/setproctitle.c:8:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DDEBUG=0 -I/usr/include -I/usr/include -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=0 -DSTANDALONE_UNIT_TEST=0 -march=skylake -O2 -pipe -Wno-error=implicit-function-declaration -Wno-error=int-conversion -g -O2 -ggdb -pipe -c ../libscompat/strvis.c -fPIC -DPIC -o .libs/strvis.o
In file included from /usr/include/sys/types.h:25,
from ../include/osdep.h:71,
from ../libscompat/strvis.c:7:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
make[1]: Leaving directory '/var/tmp/portage/net-proxy/dante-1.4.1-r6/work/dante-1.4.1/lib'
make: *** [Makefile:429: all-recursive] Error 1
* ERROR: net-proxy/dante-1.4.1-r6::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=net-proxy/dante-1.4.1-r6::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-proxy/dante-1.4.1-r6::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-proxy/dante-1.4.1-r6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-proxy/dante-1.4.1-r6/temp/environment'.
* Working directory: '/var/tmp/portage/net-proxy/dante-1.4.1-r6/work/dante-1.4.1'
* S: '/var/tmp/portage/net-proxy/dante-1.4.1-r6/work/dante-1.4.1'
|
|
|
Back to top |
|
|
pogwizd n00b
Joined: 26 Mar 2006 Posts: 60 Location: Warszawa
|
Posted: Sun Jun 23, 2024 5:30 pm Post subject: |
|
|
I just try on one of my machine to go back to gcc:13
Unfortunetely, the problem is still there, so I guess this is not it...
And when with gcc:14, I tried to remove the kerberos use flag, also did not work |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22684
|
Posted: Sun Jun 23, 2024 6:08 pm Post subject: |
|
|
The error message indicates that dante is not compatible with the installed /usr/include/miniupnpc/miniupnpc.h. Based on the name, this header is probably from net-libs/miniupnpc. |
|
Back to top |
|
|
pogwizd n00b
Joined: 26 Mar 2006 Posts: 60 Location: Warszawa
|
Posted: Sun Jun 23, 2024 7:59 pm Post subject: |
|
|
Indeed, downgrading net-libs/miniupnpc solved the problem.
Thanks Hu, |
|
Back to top |
|
|
Accipiter Tux's lil' helper
Joined: 24 Feb 2003 Posts: 88 Location: Buffalo, NY
|
Posted: Sun Jun 30, 2024 5:08 pm Post subject: |
|
|
Hu wrote: | The error message indicates that dante is not compatible with the installed /usr/include/miniupnpc/miniupnpc.h. Based on the name, this header is probably from net-libs/miniupnpc. |
It is.
That is still a bug. The ebuild's CDEPEND should (read: must) specify this: Code: | upnp? ( net-libs/miniupnpc:0/17 ) | instead of just this: Code: | upnp? ( net-libs/miniupnpc:= ) |
But there are already ten open bugs against this package. Yet another maintainer gone AWOL for more than a year -- this one evidently since 2020. It is becoming depressing. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22684
|
Posted: Sun Jun 30, 2024 5:40 pm Post subject: |
|
|
It looks like robbat2 was active as recently as 2 weeks ago. This package may not be getting timely maintenance, but the maintainer is not away "for more than a year."
I suggest filing a specific bug report about this problem. If no one knows about it, it will not be fixed. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|