Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465134 - =net-ftp/proftpd-1.3.4c[-ipv6] fails to compile due to syntax error in src/netaddr.c
Summary: =net-ftp/proftpd-1.3.4c[-ipv6] fails to compile due to syntax error in src/ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd Lommerzheim
URL: http://bugs.proftpd.org/show_bug.cgi?...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-08 16:55 UTC by Yuri Shatroff
Modified: 2013-04-08 18:16 UTC (History)
5 users (show)

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


Attachments
patch to get rid of the syntax error (netaddr.c.patch,252 bytes, text/plain)
2013-04-08 16:55 UTC, Yuri Shatroff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Shatroff 2013-04-08 16:55:28 UTC
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.
Comment 1 TJ Saunders 2013-04-08 18:10:11 UTC
Upstream bug report for this:

  http://bugs.proftpd.org/show_bug.cgi?id=3909
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2013-04-08 18:15:17 UTC
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!
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2013-04-08 18:16:16 UTC
(In reply to comment #1)
> Upstream bug report for this:
> 
>   http://bugs.proftpd.org/show_bug.cgi?id=3909

Thank you!