AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1284873
Accepted
Shadow
Shadow
Asked: 2020-10-19 12:37:29 +0800 CST2020-10-19 12:37:29 +0800 CST 2020-10-19 12:37:29 +0800 CST

使用 linuxthreads 编译 glibc 2.3

  • 772

我正在尝试使用插件 linuxthreads ( https://ftp.gnu.org/gnu/glibc/编译 glibc 2.3 ( https://ftp.gnu.org/gnu/glibc/glibc-2.3.tar.gz ) glibc-linuxthreads-2.3.tar.gz)在 ubuntu 18.04 下。自述文件的要求是:

  • gcc (3.2 或更新)
  • GNU make 版本 3.79 或更新版本
  • binutils 2.10.1 或更高版本
  • 2.2 内核头文件

我应该安装较旧的发行版还是可以在较新的发行版上执行此任务。非常感谢任何建议或指示。

我可以使用支持 linuxthreads 的最新版本,即 glibc 2.5。我选择了 2.3,因为我已经阅读了 README。

到目前为止,我设法安装了 gcc 3.3。但我坚持尝试安装 gnu make 3.x(3.82 或 3.79)。

CC=gcc-3.3 ./configure --enable-add-ons=linuxthreads --prefix=<mypath>/glibc
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking sysdep dirs... sysdeps/x86_64/elf linuxthreads/sysdeps/unix/sysv/linux/x86_64 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking build system type... x86_64-unknown-linux-gnu
checking for gcc... gcc-3.3
checking version of gcc-3.3... 3.3.6, ok
checking for gnumake... no
checking for gmake... no
checking for make... no
configure: error: 
*** These critical programs are missing or too old: make
*** Check the INSTALL file for required versions.

make 必须低于版本 4。

compiling make glibc 18.04
  • 1 1 个回答
  • 780 Views

1 个回答

  • Voted
  1. Best Answer
    Shadow
    2020-11-09T18:34:29+08:002020-11-09T18:34:29+08:00

    最后我设法用 linuxthreads 编译 glibc。我将发布有关如何执行此操作的步骤:

    我使用 Ubuntu 6.06.2 LTS (Dapper Drake)

    现场 cd ubuntu dapper

    修改 /etc/apt/source.list

    deb http://archive.ubuntu.com/ubuntu dapper main restricted 
    deb-src http://archive.ubuntu.com/ubuntu dapper main restricted 
    ...
    deb http://security.ubuntu.com/ubuntu dapper-security main restricted 
    deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
    

    至

    deb http://old-releases.ubuntu.com/ubuntu dapper main restricted
    deb-src http://old-releases.ubuntu.com/ubuntu dapper main restricted
    ...
    #deb http://security.ubuntu.com/ubuntu dapper-security main restricted
    #deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
    

    然后

    sudo apt-get update
    sudo apt-get install gcc g++ make
    

    下载并解压:

    glibc 2.3.6

    利宾 2.3.6

    linuxthreads 2.3.6

    将插件 linuxthreads、linuxthreads_db 和 libidn 复制到文件夹 glibc-2.3.6

    创建一个构建文件夹

    mkdir build && cd build
    ../glibc-2.3.6/configure --prefix=/home/ubuntu/glib --enable-add-ons=libio,libidn,linuxthreads --without-__thread
    make
    make install
    

    检查 libc.so.6 是否真的有插件。

    运行可共享对象 /home/ubuntu/glib/lib/libc.so.6

    你会得到这个输出

    带有 linux 线程的 libc

    • 0

相关问题

  • 我可以在不重新编译源代码的情况下重建包吗?

  • 如何在没有 sudo 权限的情况下构建应用程序?

  • 为 i7 处理器编译内核的最佳方法是什么?

  • 如何将具有依赖项的包上传到我的 PPA?

  • 如何让 .so 文件显示在包中?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve