Bug 2109395 - cyrus-imapd-3.4.3-1.fc37 FTBFS: ld: cannot find -lpcreposix: No such file or directory
Summary: cyrus-imapd-3.4.3-1.fc37 FTBFS: ld: cannot find -lpcreposix: No such file or ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cyrus-imapd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Osvald 🛹
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-07-21 06:57 UTC by Petr Pisar
Modified: 2022-07-21 08:23 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-21 08:23:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2022-07-21 06:57:33 UTC
cyrus-imapd-3.4.3-1.fc37 fails to build in Fedora 37:

make[2]: Entering directory '/builddir/build/BUILD/cyrus-imapd-3.4.3/perl/imap'
rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
gcc   -lpthread -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1  -L/usr/local/lib -fstack-protector-strong  IMAP.o  -o blib/arch/auto/Cyrus/IMAP/IMAP.so ../../perl/.libs/libcyrus.a ../../perl/.libs/libcyrus_min.a \
   -lsasl2 -lssl -lcrypto -lssl -lcrypto -luuid -lz -lpcreposix -lperl   \
  
/usr/bin/ld: cannot find -lpcreposix: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:495: blib/arch/auto/Cyrus/IMAP/IMAP.so] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/cyrus-imapd-3.4.3/perl/imap'

A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/13262133>. This is very probably triggered by upgrading glib2-devel from 2.73.1-2.fc37 to 2.73.2-2.fc37 which moved from PCRE to PCRE2 and stopped pulling in pcre-devel package.

It seems a root cause is that cyrus-imapd is missing a build-time dependency on pcre-devel although it it uses -lpcre linker flag in patch-cyrus-perl-linking patch.

Comment 1 Martin Osvald 🛹 2022-07-21 07:26:25 UTC
Thank you for reporting this.

Yes, I am aware of this and just preparing a new version containing the pcre-devel in BuildRequires

Comment 2 Martin Osvald 🛹 2022-07-21 08:23:22 UTC
Fixed in rawhide:

https://bodhi.fedoraproject.org/updates/FEDORA-2022-38a47fa6ca


Note You need to log in before you can comment on or make changes to this bug.