I have a gsoap C program compiling and working fine on my Raspberry Pi but when I move the binary to another Raspberry Pi it fails to run.
pi@raspberrypi ~/CIS/MediaManager $ ./cmema
-bash: ./cmema: cannot execute binary file
pi@raspberrypi ~/CIS/MediaManager $
I have noticed when I do a static compile of the program the final message says:-
/usr/local/lib/libgsoap.a(libgsoap_a-stdsoap2.o): In function `tcp_gethost':
/home/pi/Develop/gsoap-2.8/gsoap/stdsoap2.c:3775: warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Please tell me how I go about fixing this.