Bug 97341 - ftp/proftpd fails to build
Summary: ftp/proftpd fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ion-Mihai "IOnut" Tetcu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 14:30 UTC by Frank Altpeter
Modified: 2006-05-22 15:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Altpeter 2006-05-16 14:30:17 UTC
This port fails to build with the following error:

----------------------------------------------------------------------------
cd src/ && make src
cc -I/usr/local/include -DHAVE_CONFIG_H  -DFREEBSD4_11 -DFREEBSD4 -I.. -I../include -I/usr/local/include -O -pipe  -DHAVE_OPENSSL -Wall -c main.c
In file included from main.c:38:
/usr/local/include/getopt.h:83: redefinition of `struct option'
*** Error code 1

Stop in /usr/ports/ftp/proftpd/work/proftpd-1.3.0/src.
*** Error code 1

Stop in /usr/ports/ftp/proftpd/work/proftpd-1.3.0.
----------------------------------------------------------------------------

/usr/local/include/getopt.h was installed by package libgnugetopt-1.2

libgnugetopt-1.2                    =   up-to-date with port
proftpd-1.2.10                      <   needs updating (port has 1.3.0_1)

I hope it's ok that i consider this as serious problem, since proftpd-1.2.10 is marked
as vulnerable in the port audit database:

Affected package: proftpd-1.2.10
Type of problem: proftpd -- format string vulnerabilities.
Reference: <http://www.FreeBSD.org/ports/portaudit/c28f4705-043f-11da-bc08-0001020eed82.html>

So i hope this to get fixed soon :)

How-To-Repeat: 	portsnap fetch update && cd /usr/ports/ftp/proftpd && make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-05-16 14:32:11 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-16 15:38:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

I have an other PR on this port so take this one too.
Comment 3 Beech Rintoul 2006-05-16 19:53:10 UTC
On Tuesday 16 May 2006 05:32, Edwin Groothuis wrote:
> Maintainer of ftp/proftpd,
>
> Please note that PR ports/97341 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/97341


This is a known issue. libgnugetopt does not play nicely with proftpd on 4x 
machines. The solution is to just remove libgnugetopt and rebuild. This does 
not affect builds on 4x in a clean environment. I'm working on a more 
permanent solution.

Beech

-- 

---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech@mangohealth.org
/"\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---------------------------------------------------------------------------------------










Comment 4 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-17 09:29:39 UTC
State Changed
From-To: feedback->suspended

Suspended waiting for the proper fix from maintainer
Comment 5 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-17 12:35:02 UTC
State Changed
From-To: suspended->patched

patch in 97369
Comment 6 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-20 01:33:36 UTC
State Changed
From-To: patched->closed

Fix commited.
Comment 7 uhlar 2006-05-22 15:11:05 UTC
Hello,
I've had this problem years ago.
See http://bugs.proftpd.org/show_bug.cgi?id=2281
maybe it will help you solving the problem a bit.