https://bugzilla.novell.com/show_bug.cgi?id=730203
https://bugzilla.novell.com/show_bug.cgi?id=730203#c0
Summary: OpenSUSE build fails with "implicit-fortify-decl"
Classification: openSUSE
Product: openSUSE.org
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: BuildService
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: towo@towo.net
QAContact: adrian@suse.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.19)
Gecko/20110420 SeaMonkey/2.0.14
With a SUSE target, building my package fails with
I: Program is using implicit definitions of special functions.
these functions need to use their correct prototypes to allow
the lightweight buffer overflow checking to work.
- Implicit memory/string functions need #include .
- Implicit *printf functions need #include .
- Implicit *printf functions need #include .
- Implicit *read* functions need #include .
- Implicit *recv* functions need #include .
E: mined implicit-fortify-decl textfile.c:1836, 1849
Although it remains unclear why the build service would need to enforce strict
declarations, this can be handled in general. However:
My package does not use sockets, and there is not a single "recv" anywhere in
the sources - so what's the matter here?!? And how can more details about the
issue be retrieved??
The textfile.c contains this:
static int getsymboliclink (name, target, size)
char * name;
char * target;
int size;
{ <------------------------ THIS IS LINE 1836 <-------------------
int ret = readlink (name, target, size - 1);
if (ret >= 0) {
target [ret] = '\0';
}
return ret;
}
is included.
So what's up?
Reproducible: Always
Steps to Reproduce:
1. Build package for OpenSUSE target.
2. Check error log
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=mined&project=home%3Atowo2%3Amined&repository=openSUSE_Factory
3. Stay puzzled.
Actual Results:
Fails.
Expected Results:
Should build, or tell me why it doesn't.
I consider this one critical too, because there really is no obvious reason and
no hint at all what could be done.
Also there is no documentation to be found on "implicit-fortify-decl" -
what it means (which can be guessed), why it's required, and what can be done.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.