Project

General

Profile

Bug #272

wrong pthread-flag for libprelude on solaris

Added by over 13 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

0%

Resolution:
fixed

Description

The configuration script doesn't recognize the correct pthread flag on solaris.

"-pthread" is not supported for gcc/solaris. Instead the correct flag should be "-pthreads"

The compilation test

gcc -std=gnu99 -o conftest -02 -pthread confttest.c >&5

produces an error message
gcc: unrecognized option '-pthread'

but returns 0 so the configuration script doesn't recognize the wrong flag.

simple solution

Changing the flag order in acx_pthread_flags (configure; line 23475)

from

acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 

to
acx_pthread_flags="-pthreads -pthread pthread -mt $acx_pthread_flags" 

History

#1 Updated by Yoann VANDOORSELAERE over 13 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Thanks for reporting this issue, it has been fixed in [10083:10084].

#2 Updated by Yoann VANDOORSELAERE almost 12 years ago

  • Project changed from PRELUDE SIEM to Libprelude
  • Category deleted (1)
  • Target version deleted (0.9.16.2)

Also available in: Atom PDF