[Prelude Hybrid IDS] #272: wrong pthread-flag for libprelude on solaris
"Prelude Hybrid IDS" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
#272: wrong pthread-flag for libprelude on solaris -----------------------------------+---------------------------------------- Reporter: [email protected] | Owner: yoann Type: defect | Status: new Priority: normal | Milestone: Component: libprelude | Version: 0.9 Severity: normal | Keywords: -----------------------------------+---------------------------------------- The configuration script doesn't recognize the correct pthread flag on solaris.[[BR]] "-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)[[BR]] from {{{ acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" }}} to {{{ acx_pthread_flags="-pthreads -pthread pthread -mt $acx_pthread_flags" }}} -- Ticket URL: <https://trac.prelude-ids.org/ticket/272> Prelude Hybrid IDS <http://www.prelude-ids.org> The Prelude Hybrid Intrusion Detection System suite _______________________________________________ Prelude-devel site list [email protected] http://www.prelude-ids.org/mailman/listinfo/prelude-devel