Обсуждение: pgagent 4 build error on Fedora 28

Поиск
Список
Период
Сортировка

pgagent 4 build error on Fedora 28

От
Devrim Gündüz
Дата:

Hi,

I'm seeing the following on Fedora 28 (Cmake 3.11)

[100%] Linking CXX executable pgagent
/usr/bin/ld: CMakeFiles/pgagent.dir/connection.cpp.o: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/pgagent.dir/build.make:181: pgagent] Error 1

--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Вложения

Re: pgagent 4 build error on Fedora 28

От
Devrim Gündüz
Дата:
Hi,

On Thu, 2018-08-09 at 12:55 +0300, Devrim Gündüz wrote:
> [100%] Linking CXX executable pgagent
> /usr/bin/ld: CMakeFiles/pgagent.dir/connection.cpp.o: undefined reference to
> symbol 'pthread_join@@GLIBC_2.2.5'
> //usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command
> line
> collect2: error: ld returned 1 exit status
> make[3]: *** [CMakeFiles/pgagent.dir/build.make:181: pgagent] Error 1

Replying my own email: Fixed it by adding -pthread to CXXFLAGS in the spec
file.

Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Вложения

Re: pgagent 4 build error on Fedora 28

От
Dave Page
Дата:


On Thu, Aug 9, 2018 at 12:36 PM, Devrim Gündüz <devrim@gunduz.org> wrote:

Hi,

On Thu, 2018-08-09 at 12:55 +0300, Devrim Gündüz wrote:
> [100%] Linking CXX executable pgagent
> /usr/bin/ld: CMakeFiles/pgagent.dir/connection.cpp.o: undefined reference to
> symbol 'pthread_join@@GLIBC_2.2.5'
> //usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command
> line
> collect2: error: ld returned 1 exit status
> make[3]: *** [CMakeFiles/pgagent.dir/build.make:181: pgagent] Error 1

Replying my own email: Fixed it by adding -pthread to CXXFLAGS in the spec
file.

 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company