From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 9 09:18:38 2003 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B33C16A4BF for ; Tue, 9 Sep 2003 09:18:38 -0700 (PDT) Received: from web11409.mail.yahoo.com (web11409.mail.yahoo.com [216.136.131.220]) by mx1.FreeBSD.org (Postfix) with SMTP id C08B843FFB for ; Tue, 9 Sep 2003 09:18:37 -0700 (PDT) (envelope-from shizukakudo_99@yahoo.com) Message-ID: <20030909161837.27819.qmail@web11409.mail.yahoo.com> Received: from [203.218.228.135] by web11409.mail.yahoo.com via HTTP; Tue, 09 Sep 2003 09:18:37 PDT Date: Tue, 9 Sep 2003 09:18:37 -0700 (PDT) From: Shizuka Kudo To: Edwin Groothuis In-Reply-To: <20030908211827.GA830@k7.mavetju> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/55750: mail/courier is broken X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 16:18:38 -0000 --- Edwin Groothuis wrote: > On Mon, Sep 08, 2003 at 07:40:04AM -0700, Shizuka Kudo wrote: > > The following reply was made to PR ports/55750; it has been noted by GNATS. > > > > From: Shizuka Kudo > > To: Edwin Groothuis , > > freebsd-gnats-submit@FreeBSD.org > > Cc: > > Subject: Re: ports/55750: mail/courier is broken > > Date: Mon, 8 Sep 2003 07:31:07 -0700 (PDT) > > > > Hi Edwin, > > > > Any error message? I have compiled the port with my patch at > > around 1 Sept without problem > > gmake[2]: Entering directory > `/local0/scratch/edwin/ports/mail/courier/work/courier-0.43.1/threadlib' > cc -Wall -O -pipe -march=pentium2 -rpath=/usr/lib:/home/edwin/local-5/lib -o threadtest > test.o libthreadlib.a `cat libthread.dep` -lm > libthreadlib.a(pthread.o): In function `threadfunc': > pthread.o(.text+0x7e): undefined reference to `pthread_cleanup_push' > pthread.o(.text+0xf0): undefined reference to `pthread_cleanup_pop' > pthread.o(.text+0x13b): undefined reference to `pthread_cleanup_push' > pthread.o(.text+0x16e): undefined reference to `pthread_cleanup_pop' > libthreadlib.a(pthread.o): In function `initcondmutex': > pthread.o(.text+0x217): undefined reference to `pthread_condattr_init' > > libthread.dep is empty, what probably the problem is, it should > have -lc_r in it. (or whatever PTHREAD_LIBS is pointing to). Yep, and using Doug Barton's suggestion to change -lpthread to ${PTHREAD_LIBS}, I could compile the port now. Could you please change the "post-patch" in the Makefile as follows and try it out? It is the first substitution that is added. post-patch: @${PERL} -pi -e 's:-lpthread:${PTHREAD_LIBS}:g;' \ ${WRKSRC}/threadlib/configure @${PERL} -pi -e 's:\@datadir\@:\@sysconfdir\@:g;' \ ${WRKSRC}/*/mk*cert.* \ ${WRKSRC}/*/*/mk*cert.* @${PERL} -pi -e 's:^(TLS_CERTFILE=)\@datadir\@:$$1\@sysconfdir\@:g;' \ ${WRKSRC}/*/*.dist.in \ ${WRKSRC}/*/*/*.dist.in @${PERL} -pi -e 's:^(RANDFILE = )\@datadir\@\S+:$$1\@sysconfdir\@/random.tmp:g;' \ ${WRKSRC}/*/*.cnf.in \ ${WRKSRC}/*/*/*.cnf.in > > Edwin > > -- > Edwin Groothuis | Personal website: http://www.mavetju.org > edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com