sys/endian.h: No such file or directory

オープン
#522 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
c

調査の方向性

Search the C sources for sys/endian.h (for example with grep -rn sys/endian.h) to find every include site, then check how the configure script handles endianness headers. The proposed change is to include the POSIX endian.h where the platform provides it. Done means the include resolves on a non-Linux target and the existing build still compiles on Linux, which you can check by running configure and make in the default setup.

索引モデルが issue の本文から書いたものです。

説明

It seems that GNU/Hurd does not have sys/endian.h, this could probably be fixed by instead using endian.h provided by POSIX. The Hurd porting guidelines seem to agree with this. I will make a pull request to go along with this.

configured with:

configure
    --prefix=/usr \
    --build=x86_64-pc-linux-gnu \
    --host=i686-gnu \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --datadir=/usr/share \
    --sysconfdir=/etc \
    --localstatedir=/var/lib \
    --datarootdir=/usr/share \
    --disable-dependency-tracking \
    --disable-silent-rules \
    --disable-static \
    --docdir=/usr/share/doc/alsa-lib-1.2.16.1 \
    --htmldir=/usr/share/doc/alsa-lib-1.2.16.1/html \
    --with-sysroot=/usr/i686-gnu \
    --libdir=/usr/lib \
    --disable-maintainer-mode \
    --disable-resmgr \
    --enable-aload \
    --enable-rawmidi \
    --enable-seq \
    --enable-shared \
    --enable-thread-safety \
    --disable-python \
    --without-debug
主要言語
C
スター
501
フォーク
227
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alsa-project/alsa-lib のほかの issue

alsa-project/alsa-lib の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。