This is an attempt to fix the following errors: ports-i386@FreeBSD.org: resin-2.1.17 failed on i386 7 ports-i386@FreeBSD.org: resin-3.0.17 failed on i386 7 cc -rpath=/usr/lib:/usr/local/lib -L/usr/lib -lcrypto -lssl -o resin resin.o ../common/common.o std.o memory.o ssl.o -lc_r /usr/bin/ld: cannot find -lc_r *** Error code 1 A new patch is added to remove hardcoded reference to -lc_r. The CFLAGS variable is augmented with PTHREAD_LIBS.
Responsible Changed From-To: freebsd-ports-bugs->lawrance Grab
State Changed From-To: open->feedback I would suggest doing something like: post-patch: ${REINPLACE_CMD} 's,-lc_r,${PTHREAD_LIBS}' ${WRKSRC}/configure How does that sound? As Kris mentioned, it prevents ${PTHREAD_LIBS} being added to any and every invocation of cc.
* Sam Lawrance: > Synopsis: Maintainer update: www/resin2 and www/resin3: honour PTHREAD_LIBS to fix build failure on FreeBSD 7 > > State-Changed-From-To: open->feedback > State-Changed-By: lawrance > State-Changed-When: Thu Mar 16 12:14:26 UTC 2006 > State-Changed-Why: > I would suggest doing something like: > > post-patch: > ${REINPLACE_CMD} 's,-lc_r,${PTHREAD_LIBS}' ${WRKSRC}/configure > > How does that sound? As Kris mentioned, it prevents ${PTHREAD_LIBS} being > added to any and every invocation of cc. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=93289 That sounds bad: /usr/bin/ld -shared -o libresin.so jni_vfs.o std.o memory.o ssl.o -pthread /usr/bin/ld: unrecognized option '-pthread' /usr/bin/ld: use the --help option for usage information PTHREAD_LIBS is not linker flags, in despite of its name. -- Jean-Baptiste Quenot http://caraldi.com/jbq/
Please find attached an updated patch for www/resin2, and a ultimate fix for www/resin3 to allow OpenSSL. Thanks for your help! -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/
State Changed From-To: feedback->closed Committed, thanks!