<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/1/20 2:29 PM, Joel Sherrill
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF9ehCXCefi73+J0oGf0JExQ3-hEahJ527Op6mSTbFuXb3w5pg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Are you on the master instead of 6-freebsd12?
<div dir="auto"><br>
</div>
<div dir="auto">Libbsd is different from our other repos since
you need to be on a branch that matches RTEMS and FreeBSD
version</div>
</div>
</blockquote>
<p>I am a bit confused here - I was on RTEMS master and rtems-libbsd
master which seems to be OK according to README.md. I switched to
6-freebsd12 for rtems-libbsd but the same errors occurred....</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAF9ehCXCefi73+J0oGf0JExQ3-hEahJ527Op6mSTbFuXb3w5pg@mail.gmail.com"><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Nov 1, 2020, 10:54 AM
Jiri Gaisler <<a href="mailto:jiri@gaisler.se"
moz-do-not-send="true">jiri@gaisler.se</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying
to build the rtems-libbsd package to test the new network<br>
stack. Configuration works fine, but compiling fails quickly.
Log below,<br>
any ideas ...?<br>
<br>
jiri@carbon:~/ibm/src/rtems/rtems-libbsd$ python3 ./waf
configure<br>
--rtems-bsps=sparc/leon3 --prefix=/opt/rtems/6<br>
--buildset=buildset/default.ini<br>
Setting top to :<br>
/home/jiri/ibm/src/rtems/rtems-libbsd<br>
Setting out to :<br>
/home/jiri/ibm/src/rtems/rtems-libbsd/build<br>
RTEMS Version : 6<br>
Architectures : riscv-rtems6,
sparc-rtems6<br>
Board Support Package (BSP) : sparc-rtems6-leon3<br>
Show commands : no<br>
Long commands : no<br>
Checking for program 'sparc-rtems6-gcc' :<br>
/opt/rtems/6/bin/sparc-rtems6-gcc<br>
Checking for program 'sparc-rtems6-g++' :<br>
/opt/rtems/6/bin/sparc-rtems6-g++<br>
Checking for program 'sparc-rtems6-gcc' :<br>
/opt/rtems/6/bin/sparc-rtems6-gcc<br>
Checking for program 'sparc-rtems6-ld' :
/opt/rtems/6/bin/sparc-rtems6-ld<br>
Checking for program 'sparc-rtems6-ar' :
/opt/rtems/6/bin/sparc-rtems6-ar<br>
Checking for program 'sparc-rtems6-nm' :
/opt/rtems/6/bin/sparc-rtems6-nm<br>
Checking for program 'sparc-rtems6-objdump' :<br>
/opt/rtems/6/bin/sparc-rtems6-objdump<br>
Checking for program 'sparc-rtems6-objcopy' :<br>
/opt/rtems/6/bin/sparc-rtems6-objcopy<br>
Checking for program 'sparc-rtems6-readelf' :<br>
/opt/rtems/6/bin/sparc-rtems6-readelf<br>
Checking for program 'sparc-rtems6-strip' :<br>
/opt/rtems/6/bin/sparc-rtems6-strip<br>
Checking for program 'sparc-rtems6-ranlib' :<br>
/opt/rtems/6/bin/sparc-rtems6-ranlib<br>
Checking for program 'rtems-ld' :
/opt/rtems/6/bin/rtems-ld<br>
Checking for program 'rtems-tld' :
/opt/rtems/6/bin/rtems-tld<br>
Checking for program 'rtems-syms' :
/opt/rtems/6/bin/rtems-syms<br>
Checking for program 'rtems-bin2c' :
/opt/rtems/6/bin/rtems-bin2c<br>
Checking for program 'tar' : /bin/tar<br>
Checking for program 'gcc, cc' :<br>
/opt/rtems/6/bin/sparc-rtems6-gcc<br>
Checking for program 'ar' :<br>
/opt/rtems/6/bin/sparc-rtems6-ar<br>
Checking for program 'g++, c++' :<br>
/opt/rtems/6/bin/sparc-rtems6-g++<br>
Checking for program 'ar' :<br>
/opt/rtems/6/bin/sparc-rtems6-ar<br>
Checking for program 'gas, gcc' :<br>
/opt/rtems/6/bin/sparc-rtems6-gcc<br>
Checking for program 'ar' :<br>
/opt/rtems/6/bin/sparc-rtems6-ar<br>
Checking for c flags '-MMD' : yes<br>
Checking for cxx flags '-MMD' : yes<br>
Compiler version (sparc-rtems6-gcc) : 10.2.1 20200904
(RTEMS 6,<br>
RSB 31f936a7b74d60bda609a9960c6e1a705ba54974, Newlib a0d7982)<br>
Checking for a valid RTEMS BSP installation : yes<br>
Checking for RTEMS_DEBUG : no<br>
Checking for RTEMS_MULTIPROCESSING : no<br>
Checking for RTEMS_NEWLIB : yes<br>
Checking for RTEMS_POSIX_API : yes<br>
Checking for RTEMS_SMP : no<br>
Checking for RTEMS_NETWORKING : no<br>
Checking for header dlfcn.h : yes<br>
Checking for header rtems/pci.h : yes<br>
Configure variant: :
sparc-rtems6-leon3-default<br>
Checking for library debugger : yes<br>
'configure' finished successfully (0.871s)<br>
jiri@carbon:~/ibm/src/rtems/rtems-libbsd$ python3 ./waf<br>
Waf: Entering directory<br>
`/home/jiri/ibm/src/rtems/rtems-libbsd/build/sparc-rtems6-leon3-default'<br>
[ 7/1954] Compiling freebsd/contrib/libpcap/grammar.c<br>
[ 9/1954] Compiling freebsd/sbin/pfctl/parse.c<br>
[ 12/1954] Compiling freebsd/contrib/expat/lib/xmltok_ns.c<br>
[ 13/1954] Compiling freebsd/contrib/expat/lib/xmltok_impl.c<br>
[ 14/1954] Compiling freebsd/contrib/expat/lib/xmltok.c<br>
[ 15/1954] Compiling freebsd/lib/libc/net/getnetbynis.c<br>
grammar.y: In function 'pcap_parse':<br>
grammar.y:693:31: error: 'BPF_MOD' undeclared (first use in
this<br>
function); did you mean 'BPF_MODE'?<br>
grammar.y:693:31: note: each undeclared identifier is reported
only once<br>
for each function it appears in<br>
grammar.y:696:31: error: 'BPF_XOR' undeclared (first use in
this<br>
function); did you mean 'BPF_OR'?<br>
<br>
parse.y: In function '_bsd_pfctl_expand_label_str':<br>
parse.y:4853:10: error: macro "free" requires 2 arguments, but
only 1 given<br>
In file included from<br>
/opt/rtems/6/sparc-rtems6/leon3/lib/include/sys/malloc.h:39,<br>
from ../../freebsd/sys/net/pfvar.h:42,<br>
from parse.y:64:<br>
/opt/rtems/6/sparc-rtems6/leon3/lib/include/rtems/rtems_bsdnet_internal.h:148:<br>
note: macro "free" defined here<br>
148 | #define free(ptr,type) rtems_bsdnet_free(ptr,type)<br>
|<br>
parse.y: In function '_bsd_pfctl_expand_altq':<br>
parse.y:5009:39: error: macro "free" requires 2 arguments, but
only 1 given<br>
In file included from<br>
/opt/rtems/6/sparc-rtems6/leon3/lib/include/sys/malloc.h:39,<br>
from ../../freebsd/sys/net/pfvar.h:42,<br>
from parse.y:64:<br>
/opt/rtems/6/sparc-rtems6/leon3/lib/include/rtems/rtems_bsdnet_internal.h:148:<br>
note: macro "free" defined here<br>
148 | #define free(ptr,type) rtems_bsdnet_free(ptr,type)<br>
|<br>
<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank"
rel="noreferrer" moz-do-not-send="true">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote>
</div>
</blockquote>
</body>
</html>