From owner-freebsd-perl@FreeBSD.ORG Sat Mar 8 18:02:42 2014 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF877CC; Sat, 8 Mar 2014 18:02:42 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5D010AAF; Sat, 8 Mar 2014 18:02:42 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBF45C.dip0.t-ipconnect.de [93.203.244.92]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id s28I1TuN088559; Sat, 8 Mar 2014 18:01:30 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id s28I1F7Z019702; Sat, 8 Mar 2014 19:01:15 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.5/8.14.5) with ESMTP id s28I13RX033863; Sat, 8 Mar 2014 19:01:15 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201403081801.s28I13RX033863@fire.js.berklix.net> To: freebsd-perl@freebsd.org Subject: Re: How to compile lang/perl5.14 static ? From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sat, 08 Mar 2014 13:12:02 +0100." Date: Sat, 08 Mar 2014 19:01:03 +0100 Cc: sunpoet@freebsd.org, johans@freebsd.org X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2014 18:02:42 -0000 "Julian H. Stacey" wrote: > "Julian H. Stacey" wrote: > > > On Sat, Mar 08, 2014 at 03:35:11AM +0100, Julian H. Stacey wrote: > > > > Hi freebsd-perl@freebsd.org > > > > On 9.1-release & up, how can one compile lang/perl5.14 static ? > > > > cd /usr/ports/lang/perl5.14 ; make LDFLAGS=3D-static # Fails > > > > LDFLAGS=3D-static in /etc/make.conf Fails > > > > My hack fails: > > > > http://www.berklix.com/~jhs/src/bsd/fixes/freebsd/ports/gen/lang/perl5.1= > > > 4/files/ > > > > Other ideas please ? > > > >=20 > > > > I want perl static so I can debug/solve a problem with procmail calling > > > > demime calling perl, perl is now in /usr/local, where shared libs are > > > > no longer being seen from my procmail filter > > > > http://berklix.com/~jhs/dots/.procmailrc > > > > http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/ports/gen/mail/demime > > > >=20 > > > > I was seeing a similar lack of shared libs problem with /usr/local/bin/em= > > > il > > > > called from procmail, until I compiled emil static. > > > > http://www.berklix.com/~jhs/src/bsd/fixes/freebsd/ports/gen/mail/emil/Mak= > > > efile.REL=3D9.1-RELEASE.diff > > > >=20 > > > > Idealy I would solve the problem in procmail, but I dont know how, > > > > adding -p to .forward did not help > > > > adding=20 > > > > LD_LIBRARY_PATH=3D/lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/loca= > > > l/lib/browser_plugins/gnash:/usr/local/GNUstep/Local/Library/Libraries:/usr= > > > /local/GNUstep/System/Library/Libraries:/usr/local/kde4/lib:/usr/local/lib/= > > > R/lib:/usr/local/lib/alsa-lib:/usr/local/lib/compat:/usr/local/lib/dovecot:= > > > /usr/local/lib/dovecot/imap:/usr/local/lib/dovecot/lda:/usr/local/lib/dovec= > > > ot/pop3:/usr/local/lib/event2:/usr/local/lib/ffmpeg1:/usr/local/lib/gcc42:/= > > > usr/local/lib/gcc46:/usr/local/lib/gnash:/usr/local/lib/graphviz:/usr/local= > > > /lib/httrack:/usr/local/lib/libxul:/usr/local/lib/mysql:/usr/local/lib/nss:= > > > /usr/local/lib/pth:/usr/local/lib/qt4:/usr/local/lib/virtualbox > > > > to .procmailrc did not help > > > >=20 > > > > I cc'd Maintainers of procmail emil & [ex]demime FYI > > > >=20 > > > > Any ideas welcome, Thanks. > > > >=20 > > > > PS I am not on perl@freebsd.org, please keep jhs@berklix.com on CC. > > > >=20 > > > > Cheers, > > > > Julian > > > > Glen Barber wrote: > > > I am not sure why I am in CC on this. > > > Glen > > > > Hi Glen, > > I cc'd you as [ex] maintainer of related port - demime: > > > > mail/demime/Makefile:MAINTAINER= gjb@FreeBSD.org > > mail/emil/Makefile:MAINTAINER= johans@FreeBSD.org > > mail/procmail/Makefile:MAINTAINER= sunpoet@FreeBSD.org > > > > Though demime was removed from FreeBSD ports I still run it on latest FreeBSD > > http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/ports/gen/mail/demime > > CC line amended: > Removed Josh Gilliam bounces, & > just originator not maintainer of emil > Added johans@FreeBSD.org emil maintainer > Retained sunpoet@FreeBSD.org procmail maintainer > Retained gjb@FreeBSD.org demime [ex]maintainer Dropped gjb@ on his request > Retained jhs@berklix.com (not on perl@freebsd.org). > Retained perl@freebsd.org for Q.: How to make static ? Oops ! Sorry ! I withdraw my request to know how to make perl static. :-) OK, it would be nice to learn from an abstract academic view, but I no longer Need to know: ( As I've found my procmail problem with both emil & demime (demime uses perl) was not due to shared libs not being found in /usr/local, but was instead being caused by my typo. a rogue 'h' rather than 'H' in a macro my makefile generates procmailrc recipes with, so no mail body was being passed. ) My ports/mail/demime is now running fine on 9.1-RELEASE (despite not being in freebsd.org/ports ) Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Interleave replies below like a play script. Indent old text with "> ". Send plain text, not quoted-printable, HTML, base64, or multipart/alternative. Boycott Putin's Russia, invaders of Ukraine.