[Bug 288845] net/samba420 build errors with DEVELOPER config option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Aug 2025 16:37:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288845
Bug ID: 288845
Summary: net/samba420 build errors with DEVELOPER config option
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: samba@FreeBSD.org
Reporter: viktor.stujber+freebsd-bugs_v4CCPfay@gmail.com
Assignee: samba@FreeBSD.org
Flags: maintainer-feedback?(samba@FreeBSD.org)
Needed to debug samba so I tried using the DEVELOPER build option and turned
all others off. Only added WITH_DEBUG=yes and STRIP= to makefile. I have worked
around all of these using quick & dirty edits, and figured I'd post it in case
it's of any value. Maybe some of these can be submitted upstream if they're
real.
> yywrap ()
error: a function declaration without a prototype is deprecated in all versions
of C [-Werror,Wstrict-prototypes]
third_party/heimdal/lib/com_err/lex.l
third_party/heimdal/lib/asn1/lex.l
third_party/heimdal/lib/hx509/sel-lex.l
> #ifdef FREEBSD
>| int s0, s1; s0 = s1 = 0;
>| int s0, s1, s2, s3; s0 = s1 = s2 = s3 = 0;
error: mixing declarations and code is incompatible with standards before C99
[-Werror,-Wdeclaration-after-statement]
cause:
https://cgit.freebsd.org/ports/tree/net/samba420/files/0008-Brute-force-work-around-usage-of-Linux-specific-m-fl.patch
hotfix: add dummy scope around patch
source4/libcli/ldap/ldap_client.c:410
libcli/http/http.c:181
libcli/http/http.c:374
>| uint16_t flags = freebsd_map_attrname(name);
>| int fd = fsp_get_pathref_fd(fsp);
error: mixing declarations and code is incompatible with standards before C99
[-Werror,-Wdeclaration-after-statement]
cause:
https://cgit.freebsd.org/ports/tree/net/samba420/files/0027-Add-VFS-module-vfs_freebsd-that-implements-FreeBSD-s.patch
fix: adjust patch code to be valid C'89
source3/modules/vfs_freebsd.c:140
source3/modules/vfs_freebsd.c:194
> if (snprintf(tmp, 3, "foo%d", 9) != 4) {
error: 'snprintf' will always be truncated; specified size is 3, but format
string expands to at least 5 [-Werror,-Wformat-truncation]
cause: deliberately induced truncation not excluded from compiler warning
checks
lib/replace/tests/testsuite.c:387
> const LargestIntegralType
error: unknown type name 'LargestIntegralValue'
cause: some sort of failure to import definition from <cmocka.h>
source4/auth/tests/sam.c:85
source4/auth/tests/heimdal_unwrap_des.c:114
source4/auth/tests/heimdal_unwrap.des.c:174
> make install
pkg-static: Unable to access file
/usr/ports/net/samba420/work/stage/usr/local/lib/shared-modules/*: No such file
or directory
auth/skel.so
perfcount/test.so
vfs/fake_dfq.so
vfs/fake_acls.so
vfs/error_inject.so
vfs/delay_inject.so
--
You are receiving this mail because:
You are the assignee for the bug.