i386-gentoo-linux-uclibc-gcc -c -I. -I../dist/.. -D_GNU_SOURCE -D_REENTRANT -march=i386 -Os -pipe -fomit-frame-pointer db_server_svc.c -fPIC -DPIC -o .libs/db_server_svc.o db_server_svc.c: In function `__dbsrv_main': db_server_svc.c:623: error: `TIOCNOTTY' undeclared (first use in this function) db_server_svc.c:623: error: (Each undeclared identifier is reported only once db_server_svc.c:623: error: for each function it appears in.) make: *** [db_server_svc.lo] Error 1 FYI.. I had to workaround #162564 and by copying /var/tmp/portage/net-fs/nfs-utils-1.0.12/work/nfs-utils-1.0.12/tools/rpcgen/rpcgen to /usr/bin to get this far.
Created attachment 116135 [details, diff] db-4.3.29-TIOCNOTTY.patch just adds an: #include <sys/ioctl.h>
not really a uclibc bug i dont think ... if something is doing ioctls, it needs to include the ioctl header ...
I think we may need a different patch for db. That file isn't there at unpack time when we do patching. Need to patch some other location in order to generate that output in the file, me thinks.
the file db-4.3.29/build_unix/db_server_svc.c is generated by rpcgen. What uclibc needs is a working rpcgen :-/
I ported openbsd rpcgen to uclibc: http://dev.alpinelinux.org/openrpcgen/ With this rpcgen db compiled like a charm. running tests now.
(In reply to comment #5) > > With this rpcgen db compiled like a charm. running tests now. > test failed but it is not rpc related. (i see in other bugs that it fails everywhere) I ran the rpc test's manually and it passed. I suggest to add openrpcgen as dependency when uclibc is used. see #182956 for ebuild.
*** Bug 222429 has been marked as a duplicate of this bug. ***
This needs openrpcgen from bug 182956.
I can confirm that db-4.5.20_p2 builds against uclibc (only) when openrpcgen-4.1.2 is installed.