-
Notifications
You must be signed in to change notification settings - Fork 299
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
Build Failure - implicit declaration of function ‘strlcpy’ #324
Comments
That's pretty weird to segment the declaration into a bsd .h file without segmenting the function itself into a separate library. If configure had not found that strlcpy() existed, rsync would have supplied its own code with its own declaration. I've made configure look for bsd/strings.h and have rsync.h optionally include it. Please test that the latest code in git works for you. |
orbea
added a commit
to orbea/gentoo
that referenced
this issue
Jun 19, 2022
Upstream-issue: RsyncProject/rsync#324 Upstream-commit: 3592ac3c025d ("Include bsd/strings.h if it exists") Signed-off-by: orbea <orbea@riseup.net>
gentoo-bot
pushed a commit
to gentoo/gentoo
that referenced
this issue
Jun 20, 2022
Upstream-issue: RsyncProject/rsync#324 Upstream-commit: 3592ac3c025d ("Include bsd/strings.h if it exists") Signed-off-by: orbea <orbea@riseup.net> Closes: #25982 Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS: Gentoo
rsync: 6f35553
Starting with version
3.2.4
the build fails.In version
3.2.3
this was only a warning and was not a hard failure.Since
strlcpy
is a non-standard function the fix is to usebsd/string.h
instead of the regularstring.h
.Also linking with
-lbsd
might be needed?The configure
strlcpy
check probably passes because it lacks-Werror
and thus only emits a warning. Maybe its more obvious to someone familiar with rsync how to modify the build system more cleanly?Full build log: rsync.log
The text was updated successfully, but these errors were encountered: