尝试构建 Debian 软件包时出现问题

尝试构建 Debian 软件包时出现问题

嘿,

我正在尝试使用 make 命令构建一个包,但出现以下错误:

  dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libcrypto.so.1.1 (used by debian/sgx-aesm-service/opt/intel/sgx-aesm-
  service/aesm/bundles/liblinux_network_service_bundle.so) Hint: check if the library
    actually comes from a package. dh_shlibdeps: dpkg-shlibdeps -Tdebian/sgx-aesm-service.substvars
   -l/home/kleir/linux-sgx/build/linux debian/sgx-aesm-service/opt/intel/sgx-aesm-service/aesm/liboal.so debian/sgx-aesm-service/opt/intel/sgx-aesm-service/aesm/aesm_service 
debian/sgx-aesm-service/opt/intel/sgx-aesm-service/aesm/liburts_internal.so debian/sgx-aesm-service/opt/intel/sgx-aesm-service/aesm/bundles/
 liblinux_network_service_bundle.so debian/sgx-
aesm-service/opt/intel/sgx-aesm-service/aesm/libipc.so debian/sgx-aesm- 
service/opt/intel/sgx-aesm-service/aesm/libutils.so debian/sgx-aesm-service/opt/intel/sgx- 
aesm-service/aesm/libCppMicroServices.so.4.0.0 returned exit code 2 dh_shlibdeps:
Aborting due to earlier error debian/rules:11: recipe for target 'override_dh_shlibdeps' 
failed make[2]: *** [override_dh_shlibdeps] Error 255 make[2]: Leaving directory '/home/kleir/linux-sgx/linux/installer/deb/sgx-aesm-service/sgx-aesm-service-2.10.100.2
' debian/rules:8: recipe for target 'binary' failed make[1]: *** [binary] Error 2 make[1]:   
Leaving directory '/home/kleir/linux-sgx/linux/installer/deb/sgx-aesm-service/sgx-aesm-service-2.10.100.2' 
dpkg-buildpackage: error: debian/rules binary subprocess returned exit 
status 2 Makefile:123: recipe for target 'deb_sgx_aesm_service' failed make: *** [deb_sgx_aesm_service] Error 2

问题来自 sgx-aesm-service 的 debian 包,我检查了文件rule,它看起来像:

 1  #!/usr/bin/make -f
 2  # -*- makefile -*-
   
 3  # Uncomment this to turn on verbose mode.
 4  #export DH_VERBOSE=1
   
 5  %:
 6      dh $@
   
 7  override_dh_shlibdeps:
 8      dh_shlibdeps -l $(LINUX_BUILD_DIR)

我尝试将此文件合并为:

 1  #!/usr/bin/make -f
 2  # -*- makefile -*-
   
 3  # Uncomment this to turn on verbose mode.
 4  #export DH_VERBOSE=1
   
 5  %:
 6      dh $@
   
 7  override_dh_shlibdeps:
 8      dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

我仍然得到与上面相同的错误。我的发行版是ubuntu18.04

libcrypto.so.1.1我安装的时候已经安装了openssl但也可以运行以下命令:

apt-get install libssl-dev

得到sudo许可。

我尝试解决这个问题已经超过一天了,但找不到任何与我的问题相关的解决方案。有没有什么解决方案可以帮助我解决这个问题?

相关内容