From owner-freebsd-current@freebsd.org Mon Jan 7 16:26:29 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37F9314976D2 for ; Mon, 7 Jan 2019 16:26:29 +0000 (UTC) (envelope-from jhs@berklix.com) 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)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 168696C3D4; Mon, 7 Jan 2019 16:26:26 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p2E52C0CB.dip0.t-ipconnect.de [46.82.192.203]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id x07GQH5J067361 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Jan 2019 16:26:21 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 x07GQDnv024709; Mon, 7 Jan 2019 17:26:13 +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.7/8.14.7) with ESMTP id x07GPtW6049111; Mon, 7 Jan 2019 17:26:07 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201901071626.x07GPtW6049111@fire.js.berklix.net> cc: FreeBSD Current cc: "Dimitry Andric" , Gary Jennejohn Subject: Re: ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" (RPI/arm64) From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Aachen Kent User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Sun, 06 Jan 2019 23:31:03 +0100." <201901062231.x06MV3OP028712@fire.js.berklix.net> Date: Mon, 07 Jan 2019 17:25:55 +0100 X-Rspamd-Queue-Id: 168696C3D4 X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [6.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.93)[0.926,0]; MULTIPLE_UNIQUE_HEADERS(0.70)[Cc]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[berklix.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.989,0]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: land.berklix.com]; NEURAL_SPAM_LONG(1.00)[1.000,0]; MISSING_TO(2.00)[]; R_SPF_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[203.192.82.46.zen.spamhaus.org : 127.0.0.10]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:144.76.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(0.08)[ipnet: 144.76.0.0/16(2.78), asn: 24940(-2.37), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[] X-Spam: Yes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2019 16:26:29 -0000 Hi, Reference: > From: "Julian H. Stacey" > Date: Sun, 06 Jan 2019 23:31:03 +0100 "Julian H. Stacey" wrote: > Gary Jennejohn wrote: > > On Sun, 06 Jan 2019 08:13:52 +0100 > > "Julian H. Stacey" wrote: > > > > > > > > $ chrome > > > > > > ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" > > > > > > [ Delayed report (as it took about 2 days to build chrome from ports/)] ... > > > > > > I too am still seing from chrome: > > > ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" > > > which I first saw from chrome after a pkg add, but now too from a ports/ build > > > > > > My src/ was maybe a week or so old. To be precise on next failure report, > > > I've since added WITHOUT_REPRODUCIBLE_BUILD="YES" to /etc/src.conf > > > & finished a buildworld on .svn_revision 342785, now running buildkernel > > > > > > > IIRC the problem was attributed to some flags being passed to the > > compiler or linker. Don't know exactly which reply, but it > > should be findable in the mail-list database. AFAIK it was never > > verified that it was the cause. > > Thanks Gary, my world is now updated to > uname -a > FreeBSD lapr.js.berklix.net 13.0-CURRENT FreeBSD 13.0-CURRENT #0: Sun Jan 6 08:06:58 CET 2019 jhs@lapr.js.berklix.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > /usr/src/.svn_revision 342810 > > chrome still fails > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220103 > has 30 comments inc. 2 patches (That Ive had no time to try yet) chrome now works after I hand patched my already built /usr/ports/www/chromium using this patch ------ --- build/linux/chrome.map.orig 2018-08-08 19:10:32 UTC +++ build/linux/chrome.map @@ -1,4 +1,7 @@ { +local: + *; + global: __bss_start; __data_start; @@ -20,6 +23,10 @@ global: # Program entry point. _start; + # FreeBSD specific variables. + __progname; + environ; + # Memory allocation symbols. We want chrome and any libraries to # share the same heap, so it is correct to export these symbols. calloc; @@ -81,7 +88,4 @@ global: localtime64; localtime64_r; localtime_r; - -local: - *; }; ------ which looks like https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200811&action=diff I extracted mine by hand from https://bz-attachments.freebsd.org/attachment.cgi?id=200811 Where Max also says it works. Thanks to Dimitry Andric cc'd for the patch, I hope it gets commited. Cheers, Julian -- Julian Stacey, Computer Consultant Sys.Eng. BSD Linux Unix, Munich Aachen Kent First referendum stole 700,000 votes from Brits in EU; 3,700,000 globaly. Lies criminal funded; jobs pound & markets down. 1.9M new voters 1.3M dead. Email MP: "A new referendum will buy UK & EU more time (Art 50.3), to avoid a hard crash, & consider all options." http://berklix.org/brexit/#mp