Project

General

Profile

Actions

Bug #2961

closed

undefined reference to 'pthread_cancel' building multimedia/ffmpegthumbnailer

Added by davshao over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
10/26/2016
Due date:
% Done:

0%

Estimated time:

Description

I am classifying the following as a master source regression and not a dports issue because multimedia/ffmpegthumbnailer was building until yesterday without issue in a hacked version of pkgsrc I have been using. Some change from October 25 breaks building both on pkgsrc and dports.

To demonstrate the problem using dports, update to master source through:

commit 62a4e7957a736b4de38938b02fa7eb9b45bc5d0d
Date: Tue Oct 25 23:04:45 2016 +0200

if_iwm - Switch arguments from iwm_node* to iwm_vap* in if_iwm_power.c.

Now build dports git, xorg, xfce4 from scratch using:

make clean && make NO_DIALOG=yes install clean

Now try building for multimedia/ffmpegthumbnailer. I would guess one would obtain an error similar to:

CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_CXX_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS
THREADS_HAVE_PTHREAD_ARG

...

--- ffmpegthumbnailer ---
[ 83%] Linking CXX executable ffmpegthumbnailer
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/ffmpegthumbnailer.dir/link.txt --verbose=1
/usr/bin/c++ -pipe -g -O2 -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++11 -pipe -g -O2 -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include CMakeFiles/ffmpegthumbnailer.dir/main.cpp.o -o ffmpegthumbnailer libffmpegthumbnailer.so.4.11.0 /usr/local/lib/libavformat.so /usr/local/lib/libavcodec.so /usr/local/lib/libavutil.so /usr/local/lib/libswscale.so /usr/local/lib/libjpeg.so /usr/local/lib/libpng.so -lz -Wl,-rpath,/usr/obj/dports/multimedia/ffmpegthumbnailer/.build:/usr/local/lib
libffmpegthumbnailer.so.4.11.0: error: undefined reference to 'pthread_cancel'
collect2: error: ld returned 1 exit status

The /etc/make.conf I used is a simple:

  1. cat /etc/make.conf
    CFLAGS+=-g
    STRIP=

WITH_PKGNG=yes
DISABLE_VULNERABILITIES=yes

WITH_VIM_OPTIONS=yes

Actions #1

Updated by zrj over 7 years ago

  • Assignee set to zrj

I have removed pthread_cancel stub from libc.
Assigning to myself.

Actions #2

Updated by zrj over 7 years ago

  • Status changed from New to Closed

Closing, issue is Dports specific.
Missing link dep fix was pushed to DeltaPorts.
Thanks for testing.

Actions

Also available in: Atom PDF