Skip to content

Can't build on Rocky Linux 8 #489

@mephillips423

Description

@mephillips423

I followed the build instructions, but get an error about undefined reference to `pthread_create' and the build does not complete. Should this work?

cat /etc/redhat-release

Rocky Linux release 8.10 (Green Obsidian)

./autogen.sh
./configure --disable-dec265 --disable-sherlock265
make

...
Making all in tools
make[2]: Entering directory '/home/sparky/install/libde265/tools'
g++ -DHAVE_CONFIG_H -I. -I.. -I../libde265 -I.. -g -O2 -Werror=return-type -Werror=unused-result -Werror=reorder -DDE265_LOG_ERROR -MT gen_enc_table-gen-entropy-table.o -MD -MP -MF .deps/gen_enc_table-gen-entropy-table.Tpo -c -o gen_enc_table-gen-entropy-table.o test -f 'gen-entropy-table.cc' || echo './'gen-entropy-table.cc
mv -f .deps/gen_enc_table-gen-entropy-table.Tpo .deps/gen_enc_table-gen-entropy-table.Po
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -Werror=return-type -Werror=unused-result -Werror=reorder -DDE265_LOG_ERROR -o gen-enc-table gen_enc_table-gen-entropy-table.o ../libde265/libde265.la -lstdc++ -lm
libtool: link: g++ -g -O2 -Werror=return-type -Werror=unused-result -Werror=reorder -DDE265_LOG_ERROR -o .libs/gen-enc-table gen_enc_table-gen-entropy-table.o ../libde265/.libs/libde265.so -lstdc++ -lm -Wl,-rpath -Wl,/usr/local/lib
../libde265/.libs/libde265.so: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:495: gen-enc-table] Error 1
make[2]: Leaving directory '/home/prospero/install/libde265/tools'
make[1]: *** [Makefile:507: all-recursive] Error 1
make[1]: Leaving directory '/home/prospero/install/libde265'
make: *** [Makefile:416: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions