NET_LWIP breaks common/log_syslog.c

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Apr 22 05:13:52 CEST 2025


Hello Jerome,

I am trying to compile with CONFIG_LOG_SYSLOG=y and CONFIG_NET_LWIP=y 
and get:

common/log_syslog.c: In function ‘log_syslog_emit’:
common/log_syslog.c:59:24: error: implicit declaration of function 
‘net_set_ether’; did you mean ‘env_set_hex’? 
[-Wimplicit-function-declaration]
    59 |         eth_hdr_size = net_set_ether((uchar *)ptr, 
net_bcast_ethaddr, PROT_IP);
       |                        ^~~~~~~~~~~~~
       |                        env_set_hex
common/log_syslog.c:102:9: error: implicit declaration of function 
‘net_set_udp_header’ [-Wimplicit-function-declaration]
   102 |         net_set_udp_header((uchar *)iphdr, bcast_ip, 514, 514, 
ptr - log_msg);
       |         ^~~~~~~~~~~~~~~~~~

As these function just prepare packet buffers, should they be moved to 
common code used both for the legacy and the new network stack?

Best regards

Heinrich


More information about the U-Boot mailing list