Source: lua-openssl
Version: 20151221-3
Severity: important
Justification: fails to build from source (but built successfully in the past)

Hi, Ondřej.

Builds of lua-openssl on kFreeBSD are failing:

  src/openssl.c: In function 'randL_stir':
  src/openssl.c:7006:3: warning: implicit declaration of function 'arc4random' 
[-Wimplicit-function-declaration]
  [...]
  /«PKGBUILDDIR»/5.2-openssl/.libs/liblua5.2-openssl.so: undefined reference to 
`arc4random'

To enable the use of arc4random here, please do the following:
- Declare a build dependency on libbsd-dev [kfreebsd-any].
- Either build with -DLIBBSD_OVERLAY -I/usr/include/bsd or explicitly
  add a conditional #include directive for <bsd/stdlib.h>.
- Conditionally link against -lbsd.

Thanks!

Reply via email to