[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pt_chown linking
From: |
Bruno Haible |
Subject: |
Re: pt_chown linking |
Date: |
Thu, 20 Oct 2011 16:34:51 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
I wrote:
> if your main gnulib-tool invocation is with --libtool,
> use gnulib-tool a second time, without --libtool and just just one
> module: 'pt_chown'.
The first gnulib-tool invocation should use --avoid=pt_chown.
This currently fails:
gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1
-I. -I. -I.. -I./.. -I../gllib -I./../gllib -Wall -g -O2 -MT grantpt.o -MD
-MP -MF .deps/grantpt.Tpo -c -o grantpt.o grantpt.c
grantpt.c:35:25: error: pty-private.h: No such file or directory
grantpt.c: In function 'grantpt':
grantpt.c:66: error: 'PTY_FILENO' undeclared (first use in this function)
grantpt.c:66: error: (Each undeclared identifier is reported only once
grantpt.c:66: error: for each function it appears in.)
grantpt.c:68: error: 'FAIL_EBADF' undeclared (first use in this function)
grantpt.c:74: error: '_PATH_PT_CHOWN' undeclared (first use in this function)
grantpt.c:74: warning: missing sentinel in function call
grantpt.c:75: error: 'FAIL_EXEC' undeclared (first use in this function)
grantpt.c:94: error: 'FAIL_EINVAL' undeclared (first use in this function)
grantpt.c:97: error: 'FAIL_EACCES' undeclared (first use in this function)
grantpt.c:103: error: 'FAIL_ENOMEM' undeclared (first use in this function)
*** Error code 1
This patch fixes it.
2011-10-20 Bruno Haible <address@hidden>
grantpt: Support --avoid=pt_chown.
* modules/grantpt (Files): Add lib/pty-private.h.
--- modules/grantpt.orig Thu Oct 20 16:31:52 2011
+++ modules/grantpt Thu Oct 20 16:29:29 2011
@@ -3,6 +3,7 @@
Files:
lib/grantpt.c
+lib/pty-private.h
m4/grantpt.m4
Depends-on:
--
In memoriam Eduard Brücklmeier <http://en.wikipedia.org/wiki/Eduard_Brücklmeier>
- license relaxation request, Eric Blake, 2011/10/17
- Re: license relaxation request, Bruno Haible, 2011/10/17
- Re: pt_chown build failure, Bruno Haible, 2011/10/19
- Re: pt_chown build failure, Eric Blake, 2011/10/19
- [PATCHv2 1/2] grantpt: only build pt_chown when needed, Eric Blake, 2011/10/19
- [PATCHv2 2/2] pt_chown: break gnulib link dependency, Eric Blake, 2011/10/19
- Re: [PATCHv2 2/2] pt_chown: break gnulib link dependency, Bruno Haible, 2011/10/20
- Re: [PATCHv2 1/2] grantpt: only build pt_chown when needed, Bruno Haible, 2011/10/20
- Re: license relaxation request, Bruno Haible, 2011/10/19
- Re: license relaxation request, Eric Blake, 2011/10/19
- Re: license relaxation request, Simon Josefsson, 2011/10/20