pkgsrc-Users archive

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

tnftp build fails on aix 6.1 for 2015Q4



I successfully bootstrapped 2015Q4 on aix 6.1, and now I’m trying to install pkgsrc’s gcc.  Pkgsrc tries to install tnftp as a prereq, but the build fails because the linker can’t find vasprintf.  I’ve included the relevant output at the bottom of this email.

vasprintf only appears once, in ssl.c  If I build tnftp without ssl, it compiles just fine.

I believe vasprintf can’t be found because AIX doesn’t have it.  If I were to submit a patch, should I modify ssl.c so it doesn’t need to use vasprintf?  Should I provide an implementation of vasprintf for systems that don’t have it?



gcc -DHAVE_CONFIG_H   -DHAVE_TNFTPD_H=1  -D_DEFAULT_CONFDIR=\"/opt/pkgsrc-2015Q4/etc\" -I.  -I../libnetbsd -I.. -I..  -I../libedit -I/usr/include -I/usr/include  -O -I/usr/include -MT tnftp-progressbar.o -MD -MP -MF .deps/tnftp-progressbar.Tpo -c -o tnftp-progressbar.o `test -f 'progressbar.c' || echo './'`progressbar.c
mv -f .deps/tnftp-progressbar.Tpo .deps/tnftp-progressbar.Po
gcc -DHAVE_CONFIG_H   -DHAVE_TNFTPD_H=1  -D_DEFAULT_CONFDIR=\"/opt/pkgsrc-2015Q4/etc\" -I.  -I../libnetbsd -I.. -I..  -I../libedit -I/usr/include -I/usr/include  -O -I/usr/include -MT tnftp-ruserpass.o -MD -MP -MF .deps/tnftp-ruserpass.Tpo -c -o tnftp-ruserpass.o `test -f 'ruserpass.c' || echo './'`ruserpass.c
mv -f .deps/tnftp-ruserpass.Tpo .deps/tnftp-ruserpass.Po
gcc -DHAVE_CONFIG_H   -DHAVE_TNFTPD_H=1  -D_DEFAULT_CONFDIR=\"/opt/pkgsrc-2015Q4/etc\" -I.  -I../libnetbsd -I.. -I..  -I../libedit -I/usr/include -I/usr/include  -O -I/usr/include -MT tnftp-util.o -MD -MP -MF .deps/tnftp-util.Tpo -c -o tnftp-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/tnftp-util.Tpo .deps/tnftp-util.Po
gcc -DHAVE_CONFIG_H   -DHAVE_TNFTPD_H=1  -D_DEFAULT_CONFDIR=\"/opt/pkgsrc-2015Q4/etc\" -I.  -I../libnetbsd -I.. -I..  -I../libedit -I/usr/include -I/usr/include  -O -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
mv -f .deps/tnftp-ssl.Tpo .deps/tnftp-ssl.Po
/opt/pkgsrc-2015Q4/bin/pdksh ../libtool  --tag=CC    --mode=link gcc  -O -I/usr/include   -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/pkgsrc-2015Q4/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 -O -I/usr/include -Wl,-R/usr/lib -Wl,-R/opt/pkgsrc-2015Q4/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/pkgsrc-2015Q4/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.
bmake[2]: stopped in /home/pkgsrc/pkgsrc-2015Q4/net/tnftp/work/tnftp-20151004/src
*** Error code 1

Stop.
bmake[1]: stopped in /home/pkgsrc/pkgsrc-2015Q4/net/tnftp/work/tnftp-20151004
*** Error code 1

Stop.
bmake: stopped in /home/pkgsrc/pkgsrc-2015Q4/net/tnftp/work/tnftp-20151004
*** Error code 1

Stop.
bmake[2]: stopped in /home/pkgsrc/pkgsrc-2015Q4/net/tnftp
*** Error code 1

Stop.
bmake[1]: stopped in /home/pkgsrc/pkgsrc-2015Q4/net/tnftp
*** Error code 1

Stop.
bmake: stopped in /home/pkgsrc/pkgsrc-2015Q4/lang/gcc49




Home | Main Index | Thread Index | Old Index