Bug#1067651: mapserver fails to build on armhf in Ubuntu due to implicit declaration of strlcpy

Vladimir Petko vladimir.petko at canonical.com
Mon Mar 25 09:20:12 GMT 2024


Hi,

Thank you!!!

I've made a small change to the patch: used -D_DEFAULT_SOURCE[1] to
avoid the deprecation warning. I have tested noble and sid build with
the attached patch.

Best Regards,
 Vladimir.
[1] https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

On Mon, Mar 25, 2024 at 9:57 PM Sebastiaan Couwenberg
<sebastic at xs4all.nl> wrote:
>
> On 3/25/24 9:25 AM, Vladimir Petko wrote:
> >   strlcpy and strlcat were introduced in glibc 2.38[1]. At the moment
> > Ubuntu noble has 2.39  and Debian unstable  - 2.37.
>
> Can you try the attached patch which patches CMakeLists.txt to add the
> definition when strlcat/strlcpy are found on Linux?
>
> Kind Regards,
>
> Bas
>
> --
>   GPG Key ID: 4096R/6750F10AE88D4AF1
> Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-strlcat.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240325/461f1d82/attachment.bin>


More information about the Pkg-grass-devel mailing list