While trying to debug a crash I've been seeing while closing a gnuclient
window, I tried building with --external-widget. For reasons I don't
understand, it insisted on putting a 'pic_arg = -K pic' in the makefile,
even though AIX and the IBM xlc compiler generate position-independent code
by default. In addition, the value of 'extw_link_mid' and
'extw_link_end'
were broken - I used these values and it worked:
extw_link_beg = $(LD)
extw_link_mid = -bnoentry -bexpall -o
extw_link_end = -lX11 -lc
(noentry so it doesn't complain about lack of main(), and expall so symbols
are exported from the shared library. The two -l entries for similar reasons).
Yes, it's quibbling, and probably the first-and-only time it will be build
with --external-widget under AIX.. ;)
(Why did I do it at all? Because it crashed in the #else segment of
a #ifdef EXTERNAL_WIDGET in frame-x.c. Didn't help any - the crash moved
into the corresponding #ifdef (the XtDestroyWidget() on line 2674/2677).
Film/dbx output at 11 on the *original* problem..
/Valdis
Show replies by date