bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: sed porting trouble


From: Bruno Haible
Subject: Re: Fwd: sed porting trouble
Date: Wed, 29 Sep 2010 21:47:26 +0200
User-agent: KMail/1.9.9

Hi Joachim,

> > I’m trying to port sed-4.1.5 (and 4.2.1) to HP NonStop and I’m having 
> > a couple issues with it.

This is an OS on which gnulib was never tested so far. Therefore I have to
start with a few basic questions:

  - What is the official name of the OS? NonStop? NonStop OS? NonStop UX?
    Also the version number (for reference in gnulib documentation)?

  - What is the result of config.guess?
      $ sh build-aux/config.guess

  - What are the predefined C compiler macros? __TANDEM, what else?
    __hpux also?

Then, three questions about the ACL support. First, where is a reference of the
API? I need this info for updating
  
<http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=doc/acl-resources.txt>

  - Which include files declares functions related to ACLs?

  - Which symbols are defined? Something like
      $ nm /usr/lib/libc.so | grep acl
    should provide the list.

> > Some are due to our picky compiler (or a potential bug in either your 
> > code or out implementation of acl())

Just a test case: When you try to compile this file with "cc -c foo.c"
======================== foo.c ========================
extern int acl (char *);
int foo (const char *s) { return acl (s); }
=======================================================
what is the result?

> > some due to differenences how  
> > POSIX ACLs are implemented here:

gnulib contains a couple of unit tests for this code. sed-4.2.1 doesn't.
Therefore I'd like to ask you to repeat your effort with this tarball:
  http://www.haible.de/bruno/gnu/acltestdir.tar.gz

With your changes, does only the compilation pass, or does "make check"
also pass?

> > There is something strange going on in lib/stdlib.h, gives me a very 
> > strange error message:
> > 
> > address@hidden:/usr/local/Floss/sed-4.2.1 $ make
> > make all-recursive
> > Making all in lib
> > make all-recursive
> > source='btowc.c' object='btowc.o' libtool=no DEPDIR=.deps depmode=none 
> > bin/sh ../build-aux/depcomp cc -DHAVE_CONFIG_H -I. -I.. -I../lib -I.. 
> > -I../lib -I/usr/local/include -g -c btowc.c
> > struct random_data
> > ^
> > "/usr/local/Floss/sed-4.2.1/lib/../lib/stdlib.h", line 64: error(123):
> > expected an expression
> > {
> > ^
> > "/usr/local/Floss/sed-4.2.1/lib/../lib/stdlib.h", line 65: error(111):
> > expected a "]"
> > {
> > ^
> > "/usr/local/Floss/sed-4.2.1/lib/../lib/stdlib.h", line 65: error(158):
> > expected a ";"
> > 3 errors detected in the compilation of "btowc.c".
> > c89: /usr/cmplr/ccombe exited, returning 2.
> > *** Error code 1
> > 
> > In lib/stdlib.h.in, somewhere before ‘struct random’ it goes horribly 
> > wrong, haven’t yet been able to spot where, might be in lib/stdint.h?

Try to only preprocess the file:
  $ cc -DHAVE_CONFIG_H -I. -I.. -I../lib -I.. -I../lib -I/usr/local/include -g 
-E btowc.c > i.c
and look at i.c. Here it should be easier to spot which tokens before
'struct random_data' are confusing the compiler.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]