integrated that one, now building up to:

make[2]: Entering directory '/home/packages/tmp/afnix-2.2.0/prj'
make[3]: Entering directory '/home/packages/tmp/afnix-2.2.0/prj/std'
make[4]: Entering directory '/home/packages/tmp/afnix-2.2.0/prj/std/adp'
make[5]: Entering directory '/home/packages/tmp/afnix-2.2.0/prj/std/adp/src'
../../../../cnf/bin/afnix-aexec --prefix=../../../../bld --binexe="axc"
std-adp-xhtmw.als
../../../../bld/bin/axc: error while loading shared libraries:
libafnix-eng.so.2: cannot open shared object file: No such file or directory
afnix-aexec: failure std-adp-xhtmw.als
Makefile:54: recipe for target 'std-adp-xhtmw.axc' failed
make[5]: *** [std-adp-xhtmw.axc] Error 1

maybe it's better to look at the new upstream.


diff -Nru afnix-2.2.0/debian/changelog afnix-2.2.0/debian/changelog
--- afnix-2.2.0/debian/changelog        2012-03-26 23:21:56.000000000 +0000
+++ afnix-2.2.0/debian/changelog        2015-07-08 16:46:32.000000000 +0000
@@ -1,3 +1,10 @@
+afnix (2.2.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix build failure with GCC 5. Closes: #777767.
+
+ -- Matthias Klose <d...@debian.org>  Wed, 08 Jul 2015 18:46:01 +0200
+
 afnix (2.2.0-2) unstable; urgency=low
 
   * Update debian/control.
diff -Nru afnix-2.2.0/debian/patches/gcc-4.3_support.patch 
afnix-2.2.0/debian/patches/gcc-4.3_support.patch
--- afnix-2.2.0/debian/patches/gcc-4.3_support.patch    2012-03-26 
23:14:20.000000000 +0000
+++ afnix-2.2.0/debian/patches/gcc-4.3_support.patch    2015-07-08 
16:39:10.000000000 +0000
@@ -14,3 +14,14 @@
  STACCFLAGS    =
  DYNCCFLAGS    = -fPIC
  PLTCCFLAGS      = 
+--- a/cnf/mak/afnix-gcc-5.mak  2011-01-13 21:16:23.000000000 +1100
++++ b/cnf/mak/afnix-gcc-5.mak  2011-03-16 20:16:34.000000000 +1100
+@@ -24,7 +24,7 @@ LK           = gcc
+ AR              = ar
+ RANLIB                = ranlib
+ STDEVFLAGS      =
+-STDCCFLAGS      = -Wall -Werror -fno-builtin
++STDCCFLAGS      = -Wall -fno-builtin
+ STACCFLAGS    =
+ DYNCCFLAGS    = -fPIC
+ PLTCCFLAGS      = 
diff -Nru afnix-2.2.0/debian/patches/gcc5.diff 
afnix-2.2.0/debian/patches/gcc5.diff
--- afnix-2.2.0/debian/patches/gcc5.diff        1970-01-01 00:00:00.000000000 
+0000
+++ afnix-2.2.0/debian/patches/gcc5.diff        2015-07-08 16:31:47.000000000 
+0000
@@ -0,0 +1,230 @@
+--- afnix-2.2.0~/cnf/bin/afnix-vcomp   2015-06-24 18:07:27.704828795 +0000
++++ afnix-2.2.0/cnf/bin/afnix-vcomp    2015-06-24 18:07:59.068829444 +0000
+@@ -69,6 +69,7 @@
+       2.*) ccvers=2 ;;
+       3.*) ccvers=3 ;;
+       4.*) ccvers=4 ;;
++      5.*) ccvers=5 ;;
+       esac
+     fi
+     # check for g++
+@@ -79,6 +80,7 @@
+       2.*) ccvers=2 ;;
+       3.*) ccvers=3 ;;
+       4.*) ccvers=4 ;;
++      5.*) ccvers=5 ;;
+       esac
+     fi
+ }
+--- /dev/null  2015-01-14 06:03:17.000000000 +0000
++++ afnix-2.2.0/cnf/mak/afnix-gcc-5.mak        2015-06-24 18:28:08.364854471 
+0000
+@@ -0,0 +1,209 @@
++# ----------------------------------------------------------------------------
++# - afnix-gcc5                                                               -
++# - afnix compiler configuration - gcc configuration                         -
++# ----------------------------------------------------------------------------
++# - This program is  free software;  you can  redistribute it and/or  modify -
++# - it provided that this copyright notice is kept intact.                   -
++# -                                                                          -
++# - This  program  is  distributed in the hope  that it  will be useful, but -
++# - without  any   warranty;  without  even   the   implied    warranty   of -
++# - merchantability  or fitness for a particular purpose. In not event shall -
++# - the copyright holder be  liable for  any direct, indirect, incidental or -
++# - special damages arising in any way out of the use of this software.      -
++# ----------------------------------------------------------------------------
++# - author (c) 1999-2015 amaury   darsch                                     -
++# - author (c) 2011-2013 pino     toscano                      hurd platform -
++# ---------------------------------------------------------------------------
++
++# ----------------------------------------------------------------------------
++# - compiler and linker section                                              -
++# ----------------------------------------------------------------------------
++
++CC              = g++
++LD              = g++
++LK            = g++
++AR              = ar
++RANLIB                = ranlib
++STDEVFLAGS      =
++STDCCFLAGS      = -Wall -Werror -fno-builtin
++STACCFLAGS    =
++DYNCCFLAGS    = -fPIC
++PLTCCFLAGS      = 
++DEBUGFLAGS      = -g
++OPTCCFLAGS      = -O2
++PFLCCFLAGS      = -g -pg
++COVCCFLAGS      = -g -fprofile-arcs -ftest-coverage
++CPPCCFLAGS      = -nostdinc -nostdinc++
++CXXCCFLAGS      = 
++STDDEFINES      =
++DBGDEFINES      = -DAFNIX_DEBUG
++OPTDEFINES      =
++PFLDEFINES    = -DAFNIX_DEBUG -DAFNIX_PROFILED
++STDINCLUDE      =
++AFXCPPTYPE    = GNU
++AFXCPPVERS    = 5
++
++# ----------------------------------------------------------------------------
++# - compiler dependant libraries                                             -
++# ----------------------------------------------------------------------------
++
++# adjust for linux platform
++ifeq ($(PLATNAME),linux)
++PLTCCFLAGS      = -MMD -pthread
++ifeq ($(OPENMP),yes)
++PLTCCFLAGS     += -fopenmp
++endif
++endif
++
++# adjust for solaris platform
++ifeq ($(PLATNAME),solaris)
++PLTDEFINES    = -MMD -D_REENTRANT
++endif
++
++# adjust for freebsd platform
++ifeq ($(PLATNAME),freebsd)
++PLTDEFINES    = -MMD -D_REENTRANT
++endif
++
++# adjust for gnu/freebsd platform
++ifeq ($(PLATNAME),gnukbsd)
++PLTDEFINES    = -MMD -D_REENTRANT
++ifeq ($(OPENMP),yes)
++PLTCCFLAGS     += -fopenmp
++endif
++endif
++
++# adjust for gnu platform
++ifeq ($(PLATNAME),gnu)
++PLTDEFINES    = -MMD -D_REENTRANT
++ifeq ($(OPENMP),yes)
++PLTCCFLAGS     += -fopenmp
++endif
++endif
++
++# adjust for darwin platform
++ifeq ($(PLATNAME),darwin)
++PLTDEFINES    = -D_REENTRANT
++PLTSDKROOT    = $(SDKDIR)
++PLTSDKARCH    = -arch ppc -arch ppc64 -arch i686
++PLTCCFLAGS      = -isysroot ${PLTSDKROOT} $(PLTSDKARCH)
++PLTLDFLAGS    = $(PLTCCFLAGS)
++PLTLKFLAGS    = $(PLTCCFLAGS)
++PLTEVFLAGS    = MACOSX_DEPLOYMENT_TARGET=10.5
++endif
++
++# ----------------------------------------------------------------------------
++# - platform dependant linking flags                                         -
++# ----------------------------------------------------------------------------
++
++# adjust for linux platform
++ifeq ($(PLATNAME),linux)
++ARFLAGS               = rc
++LDFLAGS               = -shared -pthread
++ifeq ($(LKMODE),soname)
++LDFLAGS              += -Wl,-soname,$(SOMAJ)
++endif
++ifeq ($(OPENMP),yes)
++LDFLAGS        += -fopenmp
++endif
++AFXCPPLIBS    =
++endif
++
++# adjust for solaris platform
++ifeq ($(PLATNAME),solaris)
++ARFLAGS               = rc
++LDFLAGS               = -shared
++ifeq ($(LKMODE),soname)
++LDFLAGS              += -Wl,-h,$(SOMAJ)
++endif
++AFXCPPLIBS    =
++endif
++
++# adjust for freebsd platform
++ifeq ($(PLATNAME),freebsd)
++ARFLAGS               = rc
++LDFLAGS               = -shared
++ifeq ($(LKMODE),soname)
++LDFLAGS              += -Wl,-soname,$(SOMAJ)
++endif
++AFXCPPLIBS    =
++endif
++
++# adjust for gnu/freebsd platform
++ifeq ($(PLATNAME),gnukbsd)
++ARFLAGS               = rc
++LDFLAGS               = -shared
++ifeq ($(LKMODE),soname)
++LDFLAGS              += -Wl,-soname,$(SOMAJ)
++endif
++AFXCPPLIBS    =
++endif
++
++# adjust for gnu platform
++ifeq ($(PLATNAME),gnu)
++ARFLAGS               = rc
++LDFLAGS               = -shared
++ifeq ($(LKMODE),soname)
++LDFLAGS              += -Wl,-soname,$(SOMAJ)
++endif
++AFXCPPLIBS    =
++endif
++
++# adjust for darwin platform
++ifeq ($(PLATNAME),darwin)
++ARFLAGS               = -rc
++LDFLAGS               = -dynamiclib $(PLTLDFLAGS)
++ifeq ($(LKMODE),dylib)
++LDFLAGS              += -compatibility_version $(MAJOR).$(MINOR)
++LDFLAGS        += -current_version $(MAJOR).$(MINOR).$(PATCH)
++else
++$(error, "undefined darwin linking mode")
++endif
++AFXCPPLIBS    =
++endif
++
++# ----------------------------------------------------------------------------
++# - platform dependant final executable flags                                -
++# ----------------------------------------------------------------------------
++
++LKFLAGS               =
++
++# adjust linker flags for linux
++ifeq ($(PLATNAME),linux)
++LKFLAGS       = -pthread
++endif
++
++# adjust linker flags for freebsd
++ifeq ($(PLATNAME),freebsd)
++LKFLAGS       = -pthread
++endif
++
++# adjust linker flags for darwin
++ifeq ($(PLATNAME),darwin)
++LKFLAGS       = $(PLTLKFLAGS)
++endif
++
++# ----------------------------------------------------------------------------
++# - target dependant final executable flags                                  -
++# ----------------------------------------------------------------------------
++
++# adjust extra flag for profiled code
++ifeq ($(CCMODE),profiled)
++LKFLAGS              += -pg
++endif
++
++# adjust platform flag for static or dynamic
++ifeq ($(LKTYPE),dynamic)
++PLTCCFLAGS     += $(DYNCCFLAGS)
++endif
++ifeq ($(LKTYPE),static)
++PLTCCFLAGS     += $(STACCFLAGS)
++endif
++
++# adjust intel processor
++ifeq ($(PROCNAME)-$(PROCTYPE),ia32-586)
++OPTCCFLAGS     += -march=i586
++endif
++ifeq ($(PROCNAME)-$(PROCTYPE),ia32-686)
++OPTCCFLAGS     += -march=i686
++endif
diff -Nru afnix-2.2.0/debian/patches/i486-arch.patch 
afnix-2.2.0/debian/patches/i486-arch.patch
--- afnix-2.2.0/debian/patches/i486-arch.patch  2012-03-26 23:14:20.000000000 
+0000
+++ afnix-2.2.0/debian/patches/i486-arch.patch  2015-07-08 16:39:33.000000000 
+0000
@@ -19,3 +19,19 @@
 -OPTCCFLAGS     += -march=i686
 +OPTCCFLAGS     += -march=i486
  endif
+--- a/cnf/mak/afnix-gcc-5.mak  2011-01-13 21:16:23.000000000 +1100
++++ b/cnf/mak/afnix-gcc-5.mak  2011-03-16 20:10:11.000000000 +1100
+@@ -175,10 +175,11 @@ ifeq ($(LKTYPE),static)
+ PLTCCFLAGS     += $(STACCFLAGS)
+ endif
+ 
++#On Debian, support 486 processors
+ # adjust intel processor
+ ifeq ($(PROCNAME)-$(PROCTYPE),ia32-586)
+-OPTCCFLAGS     += -march=i586
++OPTCCFLAGS     += -march=i486
+ endif
+ ifeq ($(PROCNAME)-$(PROCTYPE),ia32-686)
+-OPTCCFLAGS     += -march=i686
++OPTCCFLAGS     += -march=i486
+ endif
diff -Nru afnix-2.2.0/debian/patches/series afnix-2.2.0/debian/patches/series
--- afnix-2.2.0/debian/patches/series   2012-03-26 23:15:16.000000000 +0000
+++ afnix-2.2.0/debian/patches/series   2015-07-08 16:37:12.000000000 +0000
@@ -1,3 +1,4 @@
+gcc5.diff
 AddSoname.patch
 #MissingEul.patch
 allRpath.patch
diff -Nru afnix-2.2.0/debian/patches/use-dpkg-buildflags.patch 
afnix-2.2.0/debian/patches/use-dpkg-buildflags.patch
--- afnix-2.2.0/debian/patches/use-dpkg-buildflags.patch        2012-03-26 
23:15:16.000000000 +0000
+++ afnix-2.2.0/debian/patches/use-dpkg-buildflags.patch        2015-07-08 
16:45:53.000000000 +0000
@@ -5,10 +5,10 @@
 Author: Simon Ruderich <si...@ruderich.org>
 Last-Update: 2012-03-23
 
-Index: afnix-2.2.0/cnf/mak/afnix-rule.mak
+Index: b/cnf/mak/afnix-rule.mak
 ===================================================================
---- afnix-2.2.0.orig/cnf/mak/afnix-rule.mak    2012-03-23 16:28:31.661433331 
+0100
-+++ afnix-2.2.0/cnf/mak/afnix-rule.mak 2012-03-23 16:28:32.461433362 +0100
+--- a/cnf/mak/afnix-rule.mak
++++ b/cnf/mak/afnix-rule.mak
 @@ -16,34 +16,34 @@
  
  ifeq ($(CCMODE),debug)
@@ -58,11 +58,11 @@
  DEFINES         = $(CCDEFINE)   $(EXTCCDEFINE)
  PPINCLS               = $(STDINCLUDE) $(INCLUDE)
  XXINCLS               = $(STDINCLUDE) $(EXTINCLUDES) $(INCLUDE)
-Index: afnix-2.2.0/cnf/mak/afnix-gcc-4.mak
+Index: b/cnf/mak/afnix-gcc-4.mak
 ===================================================================
---- afnix-2.2.0.orig/cnf/mak/afnix-gcc-4.mak   2012-03-23 16:28:32.137433348 
+0100
-+++ afnix-2.2.0/cnf/mak/afnix-gcc-4.mak        2012-03-23 16:28:32.461433362 
+0100
-@@ -30,7 +30,8 @@
+--- a/cnf/mak/afnix-gcc-4.mak
++++ b/cnf/mak/afnix-gcc-4.mak
+@@ -30,7 +30,8 @@ STACCFLAGS   =
  DYNCCFLAGS    = -fPIC
  PLTCCFLAGS      = 
  DEBUGFLAGS      = -g
@@ -72,7 +72,7 @@
  PFLCCFLAGS      = -g -pg
  COVCCFLAGS      = -g -fprofile-arcs -ftest-coverage
  CPPCCFLAGS      = -nostdinc -nostdinc++
-@@ -89,7 +90,7 @@
+@@ -89,7 +90,7 @@ endif
  # adjust for linux platform
  ifeq ($(PLATNAME),linux)
  ARFLAGS               = rc
@@ -81,7 +81,7 @@
  ifeq ($(LKMODE),soname)
  LDFLAGS              += -Wl,-soname,$(SOMIN)
  endif
-@@ -99,7 +100,7 @@
+@@ -99,7 +100,7 @@ endif
  # adjust for solaris platform
  ifeq ($(PLATNAME),solaris)
  ARFLAGS               = rc
@@ -90,7 +90,7 @@
  ifeq ($(LKMODE),soname)
  LDFLAGS              += -Wl,-h,$(SOMIN)
  endif
-@@ -109,7 +110,7 @@
+@@ -109,7 +110,7 @@ endif
  # adjust for freebsd platform
  ifeq ($(PLATNAME),freebsd)
  ARFLAGS               = rc
@@ -99,7 +99,7 @@
  ifeq ($(LKMODE),soname)
  LDFLAGS              += -Wl,-soname,$(SOMIN)
  endif
-@@ -119,7 +120,7 @@
+@@ -119,7 +120,7 @@ endif
  # adjust for gnu/freebsd platform
  ifeq ($(PLATNAME),gnukbsd)
  ARFLAGS               = rc
@@ -108,7 +108,7 @@
  ifeq ($(LKMODE),soname)
  LDFLAGS              += -Wl,-soname,$(SOMIN)
  endif
-@@ -129,7 +130,7 @@
+@@ -129,7 +130,7 @@ endif
  # adjust for gnu platform
  ifeq ($(PLATNAME),gnu)
  ARFLAGS               = rc
@@ -117,7 +117,7 @@
  ifeq ($(LKMODE),soname)
  LDFLAGS              += -Wl,-soname,$(SOMIN)
  endif
-@@ -139,7 +140,7 @@
+@@ -139,7 +140,7 @@ endif
  # adjust for darwin platform
  ifeq ($(PLATNAME),darwin)
  ARFLAGS               = -rc
@@ -126,7 +126,102 @@
  ifeq ($(LKMODE),dylib)
  LDFLAGS              += -compatibility_version $(MAJOR).$(MINOR)
  LDFLAGS        += -current_version $(MAJOR).$(MINOR).$(PATCH)
-@@ -153,21 +154,22 @@
+@@ -153,21 +154,22 @@ endif
+ # - platform dependant final executable flags                                -
+ # ----------------------------------------------------------------------------
+ 
+-LKFLAGS               =
++# Can't use LDFLAGS as it's used for library linking flags.
++LKFLAGS               = $(shell dpkg-buildflags --get LDFLAGS)
+ 
+ # adjust linker flags for linux
+ ifeq ($(PLATNAME),linux)
+-LKFLAGS       = -pthread
++LKFLAGS       += -pthread
+ endif
+ 
+ # adjust linker flags for freebsd
+ ifeq ($(PLATNAME),freebsd)
+-LKFLAGS       = -pthread
++LKFLAGS       += -pthread
+ endif
+ 
+ # adjust linker flags for darwin
+ ifeq ($(PLATNAME),darwin)
+-LKFLAGS       = $(PLTLKFLAGS)
++LKFLAGS       += $(PLTLKFLAGS)
+ endif
+ 
+ # ----------------------------------------------------------------------------
+Index: b/cnf/mak/afnix-gcc-5.mak
+===================================================================
+--- a/cnf/mak/afnix-gcc-5.mak
++++ b/cnf/mak/afnix-gcc-5.mak
+@@ -30,7 +30,8 @@ STACCFLAGS   =
+ DYNCCFLAGS    = -fPIC
+ PLTCCFLAGS      = 
+ DEBUGFLAGS      = -g
+-OPTCCFLAGS      = -O2
++# dpkg-buildflags sets -O2 when noopt is not used
++OPTCCFLAGS      =
+ PFLCCFLAGS      = -g -pg
+ COVCCFLAGS      = -g -fprofile-arcs -ftest-coverage
+ CPPCCFLAGS      = -nostdinc -nostdinc++
+@@ -99,7 +100,7 @@ endif
+ # adjust for linux platform
+ ifeq ($(PLATNAME),linux)
+ ARFLAGS               = rc
+-LDFLAGS               = -shared -pthread
++LDFLAGS               += -shared -pthread
+ ifeq ($(LKMODE),soname)
+ LDFLAGS              += -Wl,-soname,$(SOMAJ)
+ endif
+@@ -112,7 +113,7 @@ endif
+ # adjust for solaris platform
+ ifeq ($(PLATNAME),solaris)
+ ARFLAGS               = rc
+-LDFLAGS               = -shared
++LDFLAGS               += -shared
+ ifeq ($(LKMODE),soname)
+ LDFLAGS              += -Wl,-h,$(SOMAJ)
+ endif
+@@ -122,7 +123,7 @@ endif
+ # adjust for freebsd platform
+ ifeq ($(PLATNAME),freebsd)
+ ARFLAGS               = rc
+-LDFLAGS               = -shared
++LDFLAGS               += -shared
+ ifeq ($(LKMODE),soname)
+ LDFLAGS              += -Wl,-soname,$(SOMAJ)
+ endif
+@@ -132,7 +133,7 @@ endif
+ # adjust for gnu/freebsd platform
+ ifeq ($(PLATNAME),gnukbsd)
+ ARFLAGS               = rc
+-LDFLAGS               = -shared
++LDFLAGS               += -shared
+ ifeq ($(LKMODE),soname)
+ LDFLAGS              += -Wl,-soname,$(SOMAJ)
+ endif
+@@ -142,7 +143,7 @@ endif
+ # adjust for gnu platform
+ ifeq ($(PLATNAME),gnu)
+ ARFLAGS               = rc
+-LDFLAGS               = -shared
++LDFLAGS               += -shared
+ ifeq ($(LKMODE),soname)
+ LDFLAGS              += -Wl,-soname,$(SOMAJ)
+ endif
+@@ -152,7 +153,7 @@ endif
+ # adjust for darwin platform
+ ifeq ($(PLATNAME),darwin)
+ ARFLAGS               = -rc
+-LDFLAGS               = -dynamiclib $(PLTLDFLAGS)
++LDFLAGS               += -dynamiclib $(PLTLDFLAGS)
+ ifeq ($(LKMODE),dylib)
+ LDFLAGS              += -compatibility_version $(MAJOR).$(MINOR)
+ LDFLAGS        += -current_version $(MAJOR).$(MINOR).$(PATCH)
+@@ -166,21 +167,22 @@ endif
  # - platform dependant final executable flags                                -
  # ----------------------------------------------------------------------------
  

Reply via email to