bug-gnulib
[Top][All Lists]
Advanced

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

Re: module libposix


From: Bruce Korb
Subject: Re: module libposix
Date: Tue, 21 Sep 2010 09:17:10 -0700

Hi,

On Tue, Sep 21, 2010 at 8:50 AM, Matt Rice <address@hidden> wrote:
>> There is an approved way, but it is really obtuse:
>>  $(\cd ./$(git rev-parse --show-cdup) && pwd -P)
>> Far from the first thing that comes to mind.
>
> hmm, even this doesn't seem to work when the GIT_DIR
> environment variable is set

If you google for "git root" you get that answer and it seems to work
for me in a number of environments.  The GIT folks apparently
have a little work to do....I like my alias.

Anyway, I solved my issue with a "cd" first:

>    local git_ver=$(\cd $sdir ; ./build-aux/git-version-gen /dev/null | \
>        sed -e 's/-dirty/-modified/')

yielding:

> int  const _libposix_version = 20100915;
> char const _libposix_git_version[] = "0.0.4260-ef0cb-modified";

and the reconf works, modulo a warning:

>>mk_config> autoreconf -i
>libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
>libtoolize: copying file `build-aux/ltmain.sh'
>libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `glm4'.
>libtoolize: copying file `glm4/libtool.m4'
>libtoolize: copying file `glm4/ltoptions.m4'
>libtoolize: copying file `glm4/ltsugar.m4'
>libtoolize: copying file `glm4/ltversion.m4'
>libtoolize: copying file `glm4/lt~obsolete.m4'
>libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'

which needs some fix some place.  The final build fails tho:

>/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o libposix.la -rpath 
>/usr/local/lib  *.lo asnprintf.o \
> basename-lgpl.o chdir-long.o cloexec.o dirname-lgpl.o dprintf.o dup-safer.o 
> duplocale.o fcntl.o\
>  fd-safer.o fflush.o filenamecat-lgpl.o fprintf.o fpurge.o fseek.o fseeko.o 
> futimens.o getcwd.o gettime.o \
> glob.o ioctl.o isfinite.o isnand.o isnanf.o isnanl.o linkat.o nanosleep.o 
> openat-proc.o pipe-safer.o \
> printf.o printf-args.o printf-parse.o remove.o safe-read.o safe-write.o 
> save-cwd.o snprintf.o sprintf.o \
> stripslash.o strstr.o strtod.o tempname.o utimens.o utimensat.o vasnprintf.o 
> vdprintf.o vfprintf.o \
> vprintf.o vsnprintf.o vsprintf.o xgetcwd.o xmalloc.o
>
>*** Warning: Linking the shared library libposix.la against the non-libtool
>*** objects  asnprintf.o [...] -Wl,-soname -Wl,libposix.so.0 -o 
>.libs/libposix.so.0.0.0
>/usr/bin/ld: asnprintf.o: relocation R_X86_64_32 against `a local symbol' can 
>not be used when \
> making a shared object; recompile with -fPIC
>asnprintf.o: could not read symbols: Bad value
>collect2: ld returned 1 exit status
>make[4]: *** [libposix.la] Error 1
>make[4]: Leaving directory 
>`/usr/local/src/gnulib/gnulib/libposix/libposix/libposix

Looks like more sed work is needed, despite:
>  gnulib-tool --libtool --lib=libposix --create-testdir --source-base=lib 
> --dir=libposix $mods

Attachment: mk-libposix.sh
Description: Bourne shell script


reply via email to

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