Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2003 09:18:37 -0700 (PDT)
From:      Shizuka Kudo <shizukakudo_99@yahoo.com>
To:        Edwin Groothuis <edwin@mavetju.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/55750: mail/courier is broken
Message-ID:  <20030909161837.27819.qmail@web11409.mail.yahoo.com>
In-Reply-To: <20030908211827.GA830@k7.mavetju>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Edwin Groothuis <edwin@mavetju.org> 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 <shizukakudo_99@yahoo.com>
> > To: Edwin Groothuis <edwin@freebsd.org>,
> > 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030909161837.27819.qmail>