[MDEV-27680] S3 plugin fails to build on FreeBSD: unable to find library -lcurl Created: 2022-01-30  Updated: 2022-10-24  Resolved: 2022-10-24

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Platform FreeBSD, Storage Engine - S3
Affects Version/s: 10.5, 10.6, 10.7
Fix Version/s: 10.5.18

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Andrew Hutchings
Resolution: Fixed Votes: 0
Labels: None
Environment:

FreeBSD 13



 Description   

10.7 3351dfaab0

[ 66%] Linking CXX shared module ha_s3.so
ld: error: unable to find library -lcurl
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

curl package is installed:

[ec2-user@freebsd ~/cs/mariadb-10.7.2]$ pkg info -l curl | grep -E '.so$|.a$'
	/usr/local/lib/libcurl.a
	/usr/local/lib/libcurl.so



 Comments   
Comment by Andrew Hutchings [ 2022-08-25 ]

Linking issue is due to just trying to link with `-lcurl` instead of the curl library found by CMake.

Fixed in https://github.com/MariaDB/server/pull/2242

Generated at Thu Feb 08 09:54:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.