Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 11: building with gcc and perl support : undefined reference to BZ2_bzerror #6777

Closed
hakonhagland opened this issue Oct 11, 2023 · 1 comment

Comments

@hakonhagland
Copy link
Contributor

hakonhagland commented Oct 11, 2023

ImageMagick version

7.1.1

Operating system

Windows

Operating system, version and so on

MSYS2

Description

Trying to build on Windows 11 with gcc and perl version 5.38.0, the linker gives undefined reference to BZ2_bzerror when linking MagickCore/libMagickCore-7.Q16HDRI.la.

Steps to reproduce:

Install Strawberry Perl 5.38.0

Go to: https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases

Install MSYS2

Install ImageMagick

  • In the MSYS2 terminal window
$ git clone --depth=1 https://github.com/ImageMagick/ImageMagick
$ cd ImageMagick
$ export PATH=/c/Strawberry/c/bin:$PATH
$ ./configure --with-perl=/c/Strawberry/perl/bin/perl.exe prefix=/c/Strawberry/c CPPFLAGS="-IC:/Strawberry/c/include -IC:/Strawberry/c/include/ImageMagick-7" LDFLAGS="-LC:/Strawberry/c/lib" 2>&1 | tee configure_log.txt
$ make 2>&1 | tee make_log.txt
[...]
  CC       coders/MagickCore_libMagickCore_7_Q16HDRI_la-jpeg.lo
  CC       filters/MagickCore_libMagickCore_7_Q16HDRI_la-analyze.lo
  CCLD     MagickCore/libMagickCore-7.Q16HDRI.la
C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: MagickCore\\.libs\\libMagickCore_7_Q16HDRI_la-blob.o: in function `EOFBlob':
C:\msys2\home\hakon\ImageMagick/MagickCore/blob.c:1270: undefined reference to `BZ2_bzerror'
[...]

The complete log files from the build: configure_log.txt and make_log.txt

See also #6766

Steps to Reproduce

See description

Images

No response

@hakonhagland hakonhagland changed the title Windows 11: building with gcc and perl support : undefined reference to BZ2_bzerror'` Windows 11: building with gcc and perl support : undefined reference to BZ2_bzerror Oct 11, 2023
@dlemstra
Copy link
Member

This looks like a problem with your include paths. Changing this to a discussion since this is not a general issue.

@ImageMagick ImageMagick locked and limited conversation to collaborators Jan 30, 2024
@dlemstra dlemstra converted this issue into discussion #7080 Jan 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

2 participants