Bug 45805 - security/sfs does not build on Alpha
Summary: security/sfs does not build on Alpha
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: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-27 18:40 UTC by Charlie &
Modified: 2004-02-19 18:37 UTC (History)
0 users

See Also:


Attachments
patch-sfskey.h (380 bytes, text/plain; charset=us-ascii)
2004-02-02 18:02 UTC, Greg Lewis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie & 2002-11-27 18:40:01 UTC
 	I build sfs sucessfully on x86 with "YACC=byacc make", but on alpha it fails:

gmake[2]: Leaving directory `/usr/ports/security/sfs/work/sfs-0.6/sfsrwcd'
Making all in agent
gmake[2]: Entering directory `/usr/ports/security/sfs/work/sfs-0.6/agent'
c++ -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.6\" -DETCDIR=\"/usr/local/etc/sfs\" -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/spool/sfs\"  -O -pipe -mcpu=ev56 -Wall -Werror  -c sfsagent.C
bc++ -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.6\" -DETCDIR=\"/usr/local/etc/sfs\" -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/spool/sfs\"  -O -pipe -mcpu=ev56 -Wall -Werror  -c agentdir.C
c++ -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.6\" -DETCDIR=\"/usr/local/etc/sfs\" -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/spool/sfs\"  -O -pipe -mcpu=ev56 -Wall -Werror  -c agentrex.C
/bin/sh ../libtool --mode=link c++  -O -pipe -mcpu=ev56 -Wall -Werror   -o sfsagent  sfsagent.o agentdir.o agentrex.o ../sfsmisc/libsfsmisc.la ../svc/libsvc.la ../crypt/libsfscrypt.la ../arpc/libarpc.la ../async/libasync.la /usr/lib/libgmp.a 
mkdir .libs
c++ -O -pipe -mcpu=ev56 -Wall -Werror -o sfsagent sfsagent.o agentdir.o agentrex.o ../sfsmisc/.libs/libsfsmisc.a ../svc/.libs/libsvc.a ../crypt/.libs/libsfscrypt.a ../arpc/.libs/libarpc.a ../async/.libs/libasync.a /usr/lib/libgmp.a
c++ -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.6\" -DETCDIR=\"/usr/local/etc/sfs\" -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/spool/sfs\"  -O -pipe -mcpu=ev56 -Wall -Werror  -c sfskey.C
cc1plus: warnings being treated as errors
sfskey.C: In function `void usage()':
sfskey.C:115: warning: `noreturn' function `usage()' does return
gmake[2]: *** [sfskey.o] Error 1
gmake[2]: Leaving directory `/usr/ports/security/sfs/work/sfs-0.6/agent'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/security/sfs/work/sfs-0.6'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/security/sfs.
Comment 1 stolz 2002-11-28 09:16:37 UTC
Am 27. Nov 2002 um 19:35 CET schrieb Charlie &:
> c++ -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.6\" -DETCDIR=\"/usr/local/etc/sfs\" -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\" -DSFSDIR=\"/var/spool/sfs\"  -O -pipe -mcpu=ev56 -Wall -Werror  -c sfskey.C
                              **********
> cc1plus: warnings being treated as errors
> sfskey.C: In function `void usage()'

That's because you have -Werror in your CFLAGS, most probably from
/etc/make.conf.

[Somebody please close this PR, I think]
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2002-12-02 20:05:05 UTC
Adding to audit trail:


Message-Id: <20021201194941.GA65130@theater.foldr.org>
Date: Sun, 1 Dec 2002 20:49:41 +0100
From: Volker Stolz <vs@foldr.org>
To: Charlie & <root@neslonek.bio.tu-darmstadt.de>
Cc: FreeBSD-gnats-submit@freebsd.org, obraun@freebsd.org
In-Reply-To: <200211271835.gARIZVqA000419@neslonek.bio.tu-darmstadt.de>
Subject: pending/45901: Re: security/sfs does not build on Alpha
References: <200211271835.gARIZVqA000419@neslonek.bio.tu-darmstadt.de>

 >  Am 27. Nov 2002 um 19:35 CET schrieb Charlie &:
 >  > c++ -DHAVE_CONFIG_H -I. -I. -I..   -I.. -I../async -I../arpc -I../crypt -I../sfsmisc -I../sfsrodb -I../adb -I../svc -I../svc -DEXECDIR=\"/usr/local/lib/sfs-0.6\" -DETCDIR=\"/usr/local/etc/sfs\" -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\ " -DSFSDIR=\"/var/spool/sfs\"  -O -pipe -mcpu=ev56 -Wall -Werror  -c sfskey.C
 >                                **********
 >  > cc1plus: warnings being treated as errors
 >  > sfskey.C: In function `void usage()'
 >  
 >  That's because you have -Werror in your CFLAGS, most probably from
 >  /etc/make.conf.
 
 Ooops, too quick. There's indeed a strange snippet in there, supposed
 to work around a GCC bug on alpha. Not relevant to FreeBSD though,
 and the workaround causes the above behaviour. 
 
 New patch file:
 --- agent/sfskey.h.orig	Sun Dec  1 17:32:05 2002
 +++ agent/sfskey.h	Sun Dec  1 18:03:45 2002
 @@ -34,7 +34,7 @@
  extern bool opt_quiet;
  extern ref<agentconn> aconn;
  
 -#if __GNUC__ == 2 && __GNUC_MINOR__ <= 95 && defined (__alpha__)
 +#if __GNUC__ == 2 && __GNUC_MINOR__ <= 95 && defined (__alpha__) && !defined(__FreeBSD__)
  # define XXX_EXIT 1
  #endif /* gcc <= 2.95.x && alpha */
  
 -- 
 Volker Stolz * stolz@i2.informatik.rwth-aachen.de * PGP + S/MIME
Comment 3 Ying-Chieh Liao freebsd_committer freebsd_triage 2003-01-02 15:52:40 UTC
State Changed
From-To: open->feedback

still a problem with 0.7.2 ?
Comment 4 Michael Handler 2003-01-02 16:02:05 UTC
I just revved the sfs port to 0.7.2, can you test on Alpha and let
me know if this is still an outstanding issue?
Comment 5 Tilman Keskinoz freebsd_committer freebsd_triage 2003-03-23 23:31:01 UTC
State Changed
From-To: feedback->closed

Feedback timeout (2 months)
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2003-03-24 18:33:48 UTC
State Changed
From-To: closed->open

Volker pointed out, that bento is still showing this error: 

http://bento.freebsd.org/errorlogs/alpha-4-latest/sfs-0.7.2.log
Comment 7 Greg Lewis 2004-02-02 18:02:28 UTC
Hi Michael,

Is there any reason why Volker Stolz's patch hasn't been committed?  It
certainly fixes the build on Alpha 4.x (5.x appears to have some other
unrelated woes).  I'm happy to commit this.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org
Comment 8 Greg Lewis freebsd_committer freebsd_triage 2004-02-04 21:04:30 UTC
State Changed
From-To: open->feedback

Waiting for feedback from the maintainer. 


Comment 9 Greg Lewis freebsd_committer freebsd_triage 2004-02-04 21:04:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glewis

I'll take this one and work with the maintainer to get it resolved.
Comment 10 Greg Lewis freebsd_committer freebsd_triage 2004-02-19 18:37:31 UTC
State Changed
From-To: feedback->closed

Committed Volker Stolz's patch.