Project

General

Profile

Bug #5962

src/wrappers.c error

Added by saen acro 3 days ago. Updated about 7 hours ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2020-10-17
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1906~g7e1dac822
Affected Versions:

Description

CC              src/epgdb.o
CC              src/epggrab.o
CC              src/spawn.o
src/wrappers.c:455:1: error: attributes should be specified before the declarator in a function definition
  455 | void *blacklisted_memcpy(void *dest, const void *src, size_t n)
      | ^~~~
src/wrappers.c:466:1: error: attributes should be specified before the declarator in a function definition
  466 | int blacklisted_close(int fd)
      | ^~~
make[2]: *** [Makefile:717: /opt/tvheadend/build.linux/src/wrappers.o] Error 1
make[2]: Wait for unfinished tasks…
make[2]: leave directory „/opt/tvheadend“
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 2
make[1]: leave directory „/opt/tvheadend“
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

History

#1

Updated by saen acro 3 days ago

for reproduction it is used

AUTOBUILD_CONFIGURE_EXTRA="--enable-cclang_threadsan --enable-gperftools --enable-kqueue --enable-ccdebug --enable-libfdkaac --enable-gtimer_check --enable-slow_memoryinfo --enable-vaapi --enable-nvenc --disable-hdhomerun_client --disable-hdhomerun_static " ./Autobuild.sh -j$(nproc)
#2

Updated by saen acro 3 days ago

without debugging all can be compiled

 AUTOBUILD_CONFIGURE_EXTRA="--enable-kqueue --enable-libfdkaac --enable-gtimer_check --enable-slow_memoryinfo --enable-vaapi --enable-nvenc --disable-hdhomerun_client --disable-hdhomerun_static " ./Autobuild.sh -j$(nproc)

aka need to be removed

--enable-cclang_threadsan --enable-gperftools --enable-ccdebug

also another error

dh_auto_configure: warning: Compatibility levels before 9 are deprecated (level 5 in use)
#3

Updated by Flole Systems 1 day ago

  • Status changed from New to Fixed

Fixed in c1552692e030ea245d4bf091537ba94b8864a07f

#4

Updated by saen acro about 8 hours ago

Still have problem

CC              build.o
CC              src/version.o
CC              timestamp.o
CC              tvheadend
/usr/bin/ld: not found -lprofiler
/usr/bin/ld: not found -ltcmalloc
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:712: /opt/tvheadend/build.linux/tvheadend] Error 1
make[2]: leaving directory „/opt/tvheadend“
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 2
make[1]: leaving directory „/opt/tvheadend“
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Building pass, but making of package fail.

#5

Updated by Flole Systems about 8 hours ago

Looks like you don't have gperftools installed so it can't find the dependencies. If you don't want to use it you shouldn't try to compile with it enabled.....

#6

Updated by saen acro about 7 hours ago

OK found missing dependency

sudo apt install libprotobuf-dev libtcmalloc-minimal4 libgoogle-perftools-dev

Also available in: Atom PDF