ports/55750: mail/courier is broken
Shizuka Kudo
shizukakudo_99 at yahoo.com
Tue Sep 9 16:18:38 UTC 2003
--- Edwin Groothuis <edwin at 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 at yahoo.com>
> > To: Edwin Groothuis <edwin at freebsd.org>,
> > freebsd-gnats-submit at 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 at 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
More information about the freebsd-ports-bugs
mailing list