Discussion:
[TrouSerS-users] rpc.c:471: error: 'AI_NUMERICSERV' undeclared (first use in this function)
mfe userlast
2016-09-05 20:49:57 UTC
Permalink
Greetings,
I'm building trousers-0.3.13 from source on my readynas (http://netgear.nas-central.org/wiki/Category:ReadyNasDUO ) with openssl-1.0.0t

I used ./configure --with-gmp --with-openssl=/usr/local/ssl
When building (make && make install) it fails on:
-I../include -DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 -DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 -DTSS_SPEC_MINOR=2 -MT libtspi_la-rpc.lo -MD -MP -MF .deps/libtspi_la-rpc.Tpo -c rpc/tcstp/rpc.c -fPIC -DPIC -o .libs/libtspi_la-rpc.o
In file included from rpc/tcstp/rpc.c:27:
../../src/include/spi_utils.h:56: warning: 'optimize' attribute directive ignored
rpc/tcstp/rpc.c: In function 'get_socket':
rpc/tcstp/rpc.c:471: error: 'AI_NUMERICSERV' undeclared (first use in this function)
rpc/tcstp/rpc.c:471: error: (Each undeclared identifier is reported only once
rpc/tcstp/rpc.c:471: error: for each function it appears in.)
make[2]: *** [libtspi_la-rpc.lo] Error 1
make[2]: Leaving directory `/c/media/trousers-0.3.13/src/tspi'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/c/media/trousers-0.3.13/src'
make: *** [install-recursive] Error 1
[1]+ Exit 2 make

Any ideas how to fix this?BR martin

Loading...