tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libnbcompat implementation (AIX)



Hi,

I was able to get the system to bootstrap on AIX, but now I have issues with unimplemented symbols like "vasprintf".

Here's the error when linking tnftp...

gcc -DHAVE_CONFIG_H -DHAVE_TNFTPD_H=1 -D_DEFAULT_CONFDIR=\"/opt/pkg/etc\" -I. -I../libnetbsd -I.. -I.. -I../libedit -I/usr/include -I/usr/include -O2 -I/usr/include -MT tnftp-ssl.o -MD -MP -MF .deps/tnftp-ssl.Tpo -c -o tnftp-ssl.o `test -f 'ssl.c' || echo './'`ssl.c
ssl.c: In function 'fetch_printf':
ssl.c:189:8: warning: implicit declaration of function 'vasprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
  len = vasprintf(&msg, fmt, ap);
        ^~~~~~~~~
        vsprintf
mv -f .deps/tnftp-ssl.Tpo .deps/tnftp-ssl.Po
/opt/pkg/bin/pdksh ../libtool --tag=CC --mode=link gcc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/pkg/lib -o tnftp tnftp-cmds.o tnftp-cmdtab.o tnftp-complete.o tnftp-domacro.o tnftp-fetch.o tnftp-ftp.o tnftp-main.o tnftp-progressbar.o tnftp-ruserpass.o tnftp-util.o tnftp-ssl.o ../libnetbsd/libnetbsd.la ../libedit/libedit.la -L/usr/lib -lssl -lcrypto -ltermcap libtool: link: gcc -O2 -I/usr/include -Wl,-R/usr/lib -Wl,-R/opt/pkg/lib -o tnftp tnftp-cmds.o tnftp-cmdtab.o tnftp-complete.o tnftp-domacro.o tnftp-fetch.o tnftp-ftp.o tnftp-main.o tnftp-progressbar.o tnftp-ruserpass.o tnftp-util.o tnftp-ssl.o -L/usr/lib ../libnetbsd/.libs/libnetbsd.a ../libedit/.libs/libedit.a -lssl -lcrypto -ltermcap
ld: 0706-027 The -R /opt/pkg/lib flag is ignored.
ld: 0711-317 ERROR: Undefined symbol: .vasprintf
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
*** Error code 1

Stop.



AIUI - libnbcompat is the answer to this. So how to implement that globally for pkgsrc? Any help would be great.

--
Louis


Home | Main Index | Thread Index | Old Index