Re: bglibs fails to build

"George Georgalis" <[email protected]> Fri, 8 Dec 2006 23:08:17 -0500
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
On Fri, Dec 08, 2006 at 03:54:37PM
>George,
>
>Did you find a solution to your problem:
>
>(   echo '#!/bin/sh';  echo 'source=$1; shift';  echo 'base=`echo
>"$source" | sed -e s:\\\\.c$::`';  echo
>exec libtool --mode=compile --silent `head -n 1 conf-cc` -I.  '-o
>${base}.lo -c $source ${1+"$ <at> "}';  ) >libcompile
>chmod 755 libcompile
>./libcompile adt/adt_sp.c
>libtool: compile: unable to infer tagged configuration
>libtool: compile: specify a tag with `--tag'
>*** Error code 1
>
>Stop.
>make: stopped in /usr/home/geo/bgware/bglibs-1.102
>
>I am having the same problem, compiling under OpenBSD 4.0


Well no. I've seen libtool problem repotrs quoting
"libtool: compile: specify a tag with `--tag'"
as old as NetBSD 1.x so I guess it's not specifically
a bglibs problem but an API/standards issue. Unfortunatly
for all the problem reports I looked at, I didn't see
any solution.

it looks like a test of the following command, but I don't know
what --tag is or what the BG script test is about. --- see below.

BTW I'm using libtool-1.5.22 on i386
ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/libtool/README.html

// George


 geo@run:/home/geo/ libtool --tag=CC --help && echo yes || echo no
Usage: libtool [OPTION]... [MODE-ARG]...

Provide generalized library-building support services.

    --config          show all configuration variables
    --debug           enable verbose shell tracing
-n, --dry-run         display commands without modifying any files
    --features        display basic configuration information and exit
    --finish          same as `--mode=finish'
    --help            display this help message and exit
    --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
    --quiet           same as `--silent'
    --silent          don't print informational messages
    --tag=TAG         use configuration variables from tag TAG
    --version         print version information

MODE must be one of the following:

      clean           remove files from the build directory
      compile         compile a source file into a libtool object
      execute         automatically set library path, then run a program
      finish          complete the installation of libtool libraries
      install         install libraries or executables
      link            create a library or an executable
      uninstall       remove libraries from an installed directory

MODE-ARGS vary depending on the MODE.  Try `libtool --help --mode=MODE' for
a more detailed description of MODE.

Report bugs to <[email protected]>.
yes



On Wed, Dec 06, 2006 at 10:40:01PM -0500, George Georgalis wrote:
>
>So, I decided to give cvm a try and am starting with bglibs-1.102,
>but it fails to build with 
>
>libtool: compile: unable to infer tagged configuration
>libtool: compile: specify a tag with `--tag'
>
>I tried using make and gmake on this netbsd
>3.0.0_STABLE system, seems this has come up before
>but I don't see a fix.  Is anyone familiar with the
>problem able to offer a solution?
>
>// George
>
> geo@run:/home/geo/bgware/bglibs-1.102/ make clean
>rm -f `cat TARGETS`
> geo@run:/home/geo/bgware/bglibs-1.102/ make
>(   echo '#!/bin/sh';  echo 'source=$1; shift';  echo 'base=`echo "$source" | sed -e s:\\\\.c$::`';  echo exec `head -n 1 conf-cc` -I.  '-o ${base}.o -c $source ${1+"$@"}';  ) >compile
>chmod 755 compile
>(   echo '#!/bin/sh'; echo 'main="$1"; shift'; echo exec `head -n 1 conf-ld` -L.  '-o "$main" "$main.o" ${1+"$@"}' ;  ) >load
>chmod 755 load
>( ( ./compile trylib.c && ./load trylib -lcrypt ) >/dev/null 2>&1  && echo -lcrypt || exit 0 ) >crypt.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -ldl ) >/dev/null 2>&1  && echo -ldl || exit 0 ) >dl.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -lm ) >/dev/null 2>&1  && echo -lm || exit 0 ) >m.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -lnet ) >/dev/null 2>&1  && echo -lnet || exit 0 ) >net.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -lrt ) >/dev/null 2>&1  && echo -lrt || exit 0 ) >rt.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -ls ) >/dev/null 2>&1  && echo -ls || exit 0 ) >s.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -lshadow ) >/dev/null 2>&1  && echo -lshadow || exit 0 ) >shadow.lib
>rm -f trylib.o trylib
>( ( ./compile trylib.c && ./load trylib -lsocket -lnsl ) >/dev/null 2>&1  && echo -lsocket -lnsl || exit 0 ) >socket.lib
>rm -f trylib.o trylib
>cat warn-auto.sh choose.sh >choose
>chmod 755 choose
>( ( ./compile sys/trysystime.c >/dev/null 2>&1 &&  echo '#include <sys/time.h>' );  ( ./compile sys/trytime.c >/dev/null 2>&1 &&  echo '#include <time.h>' ) ) >systime.h
>rm -f trysystime.o trytime.o
>( set -e;  cat sysdeps-head.h;  ./choose c   attribute;  ./choose cl  daylight;  ./choose c   deprecated;  ./choose clr ulong32;  ./choose clr ulong64;  ./choose clr endian;  ./choose c   dirent;  ./choose cl  dl `cat dl.lib`;  ./choose c   ipv6;  ./choose cl  vfork;  ./choose cl  getpeereid;  ./choose cl  flock;  ./choose cl  peercred;  ./choose cl  sendfile;  ./choose cl  sigaction;  ./choose cl  sigprocmask;  ./choose cl  spnam;  ./choose cl  userpw;  ./choose cl  waitp;  ./choose c   zlib;  ./choose clr poll;  ./choose c   sysselect;  ./choose cl  setenv;  ./choose c   timespec;  ./choose cl  clockgettime `cat rt.lib`;  ./choose cl  unsetenv;  ./choose clr unaligned;  ./choose cl  mkfifo;  ./choose clr namedpipebug;  ./choose c   inline;  cat sysdeps-tail.h;  ) >sysdeps.h
>( if libtool --tag=CC --help >/dev/null 2>&1; then tag='--tag=CC'; fi;  echo '#!/bin/sh';  echo 'lib="$1"; shift'; echo 'rm -f "$lib"'; echo libtool --mode=link --silent $tag `head -n 1 conf-ld` '-o "$lib" -rpath' `head -n 1 conf-lib` -version-info `head -n 1 LIBVERSION` '${1+"$@"}'; ) >makeshlib
>chmod 755 makeshlib
>(   echo '#!/bin/sh';  echo 'source=$1; shift';  echo 'base=`echo "$source" | sed -e s:\\\\.c$::`';  echo exec libtool --mode=compile --silent `head -n 1 conf-cc` -I.  '-o ${base}.lo -c $source ${1+"$@"}';  ) >libcompile
>chmod 755 libcompile
>./libcompile adt/adt_sp.c
>libtool: compile: unable to infer tagged configuration
>libtool: compile: specify a tag with `--tag'
>*** Error code 1
>
>Stop.
>make: stopped in /usr/home/geo/bgware/bglibs-1.102
>
>
>
>
>-- 
>George Georgalis, systems architect, administrator <IXOYE><
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>

-- 
George Georgalis, systems architect, administrator <IXOYE><