diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-08 22:41:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 19:22:04 +0100 |
commit | 0f974fd6a5ef3a9ba385e0fd7d891e989972dd7b (patch) | |
tree | e750b12f24d8a8383dbcf357775db40859b19fe9 /meta/recipes-devtools/perl-cross | |
parent | 54dd5c56fc76390bcc02b4d91eec2d8c45b7ae77 (diff) | |
download | poky-0f974fd6a5ef3a9ba385e0fd7d891e989972dd7b.tar.gz |
perl-cross: Correct function signatures in configure_func.sh
There are latent issues in function detection which were succeeding due
to compiler being lenient, but this is fast changing e.g. clang-15 has
turned the -Wimplicit-function-declaration into error which ends up
failing these tests and rightly so. Therefore try to improve the tests
to have proper prototypes known during compilation
(From OE-Core rev: 330163295f14d1b29260059b65f7ec14e8a41e23)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl-cross')
-rw-r--r-- | meta/recipes-devtools/perl-cross/files/0001-configure_func.sh-Add-_GNU_SOURCE-define-and-functio.patch | 485 | ||||
-rw-r--r-- | meta/recipes-devtools/perl-cross/perlcross_1.4.bb | 1 |
2 files changed, 486 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl-cross/files/0001-configure_func.sh-Add-_GNU_SOURCE-define-and-functio.patch b/meta/recipes-devtools/perl-cross/files/0001-configure_func.sh-Add-_GNU_SOURCE-define-and-functio.patch new file mode 100644 index 0000000000..893b55e5ac --- /dev/null +++ b/meta/recipes-devtools/perl-cross/files/0001-configure_func.sh-Add-_GNU_SOURCE-define-and-functio.patch | |||
@@ -0,0 +1,485 @@ | |||
1 | From 65db86f0161c393fd5b082c10837b278adadbff2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 7 Aug 2022 23:57:20 -0700 | ||
4 | Subject: [PATCH] configure_func.sh: Add _GNU_SOURCE define and function | ||
5 | signatures | ||
6 | |||
7 | Modern compilers are getting stricter about include paths and function | ||
8 | signature being known duting compilation e.g. clang-15 now errors out if | ||
9 | a function signature is not found | ||
10 | |||
11 | try.c:1:18: error: call to undeclared function 'getspnam'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | ||
12 | |||
13 | This causes the test of function to fail even though the function is | ||
14 | available in libc. Therefore try to add proper include headers which | ||
15 | define these functions and also define _GNU_SOURCE in every test | ||
16 | since some of GNU/Linux funtions e.g. accept4 are guarged by this define | ||
17 | |||
18 | Upstream-Status: Submitted [https://github.com/arsv/perl-cross/pull/137] | ||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | --- | ||
21 | cnf/configure_func.sh | 41 +++++++++++++++++++++-------------------- | ||
22 | 1 file changed, 21 insertions(+), 20 deletions(-) | ||
23 | |||
24 | --- a/cnf/configure_func.sh | ||
25 | +++ b/cnf/configure_func.sh | ||
26 | @@ -5,6 +5,7 @@ checkfunc() { | ||
27 | mstart "Checking for $2" | ||
28 | if not hinted $1 'found' 'missing'; then | ||
29 | try_start | ||
30 | + try_add '#define _GNU_SOURCE' | ||
31 | funcincludes "$3" "$4" "$includes" | ||
32 | try_add "int main(void) { $2($3); return 0; }" | ||
33 | try_link -O0 -fno-builtin | ||
34 | @@ -42,115 +43,115 @@ checkfunc d_chroot 'chroot' "NULL" 'unis | ||
35 | checkfunc d_chsize 'chsize' "0,0" | ||
36 | checkfunc d_class 'class' | ||
37 | checkfunc d_clearenv 'clearenv' "" 'stdlib.h' | ||
38 | -checkfunc d_closedir 'closedir' "NULL" | ||
39 | -checkfunc d_crypt 'crypt' | ||
40 | +checkfunc d_closedir 'closedir' "NULL" 'dirent.h sys/types.h' | ||
41 | +checkfunc d_crypt 'crypt' "NULL,NULL" 'crypt.h' | ||
42 | checkfunc d_ctermid 'ctermid' | ||
43 | checkfunc d_ctime64 'ctime64' | ||
44 | checkfunc d_cuserid 'cuserid' | ||
45 | -checkfunc d_difftime 'difftime' "0,0" | ||
46 | +checkfunc d_difftime 'difftime' "0,0" 'time.h' | ||
47 | checkfunc d_difftime64 'difftime64' | ||
48 | -checkfunc d_dirfd 'dirfd' | ||
49 | +checkfunc d_dirfd 'dirfd' "NULL" 'dirent.h sys/types.h' | ||
50 | checkfunc d_dladdr 'dladdr' 'NULL, NULL' 'dlfcn.h' | ||
51 | -checkfunc d_dlerror 'dlerror' | ||
52 | -checkfunc d_dlopen 'dlopen' | ||
53 | -checkfunc d_drand48 'drand48' | ||
54 | +checkfunc d_dlerror 'dlerror' "" 'dlfcn.h' | ||
55 | +checkfunc d_dlopen 'dlopen' "NULL,0" "dlfcn.h" | ||
56 | +checkfunc d_drand48 'drand48' "" 'stdlib.h' | ||
57 | checkfunc d_dup2 'dup2' "0,0" 'unistd.h' | ||
58 | checkfunc d_dup3 'dup3' "0,0,0" 'fcntl.h unistd.h' | ||
59 | checkfunc d_duplocale 'duplocale' '0' 'locale.h' | ||
60 | -checkfunc d_eaccess 'eaccess' | ||
61 | -checkfunc d_endgrent 'endgrent' | ||
62 | -checkfunc d_endhent 'endhostent' | ||
63 | -checkfunc d_endnent 'endnetent' | ||
64 | -checkfunc d_endpent 'endprotoent' | ||
65 | -checkfunc d_endpwent 'endpwent' | ||
66 | -checkfunc d_endservent 'endservent' | ||
67 | +checkfunc d_eaccess 'eaccess' "NULL,0" 'unistd.h' | ||
68 | +checkfunc d_endgrent 'endgrent' '' 'grp.h sys/types.h' | ||
69 | +checkfunc d_endhent 'endhostent' "" 'netdb.h' | ||
70 | +checkfunc d_endnent 'endnetent' "" 'netdb.h' | ||
71 | +checkfunc d_endpent 'endprotoent' "" 'netdb.h' | ||
72 | +checkfunc d_endpwent 'endpwent' "" 'sys/types.h pwd.h' | ||
73 | +checkfunc d_endservent 'endservent' "" 'netdb.h' | ||
74 | checkfunc d_fchdir 'fchdir' "0" 'unistd.h' | ||
75 | -checkfunc d_fchmod 'fchmod' "0,0" 'unistd.h' | ||
76 | -checkfunc d_fchmodat 'fchmodat' "0,NULL,0,0" 'unistd.h' | ||
77 | +checkfunc d_fchmod 'fchmod' "0,0" 'unistd.h sys/stat.h' | ||
78 | +checkfunc d_fchmodat 'fchmodat' "0,NULL,0,0" 'unistd.h sys/stat.h' | ||
79 | checkfunc d_fchown 'fchown' "0,0,0" 'unistd.h' | ||
80 | checkfunc d_fcntl 'fcntl' "0,0" 'unistd.h fcntl.h' | ||
81 | checkfunc d_fdclose 'fdclose' | ||
82 | -checkfunc d_ffs 'ffs' 'strings.h' | ||
83 | -checkfunc d_ffsl 'ffsl' 'strings.h' | ||
84 | +checkfunc d_ffs 'ffs' "0" 'strings.h' | ||
85 | +checkfunc d_ffsl 'ffsl' "0" 'strings.h' | ||
86 | checkfunc d_fgetpos 'fgetpos' "NULL, 0" 'stdio.h' | ||
87 | -checkfunc d_flock 'flock' "0,0" 'unistd.h' | ||
88 | +checkfunc d_flock 'flock' "0,0" 'sys/file.h' | ||
89 | checkfunc d_fork 'fork' "" 'unistd.h' | ||
90 | checkfunc d_fp_class 'fp_class' | ||
91 | checkfunc d_fpathconf 'fpathconf' "0,0" 'unistd.h' | ||
92 | -checkfunc d_freelocale 'freelocale' '0' 'locale.h' | ||
93 | -checkfunc d_fseeko 'fseeko' 'NULL,0,0' | ||
94 | -checkfunc d_fsetpos 'fsetpos' 'NULL,0' | ||
95 | -checkfunc d_fstatfs 'fstatfs' | ||
96 | -checkfunc d_fstatvfs 'fstatvfs' | ||
97 | -checkfunc d_fsync 'fsync' | ||
98 | -checkfunc d_ftello 'ftello' | ||
99 | -checkfunc d_futimes 'futimes' | ||
100 | +checkfunc d_freelocale 'freelocale' "0" 'locale.h' | ||
101 | +checkfunc d_fseeko 'fseeko' "NULL,0,0" 'stdio.h' | ||
102 | +checkfunc d_fsetpos 'fsetpos' "NULL,0" 'stdio.h' | ||
103 | +checkfunc d_fstatfs 'fstatfs' "0,NULL" 'sys/vfs.h' | ||
104 | +checkfunc d_fstatvfs 'fstatvfs' "0,NULL" 'sys/statvfs.h' | ||
105 | +checkfunc d_fsync 'fsync' "0" 'unistd.h' | ||
106 | +checkfunc d_ftello 'ftello' "NULL" 'stdio.h' | ||
107 | +checkfunc d_futimes 'futimes' '0,0' 'sys/time.h' | ||
108 | checkfunc d_gai_strerror 'gai_strerror' '0' 'sys/types.h sys/socket.h netdb.h' | ||
109 | -checkfunc d_getaddrinfo 'getaddrinfo' | ||
110 | -checkfunc d_get_current_dir_name 'get_current_dir_name' | ||
111 | -checkfunc d_getcwd 'getcwd' 'NULL,0' | ||
112 | +checkfunc d_getaddrinfo 'getaddrinfo' "NULL,NULL,NULL,NULL" 'sys/types.h sys/socket.h netdb.h' | ||
113 | +checkfunc d_get_current_dir_name 'get_current_dir_name' "" 'unistd.h' | ||
114 | +checkfunc d_getcwd 'getcwd' 'NULL,0' 'unistd.h' | ||
115 | checkfunc d_getespwnam 'getespwnam' | ||
116 | checkfunc d_getfsstat 'getfsstat' | ||
117 | -checkfunc d_getgrent 'getgrent' | ||
118 | -checkfunc d_getgrps 'getgroups' | ||
119 | -checkfunc d_gethbyaddr 'gethostbyaddr' | ||
120 | -checkfunc d_gethbyname 'gethostbyname' | ||
121 | +checkfunc d_getgrent 'getgrent' "" 'sys/types.h grp.h' | ||
122 | +checkfunc d_getgrps 'getgroups' "0,NULL" 'unistd.h' | ||
123 | +checkfunc d_gethbyaddr 'gethostbyaddr' "NULL,0,0" 'netdb.h' | ||
124 | +checkfunc d_gethbyname 'gethostbyname' "NULL" 'netdb.h' | ||
125 | checkfunc d_getnbyaddr 'getnetbyaddr' '0,0' 'netdb.h' | ||
126 | checkfunc d_getnbyname 'getnetbyname' 'NULL' 'netdb.h' | ||
127 | -checkfunc d_gethent 'gethostent' | ||
128 | -checkfunc d_gethname 'gethostname' | ||
129 | -checkfunc d_getitimer 'getitimer' | ||
130 | -checkfunc d_getlogin 'getlogin' | ||
131 | +checkfunc d_gethent 'gethostent' "" 'netdb.h' | ||
132 | +checkfunc d_gethname 'gethostname' "NULL,0" 'unistd.h' | ||
133 | +checkfunc d_getitimer 'getitimer' "0,NULL" 'sys/time.h' | ||
134 | +checkfunc d_getlogin 'getlogin' "" 'unistd.h' | ||
135 | checkfunc d_getmnt 'getmnt' | ||
136 | -checkfunc d_getmntent 'getmntent' | ||
137 | -checkfunc d_getnameinfo 'getnameinfo' | ||
138 | -checkfunc d_getnent 'getnetent' | ||
139 | -checkfunc d_getnetbyaddr 'getnetbyaddr' | ||
140 | -checkfunc d_getnetbyname 'getnetbyname' | ||
141 | -checkfunc d_getpagsz 'getpagesize' | ||
142 | +checkfunc d_getmntent 'getmntent' "NULL" 'stdio.h mntent.h' | ||
143 | +checkfunc d_getnameinfo 'getnameinfo' "NULL,0,NULL,0,NULL,0,0" 'sys/socket.h netdb.h' | ||
144 | +checkfunc d_getnent 'getnetent' "" 'netdb.h' | ||
145 | +checkfunc d_getnetbyaddr 'getnetbyaddr' "0,0" 'netdb.h' | ||
146 | +checkfunc d_getnetbyname 'getnetbyname' "NULL" 'netdb.h' | ||
147 | +checkfunc d_getpagsz 'getpagesize' "" 'unistd.h' | ||
148 | checkfunc d_getpbyaddr 'getprotobyaddr' | ||
149 | -checkfunc d_getpbyname 'getprotobyname' | ||
150 | -checkfunc d_getpbynumber 'getprotobynumber' | ||
151 | -checkfunc d_getpent 'getprotoent' | ||
152 | -checkfunc d_getpgid 'getpgid' | ||
153 | +checkfunc d_getpbyname 'getprotobyname' "NULL" 'netdb.h' | ||
154 | +checkfunc d_getpbynumber 'getprotobynumber' "0" 'netdb.h' | ||
155 | +checkfunc d_getpent 'getprotoent' "" 'netdb.h' | ||
156 | +checkfunc d_getpgid 'getpgid' "0" 'unistd.h' | ||
157 | checkfunc d_getpgrp 'getpgrp' "" 'unistd.h' | ||
158 | checkfunc d_getpgrp2 'getpgrp2' | ||
159 | -checkfunc d_getppid 'getppid' | ||
160 | +checkfunc d_getppid 'getppid' "" 'unistd.h' | ||
161 | checkfunc d_getprior 'getpriority' "0,0" 'sys/time.h sys/resource.h' | ||
162 | checkfunc d_getprpwnam 'getprpwnam' | ||
163 | -checkfunc d_getpwent 'getpwent' | ||
164 | +checkfunc d_getpwent 'getpwent' "" 'sys/types.h pwd.h' | ||
165 | checkfunc d_getsbyaddr 'getservbyaddr' | ||
166 | -checkfunc d_getsbyname 'getservbyname' | ||
167 | -checkfunc d_getsbyport 'getservbyport' | ||
168 | -checkfunc d_getsent 'getservent' | ||
169 | -checkfunc d_setsent 'setservent' | ||
170 | -checkfunc d_endsent 'endservent' | ||
171 | -checkfunc d_getspnam 'getspnam' | ||
172 | -checkfunc d_gettimeod 'gettimeofday' 'NULL,NULL' | ||
173 | +checkfunc d_getsbyname 'getservbyname' "NULL,NULL" 'netdb.h' | ||
174 | +checkfunc d_getsbyport 'getservbyport' "0,NULL" 'netdb.h' | ||
175 | +checkfunc d_getsent 'getservent' "" 'netdb.h' | ||
176 | +checkfunc d_setsent 'setservent' "0" 'netdb.h' | ||
177 | +checkfunc d_endsent 'endservent' "" 'netdb.h' | ||
178 | +checkfunc d_getspnam 'getspnam' "NULL" 'shadow.h' | ||
179 | +checkfunc d_gettimeod 'gettimeofday' 'NULL,NULL' 'sys/time.h' | ||
180 | checkfunc d_gmtime64 'gmtime64' | ||
181 | -checkfunc d_hasmntopt 'hasmntopt' | ||
182 | +checkfunc d_hasmntopt 'hasmntopt' "NULL,NULL" 'stdio.h mntent.h' | ||
183 | checkfunc d_htonl 'htonl' "0" 'stdio.h sys/types.h netinet/in.h arpa/inet.h' | ||
184 | -checkfunc d_ilogbl 'ilogbl' | ||
185 | +checkfunc d_ilogbl 'ilogbl' "0.0" 'math.h' | ||
186 | checkfunc d_index 'index' "NULL,0" 'string.h strings.h' | ||
187 | -checkfunc d_inetaton 'inet_aton' | ||
188 | -checkfunc d_inetntop 'inet_ntop' | ||
189 | -checkfunc d_inetpton 'inet_pton' | ||
190 | +checkfunc d_inetaton 'inet_aton' "NULL,NULL" 'sys/socket.h netinet/in.h arpa/inet.h' | ||
191 | +checkfunc d_inetntop 'inet_ntop' "0,NULL,NULL,0" 'arpa/inet.h' | ||
192 | +checkfunc d_inetpton 'inet_pton' "0,NULL,NULL" 'arpa/inet.h' | ||
193 | checkfunc d_isascii 'isascii' "'A'" 'stdio.h ctype.h' | ||
194 | checkfunc d_isblank 'isblank' "' '" 'stdio.h ctype.h' | ||
195 | -checkfunc d_killpg 'killpg' | ||
196 | +checkfunc d_killpg 'killpg' "0,0" 'signal.h' | ||
197 | checkfunc d_lchown 'lchown' "NULL, 0, 0" 'unistd.h' | ||
198 | -checkfunc d_link 'link' 'NULL,NULL' | ||
199 | -checkfunc d_linkat 'linkat' '0,NULL,0,NULL,0' | ||
200 | +checkfunc d_link 'link' 'NULL,NULL' 'unistd.h' | ||
201 | +checkfunc d_linkat 'linkat' '0,NULL,0,NULL,0' 'unistd.h' | ||
202 | checkfunc d_localtime64 'localtime64' | ||
203 | checkfunc d_localeconv_l 'localeconv_l' 'NULL' 'locale.h' | ||
204 | -checkfunc d_locconv 'localeconv' | ||
205 | -checkfunc d_lockf 'lockf' | ||
206 | -checkfunc d_lstat 'lstat' | ||
207 | -checkfunc d_madvise 'madvise' | ||
208 | +checkfunc d_locconv 'localeconv' "" 'locale.h' | ||
209 | +checkfunc d_lockf 'lockf' "0,0,0" 'unistd.h' | ||
210 | +checkfunc d_lstat 'lstat' "NULL, NULL" 'sys/stat.h' | ||
211 | +checkfunc d_madvise 'madvise' "NULL,0,0" 'sys/mman.h' | ||
212 | checkfunc d_malloc_good_size 'malloc_good_size' | ||
213 | checkfunc d_malloc_size 'malloc_size' | ||
214 | checkfunc d_mblen 'mblen' '"", 0' 'stdlib.h' | ||
215 | -checkfunc d_mbstowcs 'mbstowcs' | ||
216 | +checkfunc d_mbstowcs 'mbstowcs' "NULL,NULL,0" | ||
217 | checkfunc d_mbtowc 'mbtowc' 'NULL, NULL, 0' 'stdlib.h' | ||
218 | checkfunc d_mbrlen 'mbrlen' 'NULL, 0, NULL' 'wchar.h' | ||
219 | checkfunc d_mbrtowc 'mbrtowc' 'NULL, NULL, 0, NULL' 'wchar.h' | ||
220 | @@ -161,152 +162,152 @@ checkfunc d_memmem 'memmem' "NULL, 0, NU | ||
221 | checkfunc d_memmove 'memmove' "NULL, NULL, 0" 'string.h' | ||
222 | checkfunc d_memrchr 'memrchr' "NULL, 0, 0" 'string.h' | ||
223 | checkfunc d_memset 'memset' "NULL, 0, 0" 'string.h' | ||
224 | -checkfunc d_mkdir 'mkdir' 'NULL, 0' | ||
225 | -checkfunc d_mkdtemp 'mkdtemp' | ||
226 | -checkfunc d_mkfifo 'mkfifo' | ||
227 | +checkfunc d_mkdir 'mkdir' 'NULL, 0' 'sys/stat.h' | ||
228 | +checkfunc d_mkdtemp 'mkdtemp' 'NULL' | ||
229 | +checkfunc d_mkfifo 'mkfifo' 'NULL,0' 'sys/types.h sys/stat.h' | ||
230 | checkfunc d_mkostemp 'mkostemp' 'NULL,0' 'stdlib.h' | ||
231 | checkfunc d_mkstemp 'mkstemp' 'NULL' | ||
232 | -checkfunc d_mkstemps 'mkstemps' | ||
233 | -checkfunc d_mktime 'mktime' 'NULL' | ||
234 | +checkfunc d_mkstemps 'mkstemps' 'NULL,0' | ||
235 | +checkfunc d_mktime 'mktime' 'NULL' 'time.h' | ||
236 | checkfunc d_mktime64 'mktime64' | ||
237 | -checkfunc d_mmap 'mmap' | ||
238 | -checkfunc d_mprotect 'mprotect' | ||
239 | -checkfunc d_msgctl 'msgctl' | ||
240 | -checkfunc d_msgget 'msgget' | ||
241 | -checkfunc d_msgrcv 'msgrcv' | ||
242 | -checkfunc d_msgsnd 'msgsnd' | ||
243 | -checkfunc d_msync 'msync' | ||
244 | -checkfunc d_munmap 'munmap' | ||
245 | +checkfunc d_mmap 'mmap' 'NULL,0,0,0,0,0' 'sys/mman.h' | ||
246 | +checkfunc d_mprotect 'mprotect' 'NULL,0,0' 'sys/mman.h' | ||
247 | +checkfunc d_msgctl 'msgctl' '0,0,NULL' 'sys/msg.h' | ||
248 | +checkfunc d_msgget 'msgget' '0,0' 'sys/msg.h' | ||
249 | +checkfunc d_msgrcv 'msgrcv' '0,NULL,0,0,0' 'sys/msg.h' | ||
250 | +checkfunc d_msgsnd 'msgsnd' '0,NULL,0,0' 'sys/msg.h' | ||
251 | +checkfunc d_msync 'msync' 'NULL,0,0' 'sys/mman.h' | ||
252 | +checkfunc d_munmap 'munmap' 'NULL,0' 'sys/mman.h' | ||
253 | checkfunc d_newlocale 'newlocale' '0,NULL,0' 'locale.h' | ||
254 | -checkfunc d_nice 'nice' '0' | ||
255 | -checkfunc d_nl_langinfo 'nl_langinfo' | ||
256 | -checkfunc d_nl_langinfo_l 'nl_langinfo_l' | ||
257 | +checkfunc d_nice 'nice' '0' 'unistd.h' | ||
258 | +checkfunc d_nl_langinfo 'nl_langinfo' '0' 'langinfo.h' | ||
259 | +checkfunc d_nl_langinfo_l 'nl_langinfo_l' '0,0' 'langinfo.h' | ||
260 | checkfunc d_open 'open' "NULL,0,0" 'sys/types.h sys/stat.h fcntl.h' | ||
261 | checkfunc d_openat 'openat' "0,NULL,0,0" 'sys/types.h sys/stat.h fcntl.h' | ||
262 | -checkfunc d_pathconf 'pathconf' | ||
263 | -checkfunc d_pause 'pause' | ||
264 | +checkfunc d_pathconf 'pathconf' 'NULL,0' 'unistd.h' | ||
265 | +checkfunc d_pause 'pause' '' 'unistd.h' | ||
266 | checkfunc d_pipe 'pipe' 'NULL' 'fcntl.h unistd.h' | ||
267 | checkfunc d_pipe2 'pipe' 'NULL,0' 'fcntl.h unistd.h' | ||
268 | -checkfunc d_poll 'poll' | ||
269 | -checkfunc d_prctl 'prctl' | ||
270 | -checkfunc d_pthread_atfork 'pthread_atfork' | ||
271 | -checkfunc d_pthread_attr_setscope 'pthread_attr_setscope' | ||
272 | -checkfunc d_pthread_yield 'pthread_yield' | ||
273 | +checkfunc d_poll 'poll' 'NULL,0,0' 'poll.h' | ||
274 | +checkfunc d_prctl 'prctl' '0,0,0,0,0' 'sys/prctl.h' | ||
275 | +checkfunc d_pthread_atfork 'pthread_atfork' 'NULL,NULL,NULL' 'pthread.h' | ||
276 | +checkfunc d_pthread_attr_setscope 'pthread_attr_setscope' 'NULL,0' 'pthread.h' | ||
277 | +checkfunc d_pthread_yield 'pthread_yield' '' 'pthread.h' | ||
278 | checkfunc d_querylocale 'querylocale' | ||
279 | checkfunc d_qgcvt 'qgcvt' '1.0,1,NULL' | ||
280 | -checkfunc d_rand 'rand' | ||
281 | -checkfunc d_random 'random' | ||
282 | -checkfunc d_re_comp 're_comp' | ||
283 | -checkfunc d_readdir 'readdir' 'NULL' | ||
284 | -checkfunc d_readlink 'readlink' | ||
285 | -checkfunc d_realpath 'realpath' | ||
286 | -checkfunc d_readv 'readv' | ||
287 | -checkfunc d_recvmsg 'recvmsg' | ||
288 | +checkfunc d_rand 'rand' '' 'stdlib.h' | ||
289 | +checkfunc d_random 'random' '' 'stdlib.h' | ||
290 | +checkfunc d_re_comp 're_comp' 'NULL' 'sys/types.h regex.h' | ||
291 | +checkfunc d_readdir 'readdir' 'NULL' 'dirent.h' | ||
292 | +checkfunc d_readlink 'readlink' 'NULL,NULL,0' 'unistd.h' | ||
293 | +checkfunc d_realpath 'realpath' 'NULL,NULL' 'limits.h stdlib.h' | ||
294 | +checkfunc d_readv 'readv' '0,NULL,0' 'sys/uio.h' | ||
295 | +checkfunc d_recvmsg 'recvmsg' '0,NULL,0' 'sys/socket.h' | ||
296 | checkfunc d_regcmp 'regcmp' | ||
297 | -checkfunc d_regcomp 'regcomp' | ||
298 | -checkfunc d_rename 'rename' 'NULL,NULL' | ||
299 | -checkfunc d_renameat 'renameat' '0,NULL,0,NULL' | ||
300 | -checkfunc d_rewinddir 'rewinddir' | ||
301 | -checkfunc d_rmdir 'rmdir' 'NULL' | ||
302 | -checkfunc d_sched_yield 'sched_yield' | ||
303 | -checkfunc d_seekdir 'seekdir' | ||
304 | -checkfunc d_select 'select' '0,NULL,NULL,NULL,NULL' | ||
305 | -checkfunc d_semctl 'semctl' | ||
306 | -checkfunc d_semget 'semget' | ||
307 | -checkfunc d_semop 'semop' | ||
308 | -checkfunc d_sendmsg 'sendmsg' | ||
309 | -checkfunc d_setegid 'setegid' | ||
310 | -checkfunc d_setent 'setservent' | ||
311 | -checkfunc d_setenv 'setenv' | ||
312 | -checkfunc d_seteuid 'seteuid' | ||
313 | -checkfunc d_setgrent 'setgrent' | ||
314 | -checkfunc d_setgrps 'setgroups' | ||
315 | -checkfunc d_sethent 'sethostent' | ||
316 | -checkfunc d_setitimer 'setitimer' | ||
317 | -checkfunc d_setlinebuf 'setlinebuf' | ||
318 | +checkfunc d_regcomp 'regcomp' 'NULL,NULL,0' 'regex.h' | ||
319 | +checkfunc d_rename 'rename' 'NULL,NULL' 'stdio.h' | ||
320 | +checkfunc d_renameat 'renameat' '0,NULL,0,NULL' 'fcntl.h stdio.h' | ||
321 | +checkfunc d_rewinddir 'rewinddir' 'NULL' 'sys/types.h dirent.h' | ||
322 | +checkfunc d_rmdir 'rmdir' 'NULL' 'unistd.h' | ||
323 | +checkfunc d_sched_yield 'sched_yield' '' 'sched.h' | ||
324 | +checkfunc d_seekdir 'seekdir' 'NULL,0' 'dirent.h' | ||
325 | +checkfunc d_select 'select' '0,NULL,NULL,NULL,NULL' 'sys/select.h' | ||
326 | +checkfunc d_semctl 'semctl' '0,0,0, NULL' 'sys/sem.h' | ||
327 | +checkfunc d_semget 'semget' '0,0,0' 'sys/sem.h' | ||
328 | +checkfunc d_semop 'semop' '0,NULL,0' 'sys/sem.h' | ||
329 | +checkfunc d_sendmsg 'sendmsg' '0,NULL,0' 'sys/socket.h' | ||
330 | +checkfunc d_setegid 'setegid' '0' 'unistd.h' | ||
331 | +checkfunc d_setent 'setservent' '0' 'netdb.h' | ||
332 | +checkfunc d_setenv 'setenv' 'NULL,NULL,0' | ||
333 | +checkfunc d_seteuid 'seteuid' '0' 'unistd.h' | ||
334 | +checkfunc d_setgrent 'setgrent' '' 'sys/types.h grp.h' | ||
335 | +checkfunc d_setgrps 'setgroups' '0,NULL' 'unistd.h grp.h' | ||
336 | +checkfunc d_sethent 'sethostent' '0' 'netdb.h' | ||
337 | +checkfunc d_setitimer 'setitimer' '0,NULL,NULL' 'sys/time.h' | ||
338 | +checkfunc d_setlinebuf 'setlinebuf' 'NULL' 'stdio.h' | ||
339 | checkfunc d_setlocale 'setlocale' "0,NULL" 'locale.h' | ||
340 | -checkfunc d_setnent 'setnetent' | ||
341 | -checkfunc d_setpent 'setprotoent' | ||
342 | -checkfunc d_setpgid 'setpgid' | ||
343 | -checkfunc d_setpgrp 'setpgrp' | ||
344 | +checkfunc d_setnent 'setnetent' '0' 'netdb.h' | ||
345 | +checkfunc d_setpent 'setprotoent' '0' 'netdb.h' | ||
346 | +checkfunc d_setpgid 'setpgid' '0,0' 'unistd.h' | ||
347 | +checkfunc d_setpgrp 'setpgrp' '' 'unistd.h' | ||
348 | checkfunc d_setpgrp2 'setpgrp2' | ||
349 | -checkfunc d_setprior 'setpriority' | ||
350 | -checkfunc d_setproctitle 'setproctitle' | ||
351 | -checkfunc d_setpwent 'setpwent' | ||
352 | -checkfunc d_setregid 'setregid' | ||
353 | -checkfunc d_setresgid 'setresgid' | ||
354 | -checkfunc d_setresuid 'setresuid' | ||
355 | -checkfunc d_setreuid 'setreuid' | ||
356 | -checkfunc d_setrgid 'setrgid' | ||
357 | +checkfunc d_setprior 'setpriority' '0,0,0' 'sys/resource.h' | ||
358 | +checkfunc d_setproctitle 'setproctitle' 'NULL,NULL' 'sys/types.h unistd.h' | ||
359 | +checkfunc d_setpwent 'setpwent' '' 'sys/types.h pwd.h' | ||
360 | +checkfunc d_setregid 'setregid' '0,0' 'unistd.h' | ||
361 | +checkfunc d_setresgid 'setresgid' '0,0,0' 'unistd.h' | ||
362 | +checkfunc d_setresuid 'setresuid' '0,0,0' 'unistd.h' | ||
363 | +checkfunc d_setreuid 'setreuid' '0,0' 'unistd.h' | ||
364 | +checkfunc d_setrgid 'setrgid' '' | ||
365 | checkfunc d_setruid 'setruid' | ||
366 | -checkfunc d_setsid 'setsid' | ||
367 | -checkfunc d_setvbuf 'setvbuf' 'NULL,NULL,0,0' | ||
368 | +checkfunc d_setsid 'setsid' '' 'unistd.h' | ||
369 | +checkfunc d_setvbuf 'setvbuf' 'NULL,NULL,0,0' 'stdio.h' | ||
370 | checkfunc d_sfreserve 'sfreserve' "" 'sfio.h' | ||
371 | -checkfunc d_shmat 'shmat' | ||
372 | -checkfunc d_shmctl 'shmctl' | ||
373 | -checkfunc d_shmdt 'shmdt' | ||
374 | -checkfunc d_shmget 'shmget' | ||
375 | -checkfunc d_sigaction 'sigaction' | ||
376 | -checkfunc d_sigprocmask 'sigprocmask' | ||
377 | +checkfunc d_shmat 'shmat' '0,NULL,0' 'sys/shm.h' | ||
378 | +checkfunc d_shmctl 'shmctl' '0,0,NULL' 'sys/shm.h' | ||
379 | +checkfunc d_shmdt 'shmdt' 'NULL' 'sys/shm.h' | ||
380 | +checkfunc d_shmget 'shmget' '0,0,0' 'sys/shm.h' | ||
381 | +checkfunc d_sigaction 'sigaction' '0,NULL,NULL' 'signal.h' | ||
382 | +checkfunc d_sigprocmask 'sigprocmask' '0,NULL,NULL' 'signal.h' | ||
383 | checkfunc d_sigsetjmp 'sigsetjmp' "NULL,0" 'setjmp.h' | ||
384 | -checkfunc d_snprintf 'snprintf' | ||
385 | -checkfunc d_sockatmark 'sockatmark' | ||
386 | +checkfunc d_snprintf 'snprintf' 'NULL,0,NULL' 'stdio.h' | ||
387 | +checkfunc d_sockatmark 'sockatmark' '0' 'sys/socket.h' | ||
388 | checkfunc d_socket 'socket' "0,0,0" 'sys/types.h sys/socket.h' | ||
389 | -checkfunc d_sockpair 'socketpair' | ||
390 | +checkfunc d_sockpair 'socketpair' '0,0,0,NULL' 'sys/socket.h' | ||
391 | checkfunc d_socks5_init 'socks5_init' | ||
392 | -checkfunc d_stat 'stat' | ||
393 | -checkfunc d_statvfs 'statvfs' | ||
394 | +checkfunc d_stat 'stat' 'NULL,NULL' 'sys/stat.h' | ||
395 | +checkfunc d_statvfs 'statvfs' 'NULL,NULL' 'sys/statvfs.h' | ||
396 | checkfunc d_strchr 'strchr' "NULL,0" 'string.h strings.h' | ||
397 | checkfunc d_strcoll 'strcoll' "NULL,NULL" 'string.h' | ||
398 | checkfunc d_strerror 'strerror' "0" 'string.h stdlib.h' | ||
399 | -checkfunc d_strerror_l 'strerror_l' | ||
400 | +checkfunc d_strerror_l 'strerror_l' '0,NULL' 'string.h' | ||
401 | checkfunc d_strftime 'strftime' "NULL,0,NULL,NULL" 'time.h' | ||
402 | -checkfunc d_strlcat 'strlcat' | ||
403 | -checkfunc d_strlcpy 'strlcpy' | ||
404 | +checkfunc d_strlcat 'strlcat' 'NULL,NULL,0' 'string.h' | ||
405 | +checkfunc d_strlcpy 'strlcpy' 'NULL,NULL,0' 'string.h' | ||
406 | checkfunc d_strnlen 'strnlen' '"",0' 'string.h' | ||
407 | checkfunc d_strtod 'strtod' 'NULL,NULL' | ||
408 | checkfunc d_strtod_l 'strtod_l' | ||
409 | checkfunc d_strtol 'strtol' 'NULL,NULL,0' | ||
410 | -checkfunc d_strtold 'strtold' | ||
411 | +checkfunc d_strtold 'strtold' 'NULL,NULL' | ||
412 | checkfunc d_strtold_l 'strtold_l' | ||
413 | -checkfunc d_strtoll 'strtoll' | ||
414 | -checkfunc d_strtoq 'strtoq' | ||
415 | +checkfunc d_strtoll 'strtoll' 'NULL,NULL,0' | ||
416 | +checkfunc d_strtoq 'strtoq' 'NULL,NULL,0' | ||
417 | checkfunc d_strtoul 'strtoul' 'NULL,NULL,0' | ||
418 | checkfunc d_strtoull 'strtoull' 'NULL,NULL,0' | ||
419 | -checkfunc d_strtouq 'strtouq' | ||
420 | -checkfunc d_strxfrm 'strxfrm' | ||
421 | -checkfunc d_strxfrm_l 'strxfrm_l' | ||
422 | -checkfunc d_symlink 'symlink' | ||
423 | -checkfunc d_syscall 'syscall' | ||
424 | -checkfunc d_sysconf 'sysconf' '0' | ||
425 | +checkfunc d_strtouq 'strtouq' 'NULL,NULL,0' | ||
426 | +checkfunc d_strxfrm 'strxfrm' 'NULL,NULL,0' 'string.h' | ||
427 | +checkfunc d_strxfrm_l 'strxfrm_l' 'NULL,NULL,0,NULL' 'string.h' | ||
428 | +checkfunc d_symlink 'symlink' 'NULL,NULL' 'unistd.h' | ||
429 | +checkfunc d_syscall 'syscall' '0,NULL' 'sys/syscall.h unistd.h' | ||
430 | +checkfunc d_sysconf 'sysconf' '0' 'unistd.h' | ||
431 | checkfunc d_system 'system' 'NULL' | ||
432 | -checkfunc d_tcgetpgrp 'tcgetpgrp' | ||
433 | -checkfunc d_tcsetpgrp 'tcsetpgrp' | ||
434 | -checkfunc d_telldir 'telldir' | ||
435 | -checkfunc d_time 'time' 'NULL' | ||
436 | -checkfunc d_timegm 'timegm' | ||
437 | -checkfunc d_times 'times' 'NULL' | ||
438 | +checkfunc d_tcgetpgrp 'tcgetpgrp' '0' 'unistd.h' | ||
439 | +checkfunc d_tcsetpgrp 'tcsetpgrp' '0,0' 'unistd.h' | ||
440 | +checkfunc d_telldir 'telldir' 'NULL' 'dirent.h' | ||
441 | +checkfunc d_time 'time' 'NULL' 'time.h' | ||
442 | +checkfunc d_timegm 'timegm' 'NULL' 'time.h' | ||
443 | +checkfunc d_times 'times' 'NULL' 'sys/times.h' | ||
444 | checkfunc d_towlower 'towlower' '0' 'wctype.h' | ||
445 | checkfunc d_towupper 'towupper' '0' 'wctype.h' | ||
446 | -checkfunc d_truncate 'truncate' 'NULL,0' | ||
447 | -checkfunc d_ualarm 'ualarm' | ||
448 | -checkfunc d_umask 'umask' '0' | ||
449 | -checkfunc d_uname 'uname' | ||
450 | -checkfunc d_unlinkat 'unlinkat' '0,NULL,0' | ||
451 | +checkfunc d_truncate 'truncate' 'NULL,0' 'unistd.h' | ||
452 | +checkfunc d_ualarm 'ualarm' 'NULL,NULL' 'unistd.h' | ||
453 | +checkfunc d_umask 'umask' '0' 'sys/stat.h' | ||
454 | +checkfunc d_uname 'uname' 'NULL' 'sys/utsname.h' | ||
455 | +checkfunc d_unlinkat 'unlinkat' '0,NULL,0' 'unistd.h fcntl.h' | ||
456 | checkfunc d_unordered 'unordered' | ||
457 | -checkfunc d_unsetenv 'unsetenv' | ||
458 | +checkfunc d_unsetenv 'unsetenv' 'NULL' | ||
459 | checkfunc d_uselocale 'uselocale' '0' 'locale.h' | ||
460 | -checkfunc d_usleep 'usleep' | ||
461 | -checkfunc d_ustat 'ustat' | ||
462 | +checkfunc d_usleep 'usleep' '0' 'unistd.h' | ||
463 | +checkfunc d_ustat 'ustat' '0,NULL' 'sys/types.h unistd.h' | ||
464 | define d_vfork 'undef' # unnecessary | ||
465 | -checkfunc d_vprintf 'vprintf' 'NULL,0' | ||
466 | -checkfunc d_vsnprintf 'vsnprintf' | ||
467 | -checkfunc d_wait4 'wait4' | ||
468 | -checkfunc d_waitpid 'waitpid' '0,NULL,0' | ||
469 | -checkfunc d_wcrtomb 'wcrtomb' | ||
470 | -checkfunc d_wcscmp 'wcscmp' | ||
471 | -checkfunc d_wcstombs 'wcstombs' 'NULL,NULL,0' | ||
472 | -checkfunc d_wcsxfrm 'wcsxfrm' | ||
473 | -checkfunc d_wctomb 'wctomb' | ||
474 | -checkfunc d_writev 'writev' | ||
475 | +checkfunc d_vprintf 'vprintf' 'NULL,0' 'stdio.h' | ||
476 | +checkfunc d_vsnprintf 'vsnprintf' 'NULL,0,NULL,NULL' 'stdio.h' | ||
477 | +checkfunc d_wait4 'wait4' '0,NULL,0,NULL' 'sys/wait.h' | ||
478 | +checkfunc d_waitpid 'waitpid' '0,NULL,0' 'sys/wait.h' | ||
479 | +checkfunc d_wcrtomb 'wcrtomb' 'NULL,0,NULL' 'wchar.h' | ||
480 | +checkfunc d_wcscmp 'wcscmp' 'NULL,NULL' 'wchar.h' | ||
481 | +checkfunc d_wcstombs 'wcstombs' 'NULL,NULL,0' 'wchar.h' | ||
482 | +checkfunc d_wcsxfrm 'wcsxfrm' 'NULL,NULL,0' 'wchar.h' | ||
483 | +checkfunc d_wctomb 'wctomb' 'NULL,NULL' 'wchar.h' | ||
484 | +checkfunc d_writev 'writev' '0,NULL,0' 'sys/uio.h' | ||
485 | unset includes | ||
diff --git a/meta/recipes-devtools/perl-cross/perlcross_1.4.bb b/meta/recipes-devtools/perl-cross/perlcross_1.4.bb index 2704976e17..9b2889647f 100644 --- a/meta/recipes-devtools/perl-cross/perlcross_1.4.bb +++ b/meta/recipes-devtools/perl-cross/perlcross_1.4.bb | |||
@@ -17,6 +17,7 @@ SRC_URI = "https://github.com/arsv/perl-cross/releases/download/${PV}/perl-cross | |||
17 | file://0001-Makefile-check-the-file-if-patched-or-not.patch \ | 17 | file://0001-Makefile-check-the-file-if-patched-or-not.patch \ |
18 | file://0001-Makefile-correctly-list-modules-when-cleaning-them.patch \ | 18 | file://0001-Makefile-correctly-list-modules-when-cleaning-them.patch \ |
19 | file://0001-Makefile-do-not-clean-config.h-xconfig.h.patch \ | 19 | file://0001-Makefile-do-not-clean-config.h-xconfig.h.patch \ |
20 | file://0001-configure_func.sh-Add-_GNU_SOURCE-define-and-functio.patch \ | ||
20 | " | 21 | " |
21 | UPSTREAM_CHECK_URI = "https://github.com/arsv/perl-cross/releases/" | 22 | UPSTREAM_CHECK_URI = "https://github.com/arsv/perl-cross/releases/" |
22 | 23 | ||