Skip to content

debain trixie / gcc 14 build erros #9

@geosone

Description

@geosone

make[3]: Entering directory '/build/freenx-server-2.1.3~20250808153929.5+trixie/nxviewer-passwd/libvncauth' gcc -g -O2 -fno-strict-aliasing -I. -I../include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -Wdate-time -D_FORTIFY_SOURCE=2 -c -o vncauth.o vncauth.c In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from vncauth.c:24: /usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ vncauth.c: In function 'vncEncryptAndStorePasswd': vncauth.c:60:13: error: implicit declaration of function 'vncEncryptAndStorePasswd2'; did you mean 'vncEncryptAndStorePasswd'? [-Wimplicit-function-declaration] 60 | return (vncEncryptAndStorePasswd2(passwd, NULL, fname) == 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | vncEncryptAndStorePasswd vncauth.c: In function 'vncDecryptPasswdFromFile': vncauth.c:131:13: error: implicit declaration of function 'vncDecryptPasswdFromFile2'; did you mean 'vncDecryptPasswdFromFile'? [-Wimplicit-function-declaration] 131 | if (vncDecryptPasswdFromFile2(fname, passwd, NULL) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | vncDecryptPasswdFromFile vncauth.c: In function 'vncRandomBytes': vncauth.c:211:28: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 211 | seed = (unsigned int)time(0) ^ (unsigned int)getpid(); | ^~~~ vncauth.c:32:1: note: 'time' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>' 31 | #include <d3des.h> +++ |+#include <time.h> 32 | make[3]: *** [<builtin>: vncauth.o] Error 1 make[3]: Leaving directory '/build/freenx-server-2.1.3~20250808153929.5+trixie/nxviewer-passwd/libvncauth' make[2]: *** [Makefile:1057: all] Error 2 make[2]: Leaving directory '/build/freenx-server-2.1.3~20250808153929.5+trixie/nxviewer-passwd' make[1]: *** [Makefile:26: all] Error 1 make[1]: Leaving directory '/build/freenx-server-2.1.3~20250808153929.5+trixie' dh_auto_build: error: make -j1 returned exit code 2 make: *** [debian/rules:6: binary] Error 255

the buidl fails under gcc 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions