From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 10:15:07 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09909C1D for ; Wed, 16 Apr 2014 10:15:07 +0000 (UTC) Received: from keptprivate.com (keptprivate.com [38.117.1.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.keptprivate.com", Issuer "Go Daddy Secure Certification Authority" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1AC51820 for ; Wed, 16 Apr 2014 10:15:06 +0000 (UTC) Received: (qmail 6948 invoked by uid 89); 16 Apr 2014 10:10:09 -0000 Received: from (HELO ) (katmai@keptprivate.com) by keptprivate.com with ESMTPA; 16 Apr 2014 10:10:09 -0000 Message-ID: <534E5702.6040601@keptprivate.com> Date: Wed, 16 Apr 2014 12:10:10 +0200 From: Stefanita Rares Dumitrescu User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Thunderbird/28.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: configure: error: C compiler cannot create executables Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2014 10:15:07 -0000 Hi guys, i have a problem over here. I can't upgrade any packages because i am getting "configure: error: C compiler cannot create executables" Here's the part where it fails from config.log. configure:3448: checking whether the C compiler works configure:3470: cc -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wl,-rpath,/usr/lib:/usr/local/lib -pthread conftest.c -L/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -pthread >&5 /usr/lib/libpthread.so: undefined reference to `__elf_phdr_match_addr@FBSDprivate_1.0' configure:3474: $? = 1 configure:3512: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define CANONICALIZATION_FOR_MATHN 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3517: error: in `/usr/ports/lang/ruby19/work/ruby-1.9.3-p484': configure:3520: error: C compiler cannot create executables See `config.log' for more details The thing with this system is: i was using a custom kernel, and i tried to upgrade to freebsd 8.4 from 8.3. I didn't realise that the kernel did not get upgraded after the freebsd-update utility ran, and i am still running the 8.3 kernel but seemingly on a 8.4 system. I can't recompile world/kernel right now because it errors out at pthreads. Do you have any idea on what could i do to get the system back in shape ? The thing is i am cautious with this, since it's a production server. The thing is i have upgraded about 13 other machines from either 8.3 to 8.4 or 9.0->9.2 without issues, and only this one borked out.