Compilation error: SEVERE ERROR: Symbol C_BSTAT (entry 2175) in object clientloop.o

Darren Tucker dtucker at zip.com.au
Fri Feb 11 14:58:24 EST 2011


On 11/02/11 11:08 AM, Val baranov wrote:
> Previous version compiled successfully was 5.5p1. Now compiling 5.8p1 on
> the same machine "AIX 5.3 TL12 SP2" via GNU make with gcc 4.2.0 - got
> an error, can someone help with this?
>
> gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o
> sshconnect1.o sshconnect2.o mux.o roaming_common.o roaming_client.o -L.
> -Lopenbsd-compat/ -L/usr/local/lib  -Wl,-blibpath:/usr/lib:/lib:
> /usr/local/lib -lssh -lopenbsd-compat  -lcrypto -lz
> ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 2175) in object
> clientloop.o:

It's a bug in either gcc or recent versions of AIX's linker that 
manifests with static variables when debug symbols are enabled.

I suspect disabling debug symbols at build time would help:

CFLAGS="-O2" ./configure && make

but it's not been confirmed either way.

http://lists.mindrot.org/pipermail/openssh-unix-dev/2011-February/029298.html

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list