Error logging: KLD if_en.ko depends on atm - not avail or version mismatch

2017-12-31 Thread David Gessel
FreeBSD 10.3-RELEASE #0 r327345

I'm getting a lot of errors that read:

Dec 30 09:54:59 gamanjiru kernel: KLD if_en.ko: depends on atm - not available 
or version mismatch
Dec 30 09:54:59 gamanjiru kernel: linker_load_file: Unsupported file type


The source does not seem to be the jails, since stopping jails doesn't stop the 
error notifications. I've synced source, built world and kernel, installed both 
and yet the errors persist. I have a mildly customized kernel config, but I 
can't find any refrence to either if_en.ko nor "atm"

 kldstat -v | grep if
   237 if_lo
   104 if_ixgbe
   235 if_faith
   239 if_vlan
   236 if_gif
   238 if_tun


# kldload if_en.ko
kldload: an error occurred while loading the module. Please check dmesg(8) for 
more details.
(which are the errors above)

I'm really not sure what's calling if_en.ko (networking is working fine). Nor 
any idea why anything would ask for a "Midway-based ATM interface". There's no 
ATM hardware on the box.


if_en isn't referenced at all in /bootpool/boot/loader.confand 
/bootpool/boot/defaults/loader.conf shows

"if_en_load="NO" # Midway-based ATM interfaces"

I asked at https://forums.freebsd.org/threads/63915/#post-370896 and was 
advised 

"You may be better asking on the freebsd-net mailing list. I know there's plans 
to remove ATM related stuff and the en driver was effected, but I don't think 
it should effect you."

The errors are being generated in the host as well as all jails running on the 
system.   

Any leads very much appreciated. 


-David
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


LibreSSL 2.7.2+ errors, last vexing one Apache24 fails with Cannot load libexec/apache24/mod_ssl.so Undefined symbol "OPENSSL_malloc_init"

2018-05-02 Thread David Gessel


LibreSSL 2.7+ is a big change and it caused a host of issues for me, most of 
which I've resolved with the patches posted on the LibreSSL wiki at 
https://wiki.freebsd.org/LibreSSL/2.7, but www/apache24 is still refusing to 
start post-update (the port was patched for LibreSSL on 24 Mar with 2.4.33)

my env:
apache24-2.4.33
libressl-2.7.2_1
FreeBSD 10.3-RELEASE-p28 #0 r330946
(portmaster)


When I try # apachectl restart I get:

Apache24 will not start:
httpd: Syntax error on line 130 of /usr/local/etc/apache24/httpd.conf: Cannot 
load libexec/apache24/mod_ssl.so into server: 
/usr/local/libexec/apache24/mod_ssl.so: Undefined symbol "OPENSSL_malloc_init"

The following innocuous seeming error reported during the build seems relevant

--- mod_ssl.slo ---
mod_ssl.c:404:5: warning: implicit declaration of function 
'OPENSSL_malloc_init' is invalid in C99 [-Wimplicit-function-declaration]
OPENSSL_malloc_init();


mod_ssl.c: ± 405:
C:

/* We must register the library in full, to ensure our configuration
 * code can successfully test the SSL environment.
 */
#if MODSSL_USE_OPENSSL_PRE_1_1_API
(void)CRYPTO_malloc_init();
#else
OPENSSL_malloc_init();
#endif
ERR_load_crypto_strings();
SSL_load_error_strings();
SSL_library_init();
#if HAVE_ENGINE_LOAD_BUILTIN_ENGINES
ENGINE_load_builtin_engines();
#endif
OpenSSL_add_all_algorithms();
OPENSSL_load_builtin_modules();

I don't see a declaration in mod_ssl.h. I believe the function is declared in 
OPENSSL_malloc, e.g. int OPENSSL_malloc_init(void) and that maybe the latest 
version of LibreSSL replaced the OpenSSL code that contained this declaration 
without replacing it. Or something like that. Maybe.

Any hints?

Also posted at
https://bz.apache.org/bugzilla/show_bug.cgi?id=62346
and
https://forums.freebsd.org/threads/apache24-fails-after-libressl-2-7-2-mod_ssl-so-undefined-symbol-openssl_malloc_init.65701/

___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"