[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-commit
Subject:    [Gnash-commit] [bug #50174] `make check` failed, due to ming-related link error
From:       Nutchanon Wetchasit <INVALID.NOREPLY () gnu ! org>
Date:       2017-01-29 10:58:35
Message-ID: 20170129-175835.sv82809.99030 () savannah ! gnu ! org
[Download RAW message or body]

Follow-up Comment #2, bug #50174 (project gnash):

From observation under my configuration, `MING_VERSION_CODE` is not defined by
libming header, but is defined by `Makefile`(s) as a result of `./configure`
process; which is done as follows
<http://git.savannah.gnu.org/cgit/gnash.git/tree/macros/ming.m4?id=ff92e0ae816440b81ecb46215717a376a77491be#n53>:


  if test x"$MING_CONFIG" != "x"; then
    MING_VERSION=`$MING_CONFIG --version`
    major=`echo $MING_VERSION | cut -d '.' -f 1`
    minor=`echo $MING_VERSION | cut -d '.' -f 2`
    micro=`echo $MING_VERSION | cut -d '.' -f 3`
    beta=`echo $MING_VERSION | sed -ne 's/.*beta\([[0-9]]*\).*/\1/p'`
    dnl This is a little screwy. The previous Ming release was tagged beta5,
    dnl but the newer one is tagged rc1. This makes it look like rc1 is older
the
    dnl beta 5 release, as it only looks at the last integer. So we fudge the
    dnl numbers so tc1 comes after beta 5. ie.. this looks like beta 6.
    if test -z $beta; then
      beta=`echo $MING_VERSION | sed -ne 's/.*rc\([[0-9]]*\).*/\1/p'`
      if test x"$beta" != x; then
        beta=`eval expr $beta + 5`
      fi
    fi
    MING_VERSION_CODE=`printf %2.2d%2.2d%2.2d%2.2d $major $minor $micro
$beta`
    MING_CFLAGS=`$MING_CONFIG --cflags`
    MING_LIBS=`$MING_CONFIG --libs`
    MING_PATH=`$MING_CONFIG --bindir`
    AC_PATH_PROG([MAKESWF], [makeswf], , [$MING_PATH:$PATH])
  fi


In my configuration, `MING_VERSION_CODE` became `00040400` in Makefile(s);
which they, in turn, do something like this:

$(CXX) -some -options -DMING_VERSION_CODE=00040400 sourcefile.cpp


Which is equivalent to doing this in C-preprocessor:

#define MING_VERSION_CODE 00040400


Then, they are used for things like this in CPP-processed ActionScript
<http://git.savannah.gnu.org/cgit/gnash.git/tree/testsuite/actionscript.all/enumerate.as?id=ff92e0ae816440b81ecb46215717a376a77491be#n211>
 and C
<http://git.savannah.gnu.org/cgit/gnash.git/tree/testsuite/misc-ming.all/matrix_test.c?id=ff92e0ae816440b81ecb46215717a376a77491be#n852>
 code:

#if MING_VERSION_CODE >= 00040004


Gnash: 0.8.11dev (git ff92e0a 28-Jan-2017)
GCC: 4.7.2-5 (debian)
G++: 4.7.2-5 (debian)
Ming: 0.4.4-1.1 (debian)
System: Debian GNU/Linux 7.0 Wheezy i386


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50174>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/gnash-commit


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic