From owner-freebsd-ports@freebsd.org Thu Aug 23 16:37:59 2018 Return-Path: Delivered-To: freebsd-ports@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 3259B10922B1 for ; Thu, 23 Aug 2018 16:37:59 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88A8479B26 for ; Thu, 23 Aug 2018 16:37:58 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w7NGHamW085379 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Thu, 23 Aug 2018 18:17:38 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w7NGHavW002043 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 23 Aug 2018 18:17:36 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id w7NGHZCr002042 for freebsd-ports@freebsd.org; Thu, 23 Aug 2018 18:17:35 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Thu, 23 Aug 2018 18:17:35 +0200 From: Wolfgang Zenker To: freebsd-ports@freebsd.org Subject: Re: databases/py-mysqlclient and others fail to build after update of mariadb100-client Message-ID: <20180823161735.GA1606@lyxys.ka.sub.org> References: <20180810122937.GA2374@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180810122937.GA2374@lyxys.ka.sub.org> Organization: private site User-Agent: Mutt/1.10.1 (2018-07-13) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Thu, 23 Aug 2018 18:17:38 +0200 (CEST) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 16:37:59 -0000 Hi, * Wolfgang Zenker [180810 14:29]: > the immediate reason for the build failure appears to be a weird option > "-l-pthread" in the cc invocation: > ------------------------ > -- snip --- > building '_mysql' extension > creating build/temp.freebsd-11.1-RELEASE-p12-amd64-2.7 > cc -DNDEBUG -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -fPIC -Dversion_info=(1,3,12,'final',0) -D__version__=1.3.12 -I/usr/local/include/mysql -I/usr/local/include/mysql/.. -I/usr/local/include/python2.7 -c _mysql.c -o build/temp.freebsd-11.1-RELEASE-p12-amd64-2.7/_mysql.o > cc -shared -fstack-protector -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG build/temp.freebsd-11.1-RELEASE-p12-amd64-2.7/_mysql.o -L/usr/local/lib/mysql -L/usr/local/lib -L/usr/local/lib -lmysqlclient_r -l-pthread -lz -lm -lexecinfo -lssl -lcrypto -lpython2.7 -o build/lib.freebsd-11.1-RELEASE-p12-amd64-2.7/_mysql.so > /usr/bin/ld: cannot find -l-pthread > cc: error: linker command failed with exit code 1 (use -v to see invocation) > error: command 'cc' failed with exit status 1 > *** Error code 1 > ------------------------ > As the port itself has not changed for several weeks, the real problem > must be somewhere else, probably in the mariadb port? > Any idea where this weird lib parameter comes from and how / where to > fix it? the problem is in databases/mariadb100-client, which creates a mysql_config script with the weird lib parameter. I have filed PR #230839 Wolfgang