Public bug reported:

--
/<<PKGBUILDDIR>>/mapshape.c: In function ‘msShapefileOpenHandle’:
/<<PKGBUILDDIR>>/mapshape.c:1755:3: error: implicit declaration of function 
‘strlcpy’; did you mean ‘strncpy’? [-Werror=implicit-function-declaration]
 1755 |   strlcpy(shpfile->source, filename, sizeof(shpfile->source));
      |   ^~~~~~~
      |   strncpy
/<<PKGBUILDDIR>>/mapshape.c: In function ‘msShapefileOpen’:
/<<PKGBUILDDIR>>/mapshape.c:1841:3: error: implicit declaration of function 
‘strlcat’; did you mean ‘strncat’? [-Werror=implicit-function-declaration]
 1841 |   strlcat(dbfFilename, ".dbf", bufferSize);
      |   ^~~~~~~
      |   strncat
--
See the build log[1]

strlcpy/strlcat function prototype is enabled in string.h when __USE_MISC macro 
is defined. 
strlcpy/strlcat functions belong to a set of functions declared on BSD 
systems[2]

[1] 
https://launchpadlibrarian.net/720858988/buildlog_ubuntu-noble-armhf.mapserver_8.0.1-4build3_BUILDING.txt.gz
[2] https://linux.die.net/man/3/strlcat

** Affects: mapserver (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2058864

Title:
  mapserver fails to build on armhf due to implicit declaration of
  strlcpy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mapserver/+bug/2058864/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to