Skip to content

Compilation issues on Ubuntu 22.04 cells #733

Open
@amhuber

Description

@amhuber

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?
API 2.195.0 / CLI v8.6.1

What version of the buildpack you are using?
Any

If you were attempting to accomplish a task, what was it you were attempting to do?
Trying to stage apps that use the xmlsec package which requires binary compilation. Using the following config along with the APT buildpack to install the necessary components:

apt.yml

---
packages:
- libxml2-dev
- libxmlsec1-dev
- libxmlsec1-openssl

requirements.txt

xmlsec

This being done on cells using the jammy stemcell but still using cflinuxfs3.

What did you expect to happen?
Compilation should succeed and staging should work. We've tried multiple versions of the buildpack and multiple Python versions.

What was the actual behavior?
Getting a compilation error:

   /usr/bin/ld: /tmp/contents2936741549/deps/0/apt/usr/lib/x86_64-linux-gnu/libxml2.a(tree.o): relocation R_X86_64_PC32 against symbol `xmlMalloc' can not be used when making a shared object; recompile with -fPIC

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📝 Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions