Date: Wed, 20 Nov 2002 22:16:05 -0600 (CST) From: Richard Todd <rmtodd@servalan.servalan.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Richard Todd <rmtodd@servalan.servalan.com> Subject: ports/45551: mail/smail port fails to build (fix included!) Message-ID: <m18Eil3-004MTkC@servalan.servalan.com>
next in thread | raw e-mail | index | archive | help
>Number: 45551 >Category: ports >Synopsis: mail/smail port fails to build (fix included!) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 20 20:30:03 PST 2002 >Closed-Date: >Last-Modified: >Originator: Richard Todd >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD ichotolot.servalan.com 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Thu Aug 29 22:09:07 CDT 2002 rmtodd@ichotolot.servalan.com:/usr/src/sys/i386/compile/ICHOTOLOTSMP i386 >Description: The make depend part of the smail3 build attempts to do clever things with parsing the output of cc -E to figure out the dependencies. Recent versions of gcc (including the one in -current as of the aforementioned date) include odd lines in the cc -E output like this: # 1 "<built-in>" # 1 "<command line>" These lines confuse smail3's make depend code and cause it to try to include dependencies on "<built-in>" and "<command line>" in the Makefile, causing the build to die horribly as follows: ===> Extracting for smail-3.2.0.114 >How-To-Repeat: cd /usr/ports/mail/smail ; make >Fix: The following shar file contains a patch that should be stuck in the files/ directory of the port: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # files/patch-aa # echo x - files/patch-aa sed 's/^X//' >files/patch-aa << 'END-of-files/patch-aa' X--- conf/lib/mkdepend.sh.orig Fri May 9 15:08:37 1997 X+++ conf/lib/mkdepend.sh Wed Nov 20 21:48:07 2002 X@@ -57,6 +57,8 @@ X # X # use grep to avoid line-length limits in some seds X grep '^#[ ]*[0-9]' | X+ # remove extra goo added by newer GCC -- rmtodd@servalan.servalan.com X+ grep -v '^.*<.*>' | X # the compiler with the sun 3 produces extra garbage after X # the quoted filename. X sed -n 's/^#[ ]*[0-9]*[ ]*"\(.*\)"[ 0-9]*$/\1/p' | END-of-files/patch-aa exit >Release-Note: >Audit-Trail: >Unformatted: >> Checksum OK for smail-3.2.0.114.tar.gz. ===> smail-3.2.0.114 depends on file: /usr/local/lib/libident.a - found ===> Patching for smail-3.2.0.114 ===> Configuring for smail-3.2.0.114 ===> Building for smail-3.2.0.114 ROOT=. /bin/sh ./conf/lib/mkdefs.sh [...] cc -E -DDEPEND '-I.' '-I..' '-I../src' '-I/usr/local/include' '-I/usr/local/include' smtplib.c . ./defs.sh; echo "$DEFS_DEPEND" >> Makefile; chmod -w Makefile Build default targets under src/directors ... make: don't know how to make <built-in>. Stop *** Error code 2 Stop in /usr/ports/mail/smail/work/smail-3.2.0.114/src. *** Error code 1 Stop in /usr/ports/mail/smail/work/smail-3.2.0.114. *** Error code 1 Stop in /usr/ports/mail/smail. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m18Eil3-004MTkC>