Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174393 - sys-libs/db-4.3.29-r2+ubclic compile-fail - undeclared 'TIOCNOTTY' in generated file
Summary: sys-libs/db-4.3.29-r2+ubclic compile-fail - undeclared 'TIOCNOTTY' in generat...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
: 222429 (view as bug list)
Depends on: 182956
  Show dependency tree
Reported: 2007-04-13 08:55 UTC by Natanael Copa
Modified: 2012-03-03 13:28 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---

db-4.3.29-TIOCNOTTY.patch (db-4.3.29-TIOCNOTTY.patch,301 bytes, patch)
2007-04-13 09:00 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2007-04-13 08:55:54 UTC
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.
Comment 1 Natanael Copa 2007-04-13 09:00:48 UTC
Created attachment 116135 [details, diff]

just adds an:

#include <sys/ioctl.h>
Comment 2 SpanKY gentoo-dev 2007-04-13 09:19:18 UTC
not really a uclibc bug i dont think ... if something is doing ioctls, it needs to include the ioctl header ...
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2007-04-26 11:57:04 UTC
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.
Comment 4 Natanael Copa 2007-06-22 10:26:00 UTC
the file db-4.3.29/build_unix/db_server_svc.c is generated by rpcgen.

What uclibc needs is a working rpcgen :-/
Comment 5 Natanael Copa 2007-06-22 13:45:20 UTC
I ported openbsd rpcgen to uclibc:

With this rpcgen db compiled like a charm. running tests now.

Comment 6 Natanael Copa 2007-06-23 08:32:52 UTC
(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.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-16 22:28:44 UTC
*** Bug 222429 has been marked as a duplicate of this bug. ***
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-16 22:30:31 UTC
This needs openrpcgen from bug 182956.
Comment 9 Tobias Leupold 2008-08-27 16:59:25 UTC
I can confirm that db-4.5.20_p2 builds against uclibc (only) when openrpcgen-4.1.2 is installed.