php / php/php-src

Cannot configure PHP from source to use the desired Kerberos library path

Đang mở
#15,333 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Bug Category: Build System Extension: ldap
Ngôn ngữ chính
C
Star
40.4k
Fork
8.1k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
96

Mô tả

Description

On Oracle Linux 8
I configure, make and make install my Kerberos library as follows

./configure --prefix=/kerberos-1.21.3 --enable-dns-for-realm

The above creates the folder /kerberos-1.21.3/lib with all my libraries in it.

I manually amend all /kerberos-1.21.3/lib/pkgconfig/*.pc files to contain the value libdir=/library

I then relocate an entire copy of the created library folder to my desired library location /library as follows:

cp /kerberos-1.21.3/lib/* /library

I "configure", "make" and "make install" PHP, with configure looking as follows:

env LD_LIBRARY_PATH=/library PKG_CONFIG=/usr/bin/pkg-config PKG_CONFIG_PATH=/library/pkgconfig KERBEROS_LIBS="-L/library -Wl,-rpath,/library" KERBEROS_CFLAGS="-I/kerberos-1.21.3/include" ./configure --prefix=/myphp --with-kerberos

Everything completes as normal.

As can be seen above, the environment I have set is:

  • LD_LIBRARY_PATH=/library
  • PKG_CONFIG_PATH=/library/pkgconfig
  • KERBEROS_LIBS="-L/library -Wl,-rpath,/library"
  • KERBEROS_CFLAGS="-I/kerberos-1.21.3/include"

This points all library information to the /library directory, and only the include header files directory to my original kerberos build location (via KERBEROS_CFLAGS and the /library/pkgconfig/*.pc files includedir= value)

All the documentation I have read says that with my configuration above, running ldd /myphp/bin/php should report as:

libkrb5.so.3 => /library/libkrb5.so.3

but when I run it, for libkrb5.so.3 I get the following:

libkrb5.so.3 => /kerberos-1.21.3/lib/libkrb5.so.3

Why am I getting the wrong -ie. original build - library location? I am literally tearing my hair out with this. Thanks

PHP Version

php 8.2.22

Operating System

Oracle Linux 8.10

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện cấu hình PHP 8.2.22 được báo cáo trên Oracle Linux 8.10 bằng các đường dẫn Kerberos và biến môi trường được cung cấp, sau đó kiểm tra đầu ra của configure và các thư viện được liên kết do ldd /myphp/bin/php báo cáo. Công việc được xem là hoàn tất khi xác định được lý do đường dẫn gốc /kerberos-1.21.3/lib vẫn được giữ lại và xác định được một cách sửa lỗi đã được lập tài liệu hoặc có thể áp dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
php
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.