On 29 September 2013 19:25, Giovanni Rapagnani <[email protected]> wrote:
> Hello,
>
> I have been trying to build on Debian testing the various ksh alpha
> version released during the last 2 months and unfortunately I could not
> achieve to successfully compile any of them.
>
> I would like to help but my coding skills are too limited to myself find
> out what is wrong. Actually I could not even find the compilation
> starting point inside the bin/package script :-(
>
> This is how I tried to compile ast-ksh.2013-09-26:
> <verify md5 sums>
> mkdir build
> tar -xf INIT.2013-09-26.tgz -C build
> mkdir -p build/lib/package/tgz
> cp ast-ksh.2013-09-26.tgz build/lib/package/tgz/
> cd build && bin/package read && bin/package make
>
> In attachment the output of: bin/package results
>
> Currently popcon [1] reports that there are 4500 Debian systems on which
> ksh is installed. It would be a pitty that those systems do not benefit
> from the next stable version of ksh.
>
> I'll be glad to help to find out what is wrong, so if I can do anything
> to help, please tell me.
If I look at your log I see that essential networking includes do not work:
In file included from /usr/include/netdb.h:27:0,
from
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c:37:
/usr/include/netinet/in.h:226:5: error: expected
specifier-qualifier-list before '__SOCKADDR_COMMON'
/usr/include/netinet/in.h:240:5: error: expected
specifier-qualifier-list before '__SOCKADDR_COMMON'
/usr/include/netinet/in.h:292:29: error: field 'gr_group' has incomplete type
/usr/include/netinet/in.h:301:29: error: field 'gsr_group' has incomplete type
/usr/include/netinet/in.h:304:29: error: field 'gsr_source' has incomplete type
/usr/include/netinet/in.h:336:29: error: field 'gf_group' has incomplete type
/usr/include/netinet/in.h:344:29: error: array type has incomplete element type
In file included from
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c:37:0:
/usr/include/netdb.h:467:7: error: unknown type name 'sa_family_t'
/usr/include/netdb.h:495:8: error: unknown type name 'sa_family_t'
/usr/include/netdb.h:517:10: error: unknown type name 'sa_family_t'
/usr/include/netdb.h:541:4: error: unknown type name 'sa_family_t'
/usr/include/netdb.h:560:41: error: unknown type name 'sa_family_t'
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c: In
function 'pathopen':
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c:261:21:
error: 'PF_UNSPEC' undeclared (first use in this function)
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c:261:21:
note: each undeclared identifier is reported only once for each
function it appears in
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c:272:24:
error: 'SOCK_STREAM' undeclared (first use in this function)
/home/gio/test/sources/build/src/lib/libast/path/pathopen.c:290:24:
error: 'SOCK_DGRAM' undeclared (first use in this function)
mamake [lib/libast]: *** exit code 1 making pathopen.o
/home/gio/test/sources/build/src/lib/libast/misc/procopen.c: In
function 'procopen':
/home/gio/test/sources/build/src/lib/libast/misc/procopen.c:492:19:
error: 'AF_UNIX' undeclared (first use in this function)
/home/gio/test/sources/build/src/lib/libast/misc/procopen.c:492:19:
note: each undeclared identifier is reported only once for each
function it appears in
/home/gio/test/sources/build/src/lib/libast/misc/procopen.c:492:28:
error: 'SOCK_STREAM' undeclared (first use in this function)
mamake [lib/libast]: *** exit code 1 making procopen.o
Are you sure you have all devel packages installed? SOCK_STREAM should
be defined.
BTW: Which Debian version do you use?
Ced
--
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers