From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 6B0BA3858D33 for ; Thu, 10 Aug 2023 00:29:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B0BA3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9fa64db41so5910591fa.1 for ; Wed, 09 Aug 2023 17:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691627379; x=1692232179; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DbWvRnb4V13YbWH8jL0E0O+duhq3eVPHo7KqtpEZEt8=; b=RioC9p+Ifze0Z1y1YJO8FyFArhCYPmMYM/8SlK7+p3kdD+A82kbHZ7bV7gJl6vl7lb iBdRggbPDGpFUxZNSITjV9zDuK74OY4Vrw0q4wERteh22nQoUpT9cHAmS0lI/aEKVXXE FZFMO9/txQncA+mQ+wws5eibIGmWl86uRIFyfyKFZ4Hp7iR87PXMs9C+MbZbNSMEeAOH dMVlsEXxGss4A7sBD6Bi34E349klYMoRmXNyEMRsYxd12yGjl4lkDs+RFYwYKkPpaSlq Sjm9lTMju8uM/2SeGtx6m8MFWsJDFSk5NOzgp4XaLgVYG5F+FBuoNBZJ6z4qD47h1nF3 rWzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691627379; x=1692232179; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DbWvRnb4V13YbWH8jL0E0O+duhq3eVPHo7KqtpEZEt8=; b=EA4zwmTSZ73qwJvGdSsitguscBnB4WO4M7VOQl0MORAPYOOgZqwrVOy7dXqofN01Nx Vt5ph/I0o4dBsZGTg0p46ZrfK2g90Q57XzNKKGE9MAeAXv7KzcDHfj2znGe+RdxLdjKG /yeG5m+zFfVJwXf0/36GWNy4noKvfLIv9IMLVwtPfELDU8yjOYRPGlJTE6eSCF1rf4GS D8vDyxH/3w72rq+rkWTrYpN8WCoczyFl8GgnKHYr0So944X1uxdCz+3/0KmiUozVlF08 HBcWcRRDALuvwNTtfIxg+1LafJ7FD41Fixmj4h+7jAkkc6Ykabw7DO/tc+e/qXNsjWMD +4Yg== X-Gm-Message-State: AOJu0YzPBxY5PrNe5UyQGghopWtUSCYPiGrMHD3rnMmI11s2blEwvNYg sQOCqp/YdyNvnZYfa3HFhcQC1JnLhR3HhtdQurmB5eQr6WI= X-Google-Smtp-Source: AGHT+IFxLn/yhELGetu+DSAvYWPL28tAlvH84VVVGSuTVZgNt7eIEF3tSF0F1xL9TEuQbMNNRaDuSZyo96uj0328uqg= X-Received: by 2002:a2e:910a:0:b0:2b6:d13a:8e34 with SMTP id m10-20020a2e910a000000b002b6d13a8e34mr621806ljg.46.1691627379261; Wed, 09 Aug 2023 17:29:39 -0700 (PDT) MIME-Version: 1.0 From: Alberto Mijares Date: Wed, 9 Aug 2023 20:29:27 -0400 Message-ID: Subject: Compiling glibc 2.14.1 on CentOS 6.10 To: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello all, This is my first post to this list and I'm not a developer so please forgive me if I look like a newbie. I was assigned with the task to compile PHP 5.6 with an up-to-date OpenSSL version for CentOS 6.10 so they can integrate their legacy app with a third-party service. It has been a long journey and now I'm very close. Right now I'm trying to compile cmake. which is a requirement for brotli and this one for Apache -> mod_php56. The compilation of cmake fails because it cannot find a reference to sendmmsg, only available since glibc 2.14 (according to a post somewhere). CentOS comes with glibc 2.12. So, that's why I'm trying to compile glibc 2.14.1. I'm using pkgsrc as building framework and after a few patches I managed to get to this point make[2]: Entering directory `/usr/pkgsrc/wip/glibc/work/glibc-2.14.1/elf' cc -L/opt/zvi/gcc7/lib/gcc/x86_64-redhat-linux/7.5.0 -Wl,-R/opt/zvi/gcc7/lib/gcc/x86_64-redhat-linux/7.5.0 -L/opt/zvi/gcc7/lib64 -Wl,-R/opt/zvi/gcc7/lib64 -Wl,-zrelro -L/opt/zvi/lib -L/usr/lib64 -Wl,-R/usr/lib64 -Wl,-R/opt/zvi/lib -nostdlib -nostartfiles -r -o /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/elf/librtld.map.o '-Wl,-(' /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/elf/dl-allobjs.os /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/elf/librtld.mapT /opt/zvi/x86_64-redhat-linux/bin/ld: /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/libc_pic.a(init-first.os):(.data+0x0): multiple definition of `__libc_multiple_libcs'; /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/elf/dl-allobjs.os:(.bss+0xf4): first defined here /opt/zvi/x86_64-redhat-linux/bin/ld: /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/libc_pic.a(dl-addr.os): in function `_dl_addr_inside_object': dl-addr.c:(.text+0x353): multiple definition of `_dl_addr_inside_object'; /usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/elf/dl-allobjs.os:(.text+0x11d2e): first defined here collect2: error: ld returned 1 exit status make[2]: *** [/usr/pkgsrc/wip/glibc/work/glibc-2.14.1/glibc-configure/elf/librtld.map] Error 1 make[2]: Leaving directory `/usr/pkgsrc/wip/glibc/work/glibc-2.14.1/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/usr/pkgsrc/wip/glibc/work/glibc-2.14.1' make: *** [all] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/wip/glibc *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/wip/glibc This is what I'm using: gcc version 7.5.0 (GCC) GNU Make 3.81 GNU ld (GNU Binutils) 2.40 Linux 2.6.32-754.el6.x86_64 pkgsrc-2023Q2 For getting there, I bootstrapped pkgsrc with the system tools and the compiled gcc7. Then, all the packages were made with gcc7 and combo. Any hint, suggestion or advice would be very appreciated. Of course I'm willing to provide more info if needed. Best regards, Alberto Mijares