On Wed, 3 Mar 2021, Christos Zoulas wrote:

If you compile with -Bstatic -lc_g -Bdynamic explicitly I think it works.
So perhaps there is a libc issue.

Err -Bstatic -lc_p -Bdynamic


If this is the command you meant, then it doesn't work either:

$ cc -g -pg t.c -Bstatic -lc_p -Bdynamic -lcurses
ld: /usr/lib/libc.so.12: warning: warning: __findenv is an internal obsolete 
function.
$ ./a.out
Segmentation fault (core dumped)
$

As mrg@ indicated, maybe profiling + shared libs is not a supported
configuration on the *BSDs.

-RVP

Reply via email to