Created attachment 344864 [details] patch to get rid of the syntax error I'm trying to compile net-ftp/proftpd-1.3.4c on Gentoo/amd64. It fails with the following error in src/netaddr.c file: ... x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -O2 -pipe -Wall -c netaddr.c netaddr.c:696:3: error: expected identifier or '(' before 'return' netaddr.c:697:1: error: expected identifier or '(' before '}' token netaddr.c: In function 'get_addr_by_name': netaddr.c:694:3: warning: control reaches end of non-void function [-Wreturn-type] x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -O2 -pipe -Wall -c mod_delay.c make[1]: *** [netaddr.o] Error 1 I looked into the file and found what is the cause of the syntax error, and created a patch (see attachment). With this patch, the compilation of the software went successful.
Upstream bug report for this: http://bugs.proftpd.org/show_bug.cgi?id=3909
Sweet! Pushed as: > 08 Apr 2013; Sergei Trofimovich <slyfox@gentoo.org> > +files/proftpd-1.3.4c-fix-build-noipv6.patch, proftpd-1.3.4c.ebuild: > Fix USE=-ipv6 build failure. Report and fix by Yuri Shatroff (bug #465134). Thank you, Yuri!
(In reply to comment #1) > Upstream bug report for this: > > http://bugs.proftpd.org/show_bug.cgi?id=3909 Thank you!