<div dir="ltr"><div dir="ltr">On Sun, Sep 18, 2022 at 10:15 AM Bruno Haible via cfarm-users <<a href="mailto:cfarm-users@lists.tetaneutral.net">cfarm-users@lists.tetaneutral.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On the gcc119 (AIX 7.2) machine, there are two problems:<br>
<br>
1) The /var partition is full:<br>
<br>
$ df -m /tmp /var/tmp<br>
Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on<br>
/dev/hd3       16384.00  12377.05   25%   132106     5% /tmp<br>
/dev/hd9var     4096.00      0.00  100%     2440    33% /var<br>
<br>
With no room on /var/tmp, 'vi' is inoperable. There is no 'vim' on this<br>
machine. Therefore one has to use /opt/freeware/bin/emacs-nox instead.<br></blockquote><div><br></div><div>Someone created a huge file in /var/tmp.  I have removed it, so there now is space.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
2) A symbolic link for /usr/lib/libncurses.a exists, but linking with<br>
this library produces a non-functional program:<br>
<br>
$ cat conftest.c<br>
extern int tgetent (char *, const char *);<br>
<br>
int<br>
main (void)<br>
{<br>
  return tgetent ((char *) 0, "xterm");<br>
}<br>
<br>
$ xlc -q64 -lncurses conftest.c<br>
<br>
$ ./a.out <br>
exec(): 0509-036 Cannot load program ./a.out because of the following errors:<br>
        0509-022 Cannot load module /opt/freeware/lib/libncurses.a(libncurses.so.6).<br>
        0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.<br>
        0509-022 Cannot load module libgcc_s.a(shr.o).<br>
        0509-026 System error: A file or directory in the path name does not exist.<br>
        0509-022 Cannot load module a.out.<br>
        0509-150   Dependent module /opt/freeware/lib/libncurses.a(libncurses.so.6) could not be loaded.<br>
<br>
$ ldd ./a.out<br>
./a.out needs:<br>
         /usr/lib/libc.a(shr_64.o)<br>
         /usr/lib/libncurses.a(libncurses.so.6)<br>
         /unix<br>
         /usr/lib/libcrypt.a(shr_64.o)<br>
Cannot find libgcc_s.a(shr.o) <br>
<br>
Probably another symlink /usr/lib/libgcc_s.a -> /opt/freeware/lib/libgcc_s.a<br>
will fix this problem.<br></blockquote><div><br></div><div>This is because you are combining a program compiled with XLC and a library compiled with GCC.  You should add the LD_LIBRARY_PATH environment variable so that the library knows where to find libgcc_s.a.</div><div><br></div><div>Thanks, David</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
Bruno<br>
<br>
<br>
<br>
_______________________________________________<br>
cfarm-users mailing list<br>
<a href="mailto:cfarm-users@lists.tetaneutral.net" target="_blank">cfarm-users@lists.tetaneutral.net</a><br>
<a href="https://lists.tetaneutral.net/listinfo/cfarm-users" rel="noreferrer" target="_blank">https://lists.tetaneutral.net/listinfo/cfarm-users</a><br>
</blockquote></div></div>