Problem
I am compiling a program that requires X11 libraries on an SCO OpenServer Release 5.0.5 system with SSE050c installed and I get a number of error messages similar to the following:
i386ld: line nbr entry (1647326512 0) found for non-relocatable symbol: section .comment, file /usr/lib/libX11.a
followed by:i386ld warning: Output file xdir not executable Cause
Some of the static X11 libraries shipped with SSE050c are corrupt.
Solution
One possible workaround is to compile your code using the -belf
cc(CP) flag. This will request that the compiler generate dynamic
ELF binaries (as opposed to static COFF binaries) and will result
in the linker using the dynamic versions of the X11 libraries to
create your binaries.Customers can also consider upgrading their systems to SCO OpenServer Release 5.0.6 to resolve this problem.