You are not logged in.

#1 2017-09-15 07:02:39

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Request for guidance to get a package to build with openssl 1.0

Hello and thanks for your consideration

I am a novice to medium user who vitally needs a package (ffdecsawrapper) to build with openssl 1.0 in order for my mythtv based media server 's DVB to function in current Arch. I use a PKGBUILD which worked flawlessly prior to the openssl 1.0 to 1.1 transition earlier this year. I have not dared to update my system for the past months because of this but with openssl 1.0 and 1.1 co-existing I am taking the plunge now. I am hoping that a compassionte savvy Archer amongst you will be willing to assist. I made a backup system ISO prior to the upgrade but hoping to not have to use it...

Note this is not the actual complete PKGBUILD I use which additionally compiles 100's of V4L DVB driver modules. It has been edited to troubleshoot only the faulty bit. Also I have previously never tried a kernel higher than 4.9 with this package so I do not even know if it would otherwise build with current ARCH 4.12 or not.

I have used the PKGBUILD's from several "required by" packages for openssl-1.0 1.0.2.l-1 as a guide to solve this on my own but these are still not building with libssl 1.0 related errors. I have a hunch that possibly I could alternatively or additionally make changes in the Makefile to reflect Arch's redirected pkg-config path to openssl-1.0 but I don't know what I am doing.

Needless to say the appreciation would be huge as this is needed to watch TV in our home

PKGBUILD in question:

# Submitter:   Wessel Dirksen "p-we" <wdirksen at gmail dot com>

# !! This package installs the open source TBS drivers for you. They should not be pre-installed.

pkgname=ffdecsawrapper-tbs-os
pkgver=v3.1.1.22.g9572bfb_4.9.50_1_lts
pkgrel=1
pkgdesc="FFdecsa empowered softcam - Compiled with open source TBS DVB drivers"
url="https://github.com/bas-t/ffdecsawrapper.git"
arch=('i686' 'x86_64')
license=('GPLv2')
depends=('v4l-utils')
makedepends=('git' 'linux-headers')
conflicts=('ffdecsawrapper' 'sasc-ng' 'tbs-dvb-drivers' 'tbs-linux-drivers')
provides=('ffdecsawrapper')

source=('git://github.com/bas-t/ffdecsawrapper.git#branch=master') 
sha256sums=('SKIP')

pkgver() {
	_kernel=`uname -r | sed -r 's/-/_/g'`

	cd $srcdir/ffdecsawrapper
	_gitffdecsawrapper=`git describe --always | sed 's|-|.|g'`

	echo "$_gitffdecsawrapper"_"$_kernel"
}
            
build() {
	cd $srcdir/ffdecsawrapper
       ## Extra openssl 1.0 related parameters inserted here ##
	./configure --ffdecsa_mode=PARALLEL_128_SSE2 --update=no
}

package() {
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/lib/modules/`uname -r`/updates/tbs

	install -m0755 $srcdir/ffdecsawrapper/ffdecsawrapper  $pkgdir/usr/bin
	install -m0755 $srcdir/ffdecsawrapper/dvbloopback.ko  $pkgdir/usr/lib/modules/`uname -r`/updates/tbs

	msg "Compressing modules, this will take awhile..."	
	find "$pkgdir" -name '*.ko' -print0 | xargs -0 -P`nproc` -n10 gzip -9
	
	chmod 644 -R $pkgdir/usr/lib/modules/`uname -r`/updates
}

The package's main Makefile:

VERSION = $(shell git describe --always)

$(shell touch config.mak)
include config.mak

CC       ?= gcc
CXX      ?= g++
CXXFLAGS ?= -Wall -D__user= 

DEFINES += -DRELEASE_VERSION=\"$(VERSION)\" -D__KERNEL_STRICT_NAMES
INCLUDES += -Idvbloopback/module
LBDIR = dvbloopback/src
TOOL = ffdecsawrapper
LIBS = -lpthread -lcrypto -lcrypt -lv4l1
MODDIR = $(PWD)/dvbloopback/module/
SYMVER = $(MODDIR)Module.symvers
EXTRA_CFLAGS += -Idrivers/media/dvb-core/ -I$(MODDIR) \
                  -Idrivers/media/dvb/dvb-core/
BUILD_DIR ?= /lib/modules/$(shell uname -r)/build
SCDIR = sc/PLUGINS/src
SCLIBS = -Wl,-whole-archive ./sc/PLUGINS/lib/libsc-*.a -Wl,-no-whole-archive \
	./sc/PLUGINS/lib/libffdecsawrapper-sc.a

ifneq ($(RELEASE),1)
CXXFLAGS += -g
endif

OBJ  := forward.o process_req.o msg_passing.o plugin_getsid.o plugin_ringbuf.o\
	plugin_showioctl.o plugin_legacysw.o plugin_dss.o plugin_cam.o \
	plugin_ffdecsa.o version.o

OBJ_SC := misc.o dvbdevice.o osdbase.o menuitems.o device.o thread.o \
	tools.o sasccam.o log.o compat.o libsi.a

OBJS := $(foreach ob,$(OBJ) $(OBJ_SC), objs/$(ob)) FFdecsa/FFdecsa.o
INCLUDES_SC := -I$(SCDIR) -I./sc/include

INCLUDES_SI := -Isc/include/libsi
OBJ_LIBSI := objs/si_descriptor.o objs/si_section.o objs/si_si.o objs/si_util.o

INC_DEPS := $(shell ls $(LBDIR)/*.h) dvbloopback/module/dvbloopback.h
INC_DEPS_LB := $(shell ls dvblb_plugins/*.h)

all: $(TOOL)

$(TOOL): $(OBJS) | sc-plugin
	$(CXX) $(CXXFLAGS) -o $(TOOL) $(SCLIBS) $(OBJS) $(LIBS)

clean:
	@git clean -xfd

distclean:
	@git clean -xfd
	@git reset --hard HEAD

sc-plugin:
	$(MAKE) -C $(SCDIR) CXX=$(CXX) CXXFLAGS=$(SC_FLAGS) STATIC=1 all

FFdecsa/FFdecsa.o:
	$(MAKE) -C FFdecsa $(FFDECSA_OPTS)

module:
	$(MAKE) -C $(MODDIR) CC=$(CC) SYMVER=$(SYMVER) EXTRA_CFLAGS=$(EXTRA_CFLAGS) BUILD_DIR=$(BUILD_DIR) MODDIR=$(MODDIR)
	@cp -f dvbloopback/module/dvbloopback.ko .

objs/libsi.a: $(OBJ_LIBSI)
	ar ru $@ $(OBJ_LIBSI)

objs/%.o: $(LBDIR)/%.c $(INC_DEPS)
	$(CXX) $(CXXFLAGS) -o $@ -c  $(DEFINES) -I$(LBDIR) $(INCLUDES) $<

objs/%.o: dvblb_plugins/%.c $(INC_DEPS) $(INC_DEPS_LB)
	$(CXX) $(CXXFLAGS) -o $@ -c  $(DEFINES) -I$(LBDIR) $(INCLUDES) $<

objs/%.o: sc/%.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c  $(DEFINES) $(INCLUDES_SC) $(INCLUDES) $<

objs/si_%.o: sc/libsi/%.c
	$(CXX) $(CXXFLAGS) -o $@ -c  $(DEFINES) $(INCLUDES_SI) $<

I will provide the build output of my unsucessful trials here:
First, build error without adding extra parameters to include openssl-1.0 as an FYI:

[mythtv@wessel-laptop ffdecsawrapper-tbs-os]$ makepkg
==> Making package: ffdecsawrapper-tbs-os v3.1.1.22.g9572bfb_4.9.50_1_lts-1 (Fri Sep 15 08:20:15 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ffdecsawrapper git repo...
Fetching origin
==> Validating source files with sha256sums...
    ffdecsawrapper ... Skipped
==> Extracting sources...
  -> Creating working copy of ffdecsawrapper git repo...
Cloning into 'ffdecsawrapper'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cat: /boot/config-4.9.50-1-lts: No such file or directory
--2017-09-15 08:20:15--  https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving git.kernel.org... 147.75.110.187, 2604:1380:3000:3500::3
Connecting to git.kernel.org|147.75.110.187|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9 [following]
--2017-09-15 08:20:17--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Reusing existing connection to git.kernel.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 9585 (9.4K) [text/plain]
Saving to: ‘dvbloopback/module/dvbdev.h’

dvbloopback/module/ 100%[===================>]   9.36K  --.-KB/s    in 0s      

2017-09-15 08:20:17 (24.1 MB/s) - ‘dvbloopback/module/dvbdev.h’ saved [9585/9585]



### CPU-INFO ###
Vendor-ID: GenuineIntel
CPU-Family: 6
CPU-Model: 42
Flags:  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts

### FFdeCSA TEST ###
Using compiler: g++
Flags: -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops
Using compilers "native" flags


Testing optimization levels 2 and 3

This may take a while,
please be patient...

  Level -O2:
    PARALLEL_128_SSE2
     388 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (388 Mbit/s)

  Level -O3:
    PARALLEL_128_SSE2
     403 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (403 Mbit/s)

Best result with -O3 and PARALLEL_128_SSE2 at 403 Mbit/s

### FFdeCSA Fasted OPTS ###
CPUOPT   = native
PARALLEL = PARALLEL_128_SSE2
FLAGS    = -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops

4.9.50-1-lts kernel detected.
Using C++ compiler: g++
Using compile type: release

g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/forward.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/forward.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/process_req.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/process_req.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/msg_passing.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_getsid.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_ringbuf.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_showioctl.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_legacysw.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_dss.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_cam.c
dvblb_plugins/plugin_cam.c: In function ‘void connect_cam(parser_adpt*)’:
dvblb_plugins/plugin_cam.c:526:10: warning: specified bound 80 equals the size of the destination [-Wstringop-overflow=]
   strncat(scCap, tmpstr, 80);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_ffdecsa.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/version.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/version.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/misc.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/misc.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/dvbdevice.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/osdbase.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/osdbase.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/menuitems.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/menuitems.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/device.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/device.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/thread.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/thread.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/tools.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/tools.cpp
sc/tools.cpp: In member function ‘dirent* cReadDir::Next()’:
sc/tools.cpp:681:57: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
   return directory && readdir_r(directory, &u.d, &result) == 0 ? result : NULL;
                                                         ^
In file included from sc/include/ffdecsawrapper/tools.h:13:0,
                 from sc/tools.cpp:10:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/sasccam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/sasccam.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/log.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/log.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/compat.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/compat.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_descriptor.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/descriptor.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_section.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/section.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_si.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/si.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_util.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/util.c
ar ru objs/libsi.a objs/si_descriptor.o objs/si_section.o objs/si_si.o objs/si_util.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating objs/libsi.a
make -C FFdecsa "FLAGS=-O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa_test.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -o FFdecsa_test FFdecsa_test.o FFdecsa.o
FFdecsa 1.0: testing correctness and speed
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
speed=405.352638 Mbit/s
speed=275375.433097 pkts/s
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
make -C sc/PLUGINS/src CXX=g++ CXXFLAGS="-O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing" STATIC=1 all
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include sc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include data.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include filter.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include system.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include misc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include cam.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include device.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include version.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include smartcard.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include network.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include crypto.c
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h:34:10: error: field ‘big’ has incomplete type ‘BIGNUM {aka bignum_st}’
   BIGNUM big;
          ^~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h: In constructor ‘cBN::cBN()’:
crypto-bn.h:36:15: error: ‘BN_init’ was not declared in this scope
   cBN(void) { BN_init(&big); }
               ^~~~~~~
crypto-bn.h:36:15: note: suggested alternative: ‘BN_print’
   cBN(void) { BN_init(&big); }
               ^~~~~~~
               BN_print
make[1]: *** [Makefile:103: crypto.o] Error 1
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
make: *** [Makefile:57: sc-plugin] Error 2


###########################################################

Error(s) encountered while compiling ffdecsawrapper binary.

############################################################


==> ERROR: A failure occurred in build().
    Aborting...

Using   CFLAGS="-I/usr/include/openssl-1.0" LDFLAGS="-L/usr/lib/openssl-1.0" \
            export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig

[mythtv@wessel-laptop ffdecsawrapper-tbs-os]$ makepkg
==> Making package: ffdecsawrapper-tbs-os v3.1.1.22.g9572bfb_4.9.50_1_lts-1 (Fri Sep 15 08:43:24 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ffdecsawrapper git repo...
Fetching origin
==> Validating source files with sha256sums...
    ffdecsawrapper ... Skipped
==> Extracting sources...
  -> Creating working copy of ffdecsawrapper git repo...
Cloning into 'ffdecsawrapper'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cat: /boot/config-4.9.50-1-lts: No such file or directory
--2017-09-15 08:43:25--  https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving git.kernel.org... 147.75.110.187, 2604:1380:3000:3500::3
Connecting to git.kernel.org|147.75.110.187|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9 [following]
--2017-09-15 08:43:26--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Reusing existing connection to git.kernel.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 9585 (9.4K) [text/plain]
Saving to: ‘dvbloopback/module/dvbdev.h’

dvbloopback/module/ 100%[===================>]   9.36K  --.-KB/s    in 0.01s   

2017-09-15 08:43:26 (789 KB/s) - ‘dvbloopback/module/dvbdev.h’ saved [9585/9585]



### CPU-INFO ###
Vendor-ID: GenuineIntel
CPU-Family: 6
CPU-Model: 42
Flags:  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts

### FFdeCSA TEST ###
Using compiler: g++
Flags: -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops
Using compilers "native" flags


Testing optimization levels 2 and 3

This may take a while,
please be patient...

  Level -O2:
    PARALLEL_128_SSE2
     386 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (386 Mbit/s)

  Level -O3:
    PARALLEL_128_SSE2
     400 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (400 Mbit/s)

Best result with -O3 and PARALLEL_128_SSE2 at 400 Mbit/s

### FFdeCSA Fasted OPTS ###
CPUOPT   = native
PARALLEL = PARALLEL_128_SSE2
FLAGS    = -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops

4.9.50-1-lts kernel detected.
Using C++ compiler: g++
Using compile type: release

g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/forward.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/forward.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/process_req.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/process_req.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/msg_passing.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_getsid.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_ringbuf.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_showioctl.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_legacysw.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_dss.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_cam.c
dvblb_plugins/plugin_cam.c: In function ‘void connect_cam(parser_adpt*)’:
dvblb_plugins/plugin_cam.c:526:10: warning: specified bound 80 equals the size of the destination [-Wstringop-overflow=]
   strncat(scCap, tmpstr, 80);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_ffdecsa.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/version.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/version.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/misc.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/misc.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/dvbdevice.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/osdbase.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/osdbase.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/menuitems.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/menuitems.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/device.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/device.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/thread.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/thread.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/tools.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/tools.cpp
sc/tools.cpp: In member function ‘dirent* cReadDir::Next()’:
sc/tools.cpp:681:57: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
   return directory && readdir_r(directory, &u.d, &result) == 0 ? result : NULL;
                                                         ^
In file included from sc/include/ffdecsawrapper/tools.h:13:0,
                 from sc/tools.cpp:10:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/sasccam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/sasccam.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/log.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/log.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/compat.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/compat.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_descriptor.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/descriptor.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_section.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/section.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_si.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/si.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_util.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/util.c
ar ru objs/libsi.a objs/si_descriptor.o objs/si_section.o objs/si_si.o objs/si_util.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating objs/libsi.a
make -C FFdecsa "FLAGS=-O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa_test.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -o FFdecsa_test FFdecsa_test.o FFdecsa.o
FFdecsa 1.0: testing correctness and speed
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
speed=401.966578 Mbit/s
speed=273075.120781 pkts/s
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
make -C sc/PLUGINS/src CXX=g++ CXXFLAGS="-O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing" STATIC=1 all
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include sc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include data.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include filter.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include system.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include misc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include cam.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include device.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include version.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include smartcard.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include network.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include crypto.c
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h:34:10: error: field ‘big’ has incomplete type ‘BIGNUM {aka bignum_st}’
   BIGNUM big;
          ^~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h: In constructor ‘cBN::cBN()’:
crypto-bn.h:36:15: error: ‘BN_init’ was not declared in this scope
   cBN(void) { BN_init(&big); }
               ^~~~~~~
crypto-bn.h:36:15: note: suggested alternative: ‘BN_print’
   cBN(void) { BN_init(&big); }
               ^~~~~~~
               BN_print
make[1]: *** [Makefile:103: crypto.o] Error 1
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
make: *** [Makefile:57: sc-plugin] Error 2


###########################################################

Error(s) encountered while compiling ffdecsawrapper binary.

############################################################


==> ERROR: A failure occurred in build().
    Aborting...
 

Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#2 2017-09-15 07:06:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Request for guidance to get a package to build with openssl 1.0

Moving to Creating & Modifying Packages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-09-15 07:07:28

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: Request for guidance to get a package to build with openssl 1.0

If the source is C++, you need to modify CXXFLAGS instead of CFLAGS.

Offline

#4 2017-09-15 07:51:48

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: Request for guidance to get a package to build with openssl 1.0

arojas wrote:

If the source is C++, you need to modify CXXFLAGS instead of CFLAGS.

Thanks arojas. I did not list them all but I tried a few CXX flag variations as well and is still missing the right path. (example below) Actually it seems to make no difference in all the different variations I have tried. Could you perhaps elaborate a bit more what you would try first.

    CXXFLAGS="-I/usr/include/openssl-1.0" LDFLAGS="-L/usr/lib/openssl-1.0" \
    export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig

[mythtv@wessel-laptop ffdecsawrapper-tbs-os]$ makepkg
==> Making package: ffdecsawrapper-tbs-os v3.1.1.22.g9572bfb_4.9.50_1_lts-1 (Fri Sep 15 09:37:45 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ffdecsawrapper git repo...
Fetching origin
==> Validating source files with sha256sums...
    ffdecsawrapper ... Skipped
==> Extracting sources...
  -> Creating working copy of ffdecsawrapper git repo...
Cloning into 'ffdecsawrapper'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cat: /boot/config-4.9.50-1-lts: No such file or directory
--2017-09-15 09:37:46--  https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving git.kernel.org... 147.75.110.187, 2604:1380:3000:3500::3
Connecting to git.kernel.org|147.75.110.187|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9 [following]
--2017-09-15 09:37:47--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Reusing existing connection to git.kernel.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 9585 (9.4K) [text/plain]
Saving to: ‘dvbloopback/module/dvbdev.h’

dvbloopback/module/ 100%[===================>]   9.36K  --.-KB/s    in 0s      

2017-09-15 09:37:48 (20.9 MB/s) - ‘dvbloopback/module/dvbdev.h’ saved [9585/9585]



### CPU-INFO ###
Vendor-ID: GenuineIntel
CPU-Family: 6
CPU-Model: 42
Flags:  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts

### FFdeCSA TEST ###
Using compiler: g++
Flags: -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops
Using compilers "native" flags


Testing optimization levels 2 and 3

This may take a while,
please be patient...

  Level -O2:
    PARALLEL_128_SSE2
     388 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (388 Mbit/s)

  Level -O3:
    PARALLEL_128_SSE2
     403 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (403 Mbit/s)

Best result with -O3 and PARALLEL_128_SSE2 at 403 Mbit/s

### FFdeCSA Fasted OPTS ###
CPUOPT   = native
PARALLEL = PARALLEL_128_SSE2
FLAGS    = -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops

4.9.50-1-lts kernel detected.
Using C++ compiler: g++
Using compile type: release

g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/forward.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/forward.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/process_req.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/process_req.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/msg_passing.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_getsid.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_ringbuf.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_showioctl.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_legacysw.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_dss.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_cam.c
dvblb_plugins/plugin_cam.c: In function ‘void connect_cam(parser_adpt*)’:
dvblb_plugins/plugin_cam.c:526:10: warning: specified bound 80 equals the size of the destination [-Wstringop-overflow=]
   strncat(scCap, tmpstr, 80);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_ffdecsa.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/version.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/version.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/misc.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/misc.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/dvbdevice.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/osdbase.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/osdbase.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/menuitems.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/menuitems.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/device.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/device.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/thread.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/thread.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/tools.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/tools.cpp
sc/tools.cpp: In member function ‘dirent* cReadDir::Next()’:
sc/tools.cpp:681:57: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
   return directory && readdir_r(directory, &u.d, &result) == 0 ? result : NULL;
                                                         ^
In file included from sc/include/ffdecsawrapper/tools.h:13:0,
                 from sc/tools.cpp:10:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/sasccam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/sasccam.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/log.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/log.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/compat.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/compat.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_descriptor.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/descriptor.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_section.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/section.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_si.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/si.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o objs/si_util.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/util.c
ar ru objs/libsi.a objs/si_descriptor.o objs/si_section.o objs/si_si.o objs/si_util.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating objs/libsi.a
make -C FFdecsa "FLAGS=-O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa_test.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -o FFdecsa_test FFdecsa_test.o FFdecsa.o
FFdecsa 1.0: testing correctness and speed
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
speed=404.114944 Mbit/s
speed=274534.608931 pkts/s
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
make -C sc/PLUGINS/src CXX=g++ CXXFLAGS="-O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing" STATIC=1 all
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include sc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include data.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include filter.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include system.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include misc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include cam.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include device.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include version.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include smartcard.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include network.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include crypto.c
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h:34:10: error: field ‘big’ has incomplete type ‘BIGNUM {aka bignum_st}’
   BIGNUM big;
          ^~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h: In constructor ‘cBN::cBN()’:
crypto-bn.h:36:15: error: ‘BN_init’ was not declared in this scope
   cBN(void) { BN_init(&big); }
               ^~~~~~~
crypto-bn.h:36:15: note: suggested alternative: ‘BN_print’
   cBN(void) { BN_init(&big); }
               ^~~~~~~
               BN_print
make[1]: *** [Makefile:103: crypto.o] Error 1
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
make: *** [Makefile:57: sc-plugin] Error 2


###########################################################

Error(s) encountered while compiling ffdecsawrapper binary.

############################################################


==> ERROR: A failure occurred in build().
    Aborting...

Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#5 2017-09-15 08:24:47

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: Request for guidance to get a package to build with openssl 1.0

I have found a "partial" fix as the beginning part of the build is now correctly linked to /usr/include/openssl-1.0 and building correctly. However a later part of the build is still faulting in a separate make process which is apparently not correctly linked. I'll try to sleuth it out but maybe someone knows exactly what to do.

export CXXFLAGS="$CXXFLAGS -I/usr/include/openssl-1.0"
export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0 -lcrypto -lcrypt" 

[mythtv@wessel-laptop ffdecsawrapper-tbs-os]$ makepkg
==> Making package: ffdecsawrapper-tbs-os v3.1.1.22.g9572bfb_4.9.50_1_lts-1 (Fri Sep 15 10:16:10 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ffdecsawrapper git repo...
Fetching origin
==> Validating source files with sha256sums...
    ffdecsawrapper ... Skipped
==> Extracting sources...
  -> Creating working copy of ffdecsawrapper git repo...
Cloning into 'ffdecsawrapper'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cat: /boot/config-4.9.50-1-lts: No such file or directory
--2017-09-15 10:16:10--  https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving git.kernel.org... 147.75.110.187, 2604:1380:3000:3500::3
Connecting to git.kernel.org|147.75.110.187|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9 [following]
--2017-09-15 10:16:12--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/plain/drivers/media/dvb-core/dvbdev.h?id=refs/tags/v4.9
Reusing existing connection to git.kernel.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 9585 (9.4K) [text/plain]
Saving to: ‘dvbloopback/module/dvbdev.h’

dvbloopback/module/ 100%[===================>]   9.36K  --.-KB/s    in 0s      

2017-09-15 10:16:12 (25.9 MB/s) - ‘dvbloopback/module/dvbdev.h’ saved [9585/9585]



### CPU-INFO ###
Vendor-ID: GenuineIntel
CPU-Family: 6
CPU-Model: 42
Flags:  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts

### FFdeCSA TEST ###
Using compiler: g++
Flags: -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops
Using compilers "native" flags


Testing optimization levels 2 and 3

This may take a while,
please be patient...

  Level -O2:
    PARALLEL_128_SSE2
     387 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (387 Mbit/s)

  Level -O3:
    PARALLEL_128_SSE2
     403 Mbit/s
  Fastest PARALLEL_MODE = PARALLEL_128_SSE2 (403 Mbit/s)

Best result with -O3 and PARALLEL_128_SSE2 at 403 Mbit/s

### FFdeCSA Fasted OPTS ###
CPUOPT   = native
PARALLEL = PARALLEL_128_SSE2
FLAGS    = -O3 -fexpensive-optimizations -fomit-frame-pointer -funroll-loops

4.9.50-1-lts kernel detected.
Using C++ compiler: g++
Using compile type: release

g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/forward.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/forward.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/process_req.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/process_req.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/msg_passing.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_getsid.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_ringbuf.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_showioctl.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_legacysw.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvbloopback/src/plugin_dss.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_cam.c
dvblb_plugins/plugin_cam.c: In function ‘void connect_cam(parser_adpt*)’:
dvblb_plugins/plugin_cam.c:526:10: warning: specified bound 80 equals the size of the destination [-Wstringop-overflow=]
   strncat(scCap, tmpstr, 80);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module dvblb_plugins/plugin_ffdecsa.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/version.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/version.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/misc.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/misc.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/dvbdevice.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/osdbase.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/osdbase.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/menuitems.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/menuitems.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/device.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/device.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/thread.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/thread.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/tools.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/tools.cpp
sc/tools.cpp: In member function ‘dirent* cReadDir::Next()’:
sc/tools.cpp:681:57: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
   return directory && readdir_r(directory, &u.d, &result) == 0 ? result : NULL;
                                                         ^
In file included from sc/include/ffdecsawrapper/tools.h:13:0,
                 from sc/tools.cpp:10:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^~~~~~~~~
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/sasccam.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/sasccam.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/log.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/log.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/compat.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src -I./sc/include -Idvbloopback/module sc/compat.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/si_descriptor.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/descriptor.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/si_section.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/section.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/si_si.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/si.c
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -I/usr/include/openssl-1.0 -o objs/si_util.o -c  -DRELEASE_VERSION=\"v3.1.1-22-g9572bfb\" -D__KERNEL_STRICT_NAMES -Isc/include/libsi sc/libsi/util.c
ar ru objs/libsi.a objs/si_descriptor.o objs/si_section.o objs/si_si.o objs/si_util.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating objs/libsi.a
make -C FFdecsa "FLAGS=-O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -DPARALLEL_MODE=PARALLEL_128_SSE2 -c FFdecsa_test.c
g++ -O3 -march=native -fexpensive-optimizations -fomit-frame-pointer -funroll-loops -o FFdecsa_test FFdecsa_test.o FFdecsa.o
FFdecsa 1.0: testing correctness and speed
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
speed=402.972139 Mbit/s
speed=273758.246283 pkts/s
CORRECT!
CORRECT!
CORRECT!
CORRECT!
CORRECT!
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/FFdecsa'
make -C sc/PLUGINS/src CXX=g++ CXXFLAGS="-O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing" STATIC=1 all
make[1]: Entering directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include sc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include data.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include filter.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include system.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include misc.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include cam.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include device.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include version.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include smartcard.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include network.c
g++ -O2 -fPIC -Wall -Woverloaded-virtual -fno-strict-aliasing -c -DPLUGIN_NAME='"sc"' -DFFDECSAWRAPPER_MAXCAID=64 -DFFDECSAWRAPPER -DAPIVERSNUM=10600 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTATICBUILD -I../../include crypto.c
In file included from crypto.h:32:0,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:27,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bn.h:33,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/aes.h:13:0,
                 from crypto.h:86,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from /usr/include/openssl/idea.h:13:0,
                 from crypto.h:107,
                 from crypto.c:24:
/usr/include/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h:34:10: error: field ‘big’ has incomplete type ‘BIGNUM {aka bignum_st}’
   BIGNUM big;
          ^~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from crypto-bn.h:23,
                 from crypto.h:39,
                 from crypto.c:24:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
In file included from crypto.h:39:0,
                 from crypto.c:24:
crypto-bn.h: In constructor ‘cBN::cBN()’:
crypto-bn.h:36:15: error: ‘BN_init’ was not declared in this scope
   cBN(void) { BN_init(&big); }
               ^~~~~~~
crypto-bn.h:36:15: note: suggested alternative: ‘BN_print’
   cBN(void) { BN_init(&big); }
               ^~~~~~~
               BN_print
make[1]: *** [Makefile:103: crypto.o] Error 1
make[1]: Leaving directory '/home/mythtv/AUR/ffdecsawrapper-tbs-os/src/ffdecsawrapper/sc/PLUGINS/src'
make: *** [Makefile:57: sc-plugin] Error 2


###########################################################

Error(s) encountered while compiling ffdecsawrapper binary.

############################################################


==> ERROR: A failure occurred in build().
    Aborting...

Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

#6 2017-09-15 09:32:58

wdirksen
Member
From: New Zealand
Registered: 2012-02-23
Posts: 107

Re: Request for guidance to get a package to build with openssl 1.0

For what it is worth, I'm pretty sure this other makefile contains the later problem. If someone knows how to steer it towards /usr/include/openssl-1.0 this would probably fix it. Hoping..

PLUGIN = sc

### The version number of this plugin

RELEASE ?= $(shell git describe --always)
SUBREL  := $(shell echo -n "Master";)
VERSION := $(RELEASE)-$(SUBREL)
SCAPIVERS := $(shell sed -ne '/define SCAPIVERS/ s/^.[a-zA-Z ]*\([0-9]*\).*$$/\1/p' version.h)

### The directory environment:

BASEDIR = ../..
LIBDIR = ../lib
SYSDIR = ./systems
PREDIR = ./systems-pre
TMPDIR = /tmp

### Includes and Defines

INCLUDES      = -I$(BASEDIR)/include
DEFINES       = -DPLUGIN_NAME='"$(PLUGIN)"'
SHAREDDEFINES = -DAPIVERSNUM=$(APIVERSNUM) -D_GNU_SOURCE
LIBS          = -lcrypto
SHAREDLIBS    =

### The version number of FFdecsawrapper (taken from FFdecsawrapper's "config.h"):

FFDECSAWRAPPERVERSION := $(shell sed -ne '/define FFDECSAWRAPPERVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(BASEDIR)/include/ffdecsawrapper/config.h)
APIVERSION := $(shell sed -ne '/define APIVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(BASEDIR)/include/ffdecsawrapper/config.h)
ifeq ($(strip $(APIVERSION)),)
   APIVERSION = $(FFDECSAWRAPPERVERSION)
endif
FFDECSAWRAPPERVERSNUM := $(shell sed -ne '/define FFDECSAWRAPPERVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(BASEDIR)/include/ffdecsawrapper/config.h)
APIVERSNUM := $(shell sed -ne '/define APIVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(BASEDIR)/include/ffdecsawrapper/config.h)
ifeq ($(strip $(APIVERSNUM)),)
   APIVERSNUM = $(FFDECSAWRAPPERVERSNUM)
endif

### The object files (add further files here):

OBJS = $(PLUGIN).o data.o filter.o system.o misc.o cam.o device.o version.o \
       smartcard.o network.o crypto.o system-common.o parse.o log.o \
       override.o

  SHAREDDEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE

# max number of CAIDs per slot
MAXCAID = 64
DEFINES += -DFFDECSAWRAPPER_MAXCAID=$(MAXCAID)

# FFDECSAWRAPPER
DEFINES += -DFFDECSAWRAPPER
FFDECSA =
FFDECSATEST =
CSAFLAGS = "-Wall -fPIC -O2 -mmmx -msse -msse2 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops"

# export for system makefiles
export SCAPIVERS
export APIVERSION
export INCLUDES
export SHAREDDEFINES
export SHAREDLIBS
export CXX
export CXXFLAGS

### Targets:

BUILDTARGETS = $(LIBDIR)/libffdecsawrapper-$(PLUGIN).a
SHAREDDEFINES += -DSTATICBUILD
BUILDTARGETS += $(FFDECSATEST) systems

all: $(BUILDTARGETS)
.PHONY: systems

# Dependencies:

MAKEDEP = g++ -MM -MG
DEPFILE = .dependencies
DEPFILES = $(subst i18n.c,,$(subst version.c,,$(OBJS:%.o=%.c)))
$(DEPFILE): $(DEPFILES) $(wildcard *.h)
	@$(MAKEDEP) $(DEFINES) $(SHAREDDEFINES) $(INCLUDES) $(DEPFILES) > $@

-include $(DEPFILE)

# Rules

%.o: %.c
	$(CXX) $(CXXFLAGS) -c $(DEFINES) $(SHAREDDEFINES) $(INCLUDES) $<

$(LIBDIR)/libffdecsawrapper-$(PLUGIN).a: $(OBJS)
	$(AR) r $@ $(OBJS)

$(FFDECSA) $(FFDECSATEST): $(FFDECSADIR)/*.c $(FFDECSADIR)/*.h
	@$(MAKE) COMPILER=$(CXX) FLAGS=$(CSAFLAGS) PARALLEL_MODE=$(PARALLEL) -C $(FFDECSADIR) all

version.c: FORCE
	@echo >$@.new "/* generated file, do not edit */"; \
	 echo >>$@.new 'const char *ScVersion =' '"'$(VERSION)'";'; \
	 diff $@.new $@ >$@.diff 2>&1; \
	 if test -s $@.diff; then mv -f $@.new $@; fi; \
	 rm -f $@.new $@.diff;

systems:
	@for i in `ls -A -I ".*" $(SYSDIR)`; do $(MAKE) -f ../../Makefile.system -C "$(SYSDIR)/$$i" all || exit 1; done

FORCE:

Research | Trial | Make Mistakes | Ask questions | Learn | Repeat

Offline

Board footer

Powered by FluxBB