* compilation error in iwd with ell commint 883bc6a90b4a9c654fdf2540f02447a7ca567e04
@ 2024-07-27 12:25 daniel antoine
2024-07-27 15:47 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: daniel antoine @ 2024-07-27 12:25 UTC (permalink / raw)
To: iwd, James Prestwood, Denis Kenzior
Hi James Hi Denis
I compile iwd with ell include in the same Pkgfile
makedepends=(dbus git python-docutils readline)
description="Internet Wireless Daemon"
url="https://git.kernel.org/cgit/network/wireless/iwd.git/"
packager="Yaolinux Team"
maintainer="Dania"
name=iwd
version=2.19
release=10
#source=(patch1.patch patch2.patch patch3.patch)
#Last commit on iwd repo
_commit1=993e48cab240b7fd1b3f508222eaa4ecde83aa8c
#Last commit on ell repo
_commit2=883bc6a90b4a9c654fdf2540f02447a7ca567e04
prepare() {
git clone yyyyyy ell
cd ell
git checkout ${_commit2}
cd ..
git clone xxxxxx iwd
cd iwd
git checkout ${_commit1}
#patch -Np1 -i $SRC/patch1.patch
#patch -Np1 -i $SRC/patch2.patch
#patch -Np1 -i $SRC/patch3.patch
autoreconf -fiv
}
build() {
cd iwd
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/iwd \
--enable-wired \
--enable-ofono \
--enable-hwsim \
--disable-tools
make
make install DESTDIR=$PKG
install -dm700 $PKG/var/lib/ead/
install -dm700 $PKG/var/lib/iwd/
}
withe the last commit of ell 83bc6a90b4a9c654fdf2540f02447a7ca567e04
the compilation fails
CC ell/dhcp-lease.lo
CC ell/dhcp-util.lo
CC ell/dhcp-server.lo
CC ell/cert-crypto.lo
CC ell/cert.lo
CC ell/ecc-external.lo
CC ell/ecc.lo
CC ell/ecdh.lo
CC ell/time.lo
CC ell/path.lo
CC ell/dhcp6.lo
CC ell/icmp6.lo
CC ell/dhcp6-lease.lo
CC ell/dhcp6-transport.lo
CC ell/acd.lo
CC ell/netconfig.lo
CC ell/sysctl.lo
CC ell/notifylist.lo
CC monitor/nlmon.o
CC monitor/main.o
monitor/main.c: In function 'rtm_interface_send_message':
monitor/main.c:351:38: error: passing argument 2 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
351 | l_netlink_send(rtnl, RTM_NEWLINK,
NLM_F_CREATE|NLM_F_EXCL,
| ^~~~~~~~~~~
| |
| int
In file included from ./ell/ell.h:17,
from monitor/main.c:43:
./ell/netlink.h:34:59: note: expected 'struct l_netlink_message *' but
argument is of type 'int'
34 | struct l_netlink_message *message,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
monitor/main.c:351:51: error: passing argument 3 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
351 | l_netlink_send(rtnl, RTM_NEWLINK,
NLM_F_CREATE|NLM_F_EXCL,
| ^~~~~~~~~~~~
| |
| int
./ell/netlink.h:35:58: note: expected 'l_netlink_command_func_t' {aka
'void (*)(int, short unsigned int, const void *, unsigned int, void
*)'} but argument is of type 'int'
35 | l_netlink_command_func_t function,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
monitor/main.c:352:49: error: passing argument 5 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
352 | rtmmsg, rta_buf - (void *)
rtmmsg, callback,
| ~~~~~~~~^~~~~~~~~~~~~~~~~
| |
| long int
./ell/netlink.h:37:58: note: expected 'l_netlink_destroy_func_t' {aka
'void (*)(void *)'} but argument is of type 'long int'
37 | l_netlink_destroy_func_t destroy);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
monitor/main.c:351:17: error: too many arguments to function 'l_netlink_send'
351 | l_netlink_send(rtnl, RTM_NEWLINK,
NLM_F_CREATE|NLM_F_EXCL,
| ^~~~~~~~~~~~~~
./ell/netlink.h:33:14: note: declared here
33 | unsigned int l_netlink_send(struct l_netlink *netlink,
| ^~~~~~~~~~~~~~
monitor/main.c:359:38: error: passing argument 2 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
359 | l_netlink_send(rtnl, RTM_DELLINK, 0, rtmmsg,
| ^~~~~~~~~~~
| |
| int
./ell/netlink.h:34:59: note: expected 'struct l_netlink_message *' but
argument is of type 'int'
34 | struct l_netlink_message *message,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
monitor/main.c:360:41: error: passing argument 5 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
360 | rta_buf - (void *)rtmmsg,
callback, user_data,
| ~~~~~~~~^~~~~~~~~~~~~~~~
| |
| long int
./ell/netlink.h:37:58: note: expected 'l_netlink_destroy_func_t' {aka
'void (*)(void *)'} but argument is of type 'long int'
37 | l_netlink_destroy_func_t destroy);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
monitor/main.c:359:17: error: too many arguments to function 'l_netlink_send'
359 | l_netlink_send(rtnl, RTM_DELLINK, 0, rtmmsg,
| ^~~~~~~~~~~~~~
./ell/netlink.h:33:14: note: declared here
33 | unsigned int l_netlink_send(struct l_netlink *netlink,
| ^~~~~~~~~~~~~~
monitor/main.c:365:38: error: passing argument 2 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
365 | l_netlink_send(rtnl, RTM_GETLINK, NLM_F_DUMP, rtmmsg,
| ^~~~~~~~~~~
| |
| int
./ell/netlink.h:34:59: note: expected 'struct l_netlink_message *' but
argument is of type 'int'
34 | struct l_netlink_message *message,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
monitor/main.c:365:51: error: passing argument 3 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
365 | l_netlink_send(rtnl, RTM_GETLINK, NLM_F_DUMP, rtmmsg,
| ^~~~~~~~~~
| |
| int
./ell/netlink.h:35:58: note: expected 'l_netlink_command_func_t' {aka
'void (*)(int, short unsigned int, const void *, unsigned int, void
*)'} but argument is of type 'int'
35 | l_netlink_command_func_t function,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
monitor/main.c:366:41: error: passing argument 5 of 'l_netlink_send'
makes pointer from integer without a cast [-Wint-conversion]
366 | rta_buf - (void *)rtmmsg,
callback, user_data,
| ~~~~~~~~^~~~~~~~~~~~~~~~
| |
| long int
./ell/netlink.h:37:58: note: expected 'l_netlink_destroy_func_t' {aka
'void (*)(void *)'} but argument is of type 'long int'
37 | l_netlink_destroy_func_t destroy);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
monitor/main.c:365:17: error: too many arguments to function 'l_netlink_send'
365 | l_netlink_send(rtnl, RTM_GETLINK, NLM_F_DUMP, rtmmsg,
| ^~~~~~~~~~~~~~
./ell/netlink.h:33:14: note: declared here
33 | unsigned int l_netlink_send(struct l_netlink *netlink,
| ^~~~~~~~~~~~~~
make[1]: *** [Makefile:2579: monitor/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1742: all] Error 2
=======> ERROR: Building 'iwd.man1722081992any.cards.tar.xz' failed.
Best regards
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compilation error in iwd with ell commint 883bc6a90b4a9c654fdf2540f02447a7ca567e04
2024-07-27 12:25 compilation error in iwd with ell commint 883bc6a90b4a9c654fdf2540f02447a7ca567e04 daniel antoine
@ 2024-07-27 15:47 ` Denis Kenzior
2024-07-27 17:48 ` daniel antoine
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2024-07-27 15:47 UTC (permalink / raw)
To: daniel antoine, iwd, James Prestwood
Hi Daniel,
On 7/27/24 7:25 AM, daniel antoine wrote:
> Hi James Hi Denis
>
> I compile iwd with ell include in the same Pkgfile
>
Applying the following patchset should fix it:
https://patchwork.kernel.org/project/iwd/list/?series=874190
I should have held off the ell push until Monday. Oh well.
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compilation error in iwd with ell commint 883bc6a90b4a9c654fdf2540f02447a7ca567e04
2024-07-27 15:47 ` Denis Kenzior
@ 2024-07-27 17:48 ` daniel antoine
0 siblings, 0 replies; 3+ messages in thread
From: daniel antoine @ 2024-07-27 17:48 UTC (permalink / raw)
To: Denis Kenzior; +Cc: iwd, James Prestwood
Hi Denis
I have installed the three patches and the compilation is OK and it work's
Thanks a lot
Best regards
Daniel
Le sam. 27 juil. 2024 à 17:47, Denis Kenzior <denkenz@gmail.com> a écrit :
>
> Hi Daniel,
>
> On 7/27/24 7:25 AM, daniel antoine wrote:
> > Hi James Hi Denis
> >
> > I compile iwd with ell include in the same Pkgfile
> >
>
> Applying the following patchset should fix it:
>
> https://patchwork.kernel.org/project/iwd/list/?series=874190
>
> I should have held off the ell push until Monday. Oh well.
>
> Regards,
> -Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-27 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-27 12:25 compilation error in iwd with ell commint 883bc6a90b4a9c654fdf2540f02447a7ca567e04 daniel antoine
2024-07-27 15:47 ` Denis Kenzior
2024-07-27 17:48 ` daniel antoine
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.