Bug 163217 - security/dropbear does not compile if WITH_STATIC is enabled
Summary: security/dropbear does not compile if WITH_STATIC is enabled
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: Michael Scheidell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 01:00 UTC by Mattia Rossi
Modified: 2011-12-27 23:20 UTC (History)
0 users

See Also:


Attachments
patch.txt (555 bytes, text/plain; charset=us-ascii)
2011-12-22 23:40 UTC, Alex Kozlov
no flags Details
patch.txt (541 bytes, text/plain; charset=us-ascii)
2011-12-27 15:40 UTC, Alex Kozlov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Rossi 2011-12-13 01:00:22 UTC
Compiling security/dropbear (dropbear-0.53.1) with WITH_STATIC enabled fails with the following error:

cc -static -o dropbear dbutil.o buffer.o dss.o bignum.o signkey.o rsa.o random.o queue.o atomicio.o compat.o  fake-rfc2553.o  common-session.o packet.o common-algo.o common-kex.o common-channel.o common-chansession.o termcodes.o loginrec.o tcp-accept.o listener.o process-packet.o common-runopts.o circbuffer.o -lcrypt svr-kex.o svr-algo.o svr-auth.o sshpty.o svr-authpasswd.o svr-authpubkey.o svr-authpubkeyoptions.o svr-session.o svr-service.o svr-chansession.o svr-runopts.o svr-agentfwd.o svr-main.o svr-x11fwd.o svr-tcpfwd.o svr-authpam.o  libtomcrypt/libtomcrypt.a libtommath/libtommath.a -lutil -lz 
svr-authpasswd.o(.text+0x91): In function `svr_auth_password':
: undefined reference to `crypt'
gmake: *** [dropbear] Error 1
*** Error code 1

Stop in /usr/ports/security/dropbear.
*** Error code 1

Stop in /usr/ports/security/dropbear.


The error happens on

Fix: 

Don't enable the "Build statically" flag, and dropbear will build just fine.
How-To-Repeat: cd /usr/ports/security/dropbear
make config
 - enable "Build statically"
make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-12-13 01:00:30 UTC
Maintainer of security/dropbear,

Please note that PR ports/163217 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/163217

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2011-12-13 01:00:34 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Alex Kozlov 2011-12-22 23:40:28 UTC
Hi, Mattia

Please try this patch.


--
Adios
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2011-12-25 17:53:24 UTC
State Changed
From-To: feedback->open

feedback / maintainer timeout
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2011-12-26 00:22:32 UTC
State Changed
From-To: open->feedback

still waiting for feedback
Comment 6 Michael Scheidell freebsd_committer freebsd_triage 2011-12-27 14:52:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->scheidell

Alex:  do you want someone to commit this patch?
Comment 7 Chris Rees freebsd_committer freebsd_triage 2011-12-27 15:01:55 UTC
On 27 December 2011 14:53,  <scheidell@freebsd.org> wrote:
> Synopsis: security/dropbear does not compile if WITH_STATIC is enabled
>
> Responsible-Changed-From-To: freebsd-ports-bugs->scheidell
> Responsible-Changed-By: scheidell
> Responsible-Changed-When: Tue Dec 27 14:52:45 UTC 2011
> Responsible-Changed-Why:
> Alex: =A0do you want someone to commit this patch?
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D163217

Please don't add a PORTEPOCH for this... there's no need!

Chris
Comment 8 Alex Kozlov 2011-12-27 15:40:59 UTC
On Tue, 27 Dec 2011 15:01:55 +0000, <crees@freebsd.org> wrote:
>> Synopsis: security/dropbear does not compile if WITH_STATIC is enabled
>>
>> Responsible-Changed-From-To: freebsd-ports-bugs->scheidell
>> Responsible-Changed-By: scheidell
>> Responsible-Changed-When: Tue Dec 27 14:52:45 UTC 2011
>> Responsible-Changed-Why:
>> Alex:  do you want someone to commit this patch?
Of course. Thanks.
Please also check ports/163539.

> Please don't add a PORTEPOCH for this... there's no need!
You're right, despite the change of numbering scheme pkg_version/portmaster
detects update just fine, so there is no need for PORTEPOCH.


--
Adios
Comment 9 Michael Scheidell freebsd_committer freebsd_triage 2011-12-27 23:10:29 UTC
State Changed
From-To: feedback->closed

Committed, Thanks.
Comment 10 dfilter service freebsd_committer freebsd_triage 2011-12-27 23:10:47 UTC
scheidell    2011-12-27 23:10:11 UTC

  FreeBSD ports repository

  Modified files:
    security/dropbear    Makefile distinfo 
  Log:
  - Fix compile if WITH_STATIC is enabled [1]
  - Also pr ports/163593, which is a duplicate of this one. root@42.org [2]
  
  PR:             ports/163217
  Submitted by:   Mattia Rossi <mrossi@swin.edu.au> [1], root@42.org [2]
  Approved by:    spam@rm-rf.kiev.ua (maintainer), gabor (mentor)
  
  Revision  Changes    Path
  1.25      +1 -1      ports/security/dropbear/Makefile
  1.18      +2 -2      ports/security/dropbear/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"