Re: relocwrapper interaction with replacement functions

2010-08-28 Thread Bruno Haible
Ben Pfaff wrote in : > > [4/4] getcwd, relocwrapper link errors > > I didn't see this posted yet, but I guess it is not important on > OpenBSD 4.7. It's heavy to use the getcwd replacement in relocwrapper, and probably rarely

Re: relocwrapper interaction with replacement functions

2010-06-09 Thread Ben Pfaff
Bruno Haible writes: > This leads to a series of 4 patches: > [1/4] setenv > [2/4] misc. relocwrapper link errors > [3/4] areadlink, relocwrapper link errors Thank you very much. With patches 1, 2, and 3 applied to Gnulib, the relocwrapper builds fine on OpenBSD 4.7. > [4/4] getcwd, re

Re: relocwrapper interaction with replacement functions

2010-06-09 Thread Eric Blake
On 06/09/2010 04:17 AM, Bruno Haible wrote: > Detailed analysis: > - lstat: used by canonicalize-lgpl.c. I don't understand why this doesn't > give link errors on mingw?? I think this is because on mingw, does #define lstat stat for mingw, rather than a full-blown rpl_lstat replacement func

Re: relocwrapper interaction with replacement functions

2010-06-09 Thread Bruno Haible
Hi Ben, > To demonstrate what I meant, I spent a bit of time working on > modules/relocatable-prog-wrapper, coming up with this: > > Makefile.am: > if !RELOCATABLE_VIA_LD > noinst_PROGRAMS += reloc-wrapper > reloc_wrapper_CPPFLAGS = \ > -I$(builddir) -I$(srcdir) -I$(RE

Re: relocwrapper interaction with replacement functions

2010-06-08 Thread Ben Pfaff
Bruno Haible writes: >> On OpenBSD 4.7, GNU PSPP from current "master" configured with >> --enable-relocatable fails linking relocwrapper.c at "make >> install" time: >> >> /tmp//ccy8gNb6.o(.text+0x64): In function `add_dotbin': >> gl/relocwrapper.c:105: undefined reference to `rpl_fprin

Re: relocwrapper interaction with replacement functions

2010-06-08 Thread Bruno Haible
Hi Ben, > On OpenBSD 4.7, GNU PSPP from current "master" configured with > --enable-relocatable fails linking relocwrapper.c at "make > install" time: > > /tmp//ccy8gNb6.o(.text+0x64): In function `add_dotbin': > gl/relocwrapper.c:105: undefined reference to `rpl_fprintf' > /tmp//ccy8