Solved ssl_locl.h not found during make buildworld

Hi All,

I am getting following errors while running make buildworld,
I am using FreeBSD 12.1
Code:
root@freebsd:/usr/src # uname -a
FreeBSD freebsd 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
root@freebsd:/usr/src #
I have also installed openssl
Code:
root@freebsd:/usr/src # pkg info openssl
openssl-1.1.1g,1
Name           : openssl
Version        : 1.1.1g,1
Code:
root@freebsd:/usr/src # make -C /usr/src buildworld

_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines\"" -DNDEBUG -I/usr/src/crypto/openssl/ssl -I/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto -g -MD  -MF.depend.t1_lib.o -MTt1_lib.o -std=gnu99 -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments  -c /usr/src/crypto/openssl/ssl/t1_lib.c -o t1_lib.o
/usr/src/crypto/openssl/ssl/t1_lib.c:21:10: fatal error: 'ssl_locl.h' file not found
#include "ssl_locl.h"
         ^~~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/secure/lib/libssl
*** Error code 1

Stop.
make[3]: stopped in /usr/src
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

I could not find depended pkg/binary for "ssl_locl.h" appreciate your input/suggestion.!
 
I have also installed openssl
Code:
root@freebsd:/usr/src # pkg info openssl
openssl-1.1.1g,1
Name : openssl
Version : 1.1.1g,1
Remove it, you don't need it. Nothing in the base OS will ever have a build dependency on a port/package.
 
I could not find depended pkg/binary for "ssl_locl.h" .....

It’s in the base systems source code. Have you checked if /usr/src/crypto/openssl/ssl/ssl_locl.h is at it’s place?

Also you don’t need to specify the -C option to change into /usr/src, you are already there :
Rich (BB code):
root@freebsd:/usr/src # make -C /usr/src buildworld
 
Remove it, you don't need it. Nothing in the base OS will ever have a build dependency on a port/package.
I removed the openssl but still failing at same point

l -I/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto -g -MD -MF.depend.t1_lib.o -MTt1_lib.o -std=gnu99 -fstack-protector-strong -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -c /usr/src/crypto/openssl/ssl/t1_lib.c -o t1_lib.o
/usr/src/crypto/openssl/ssl/t1_lib.c:21:10: fatal error: 'ssl_locl.h' file not found
#include "ssl_locl.h"
^~~~~~~~~~~~
1 error generated.
*** Error code 1
 
It’s in the base systems source code. Have you checked if /usr/src/crypto/openssl/ssl/ssl_locl.h is at it’s place?

Also you don’t need to specify the -C option to change into /usr/src, you are already there :
Rich (BB code):
root@freebsd:/usr/src # make -C /usr/src buildworld
ssl_locl.h is missing

root@freebsd:/usr/src/crypto/openssl/ssl # ls -l *h
-rw-r--r-- 1 root wheel 26868 May 5 13:11 packet_local.h
-rw-r--r-- 1 root wheel 1010 May 5 13:11 ssl_cert_table.h
-rw-r--r-- 1 root wheel 104367 May 5 13:11 ssl_local.h
root@freebsd:/usr/src/crypto/openssl/ssl #
[freebsd][
 
Where did you get the source tree from? Did you use subversion? You likely checked out the source for -CURRENT, that's a common mistake.
 
If you want to build an image for 12.1-RELEASE you need to checkout /base/releng/12.1.
 
Back
Top