Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error: size of array '_GStaticAssertCompileTimeAssertion_0'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Jan 20, 2017 11:12 pm    Post subject: error: size of array '_GStaticAssertCompileTimeAssertion_0' Reply with quote

I wonder if the ebuild needs to be changed, since this happens with two different major versions of this package.

Code:

 * fsthost-1.6.2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking fsthost-1.6.2.tar.xz to /var/tmp/portage/media-sound/fsthost-1.6.2/work
>>> Source unpacked in /var/tmp/portage/media-sound/fsthost-1.6.2/work
>>> Preparing source in /var/tmp/portage/media-sound/fsthost-1.6.2/work/fsthost-1.6.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-sound/fsthost-1.6.2/work/fsthost-1.6.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-sound/fsthost-1.6.2/work/fsthost-1.6.2 ...
make -j2 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ 'LINK=winegcc -Wl,-O1 -Wl,--as-needed' LIB_INST_PATH=/usr/lib64/wine LASH_EXISTS=yes
x86_64-pc-linux-gnu-gcc -c -march=core2 -O2 -pipe -m32 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/lash-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/uuid -I/usr/include/libxml2 -I/usr/include/alsa -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native  -DHAVE_LASH -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o fsthost_32.o fsthost.c
x86_64-pc-linux-gnu-gcc -c -march=core2 -O2 -pipe -m32 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/lash-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/uuid -I/usr/include/libxml2 -I/usr/include/alsa -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native  -DHAVE_LASH -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o cpuusage_32.o cpuusage.c
x86_64-pc-linux-gnu-gcc -c -march=core2 -O2 -pipe -m32 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/lash-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/uuid -I/usr/include/libxml2 -I/usr/include/alsa -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native  -DHAVE_LASH -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o proto_32.o proto.c
x86_64-pc-linux-gnu-gcc -c -march=core2 -O2 -pipe -m32 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/lash-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/uuid -I/usr/include/libxml2 -I/usr/include/alsa -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native  -DHAVE_LASH -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o jfst/sysex_32.o jfst/sysex.c
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from fsthost.c:31:
/usr/include/glib-2.0/glib/gtypes.h: In function '_GLIB_CHECKED_ADD_U64':
/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array '_GStaticAssertCompileTimeAssertion_0' is negative
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
                                                     ^
/usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/usr/include/glib-2.0/glib/gmacros.h:232:44: note: in expansion of macro 'G_PASTE'
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
                                            ^
/usr/include/glib-2.0/glib/gtypes.h:423:3: note: in expansion of macro 'G_STATIC_ASSERT'
   G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
   ^
x86_64-pc-linux-gnu-gcc -c -march=core2 -O2 -pipe -m32 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/lash-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/uuid -I/usr/include/libxml2 -I/usr/include/alsa -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native  -DHAVE_LASH -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o jfst/node_32.o jfst/node.c
make: *** [Makefile:128: fsthost_32.o] Error 1
make: *** Waiting for unfinished jobs....


ebuild:
Code:

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit base toolchain-funcs multilib

DESCRIPTION="Official fork of FreeST, standalone Linux VST host - hybrid using
winelib, JACK and Gtk+"
HOMEPAGE="http://sourceforge.net/projects/fsthost/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="lash"

CDEPEND="app-emulation/wine
   dev-libs/libxml2
   media-sound/jack-audio-connection-kit
   x11-libs/gtk+:2
   lash? ( media-sound/lash )"
#   lash? ( virtual/liblash )"
RDEPEND="${CDEPEND}
   gnome-extra/zenity"
DEPEND="${CDEPEND}
   virtual/pkgconfig"

RESTRICT="mirror"

DOCS=(README)

src_prepare() {
   # prevent illegal instruction in wine dialog when there is no sse2 available
   sed -i -e "s/-mfpmath=sse//" -e "s/-msse2//" Makefile || die
}

src_compile() {
   # need to fix libdir on amd64
   base_src_make CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
      LINK="winegcc ${LDFLAGS}" \
      LIB_INST_PATH="${EPREFIX}"/usr/$(get_libdir)/wine \
      $(use lash && echo "LASH_EXISTS=yes" || echo "LASH_EXISTS=no")
}

src_install() {
   # need to specify all args to stop compiling again on install
   base_src_install CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
      LINK="winegcc ${LDFLAGS}" \
      LIB_INST_PATH="${EPREFIX}"/usr/$(get_libdir)/wine \
      $(use lash && echo "LASH_EXISTS=yes" || echo "LASH_EXISTS=no")
}


EDIT: No, this happens if I try to manually make the src, so something is missing from my system, maybe?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Sat Jan 21, 2017 1:42 am    Post subject: Reply with quote

This looks like an upstream bug. They included a static assertion to check that some condition could never be false, yet it came up false for you and was not detected by their configure script. Based on the assertion, they need unsigned long long to be an 8 byte wide type. For me, it is, both with and without -m32. The assertion does not tell us whether the fault is that unsigned long long is not 8 bytes wide or the fault is that guint64, which they use as their reference, is not 8 bytes wide. I suggest you patch their source temporarily to determine which of those types is not 8 bytes wide. Try to determine why it is not, or, if you cannot determine it, report back here so that we can help you investigate.
Back to top
View user's profile Send private message
nilreM
n00b
n00b


Joined: 22 Nov 2007
Posts: 20
Location: Voronezh

PostPosted: Sun May 13, 2018 7:06 pm    Post subject: Reply with quote

I also got this problem and investigated it further. In the short, I've slightly patched the makefile. Now I'm able to build individually 64-bit and 32-bit versions of fsthost, both work on my 64-bit system, I tested them with GVST.

I still need some advice on how to incorporate correct PKG_CONFIG_PATCH for 32-bit compile invocations into makefile, and also how to autodetect wine library paths. Then I'll make final path and create ebuild for this package.

------

This works:
Code:
make PLAT=64

Build only 64-bit version of the fsthost works right away. The problem lies somewhere in 32-bit path. By default it always tries to build 32-bit, so default "make" also fails.

The failing assertion is inside glib code, not in the package code. As in the topic starter's message: "/usr/include/glib-2.0/glib/gtypes.h:423". It is obvious this is not the source of error and need not to be patched. What is going on here is that, despite we use -m32, it uses default 64-bit pkgconfig script, which kicks in 64-bit include of glibconfig.h. To get rid of this we should direct pkgconfig to correct 32-bit script which will kick in the right include. Simple:

Code:
PKG_CONFIG_PATH=/usr/lib32/pkgconfig make PLAT=32


will go much further and compile everything, failing only on linking phase:

Code:
gcc -c  -m32 -pthread -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib32/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native -mfpmath=sse -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o fsthost_32.o fsthost.c
gcc -c  -m32 -pthread -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib32/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native -mfpmath=sse -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o cpuusage_32.o cpuusage.c
...
gcc -c  -m32 -pthread -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib32/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native -mfpmath=sse -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o gtk/gjfst_32.o gtk/gjfst.c
gcc -c  -m64 -pthread -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib32/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -g -O2 -Wall -fPIC -Wno-deprecated-declarations -Wno-multichar -march=native -mfpmath=sse -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu   -o xmldb/list_64.o xmldb/list.c
gcc flist.c xmldb/list_64.o -I/usr/include/libxml2 -L/usr/lib32 -lxml2 -O3 -g -I. -o fsthost_list
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib32/libxml2.so when searching for -lxml2
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib32/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib32/libc.a when searching for -lc
winegcc -o fsthost32 fsthost_32.o cpuusage_32.o proto_32.o jfst/sysex_32.o jfst/node_32.o jfst/fps_32.o jfst/jfst_32.o jfst/jack_32.o jfst/process_32.o jfst/eventqueue_32.o jfst/jamc_32.o midifilter/midifilter_32.o fst/amc_32.o fst/fxb_32.o fst/vstwin_32.o serv/serv_32.o xmldb/info_32.o xmldb/list_32.o log/log_32.o gtk/gjfst_32.o -m32 -mwindows -L/usr/lib/i386-linux-gnu/wine -lpthread -lX11 -L/usr/lib32 -ljack -lpthread -lxml2 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
x86_64-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib64/wine-vanilla-2.0.3/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (fsthost32.06G60E.o) is not supported
winebuild: x86_64-pc-linux-gnu-ld failed with status 1
winegcc: winebuild failed
make: *** [Makefile:196: fsthost32] Error 2

(I ommited some dozens of successful gcc invocations.)

This build log looks exactly like the one for PLAT=64, except for two failing linking commands (which use wrong library paths). The 64-bit compile with "PLAT=32" also looks suspicious.

These two link commands work:

Code:
gcc -m32 flist.c xmldb/list_32.o -I/usr/include/libxml2 -L/usr/lib32 -lxml2 -O3 -g -I. -o fsthost_list

winegcc -o fsthost32 fsthost_32.o cpuusage_32.o proto_32.o jfst/sysex_32.o jfst/node_32.o jfst/fps_32.o jfst/jfst_32.o jfst/jack_32.o jfst/process_32.o jfst/eventqueue_32.o jfst/jamc_32.o midifilter/midifilter_32.o fst/amc_32.o fst/fxb_32.o fst/vstwin_32.o serv/serv_32.o xmldb/info_32.o xmldb/list_32.o log/log_32.o gtk/gjfst_32.o -m32 -mwindows -L/usr/lib32/wine-vanilla-2.0.3/ -L/usr/lib32/wine-vanilla-2.0.3/wine -lpthread -lX11 -L/usr/lib32 -ljack -lpthread -lxml2 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0

(I doubt I need 32-bit fsthost_list binary, though.)

I've managed to patch a makefile to correctly build everything with the following two commands:

Code:
make PLAT=64
PKG_CONFIG_PATH=/usr/lib32/pkgconfig make PLAT=32


Now I stuck on that how to update makefile to add PKG_CONFIG_PATH for 32-bit compiles (and not to add it for 64-bit). The makefile also has hardcoded path /usr/lib/i386-linux-gnu/wine, while on my system it needs both /usr/lib32/wine-vanilla-2.0.3 and /usr/lib32/wine-vanilla-2.0.3/wine, but these paths will change when wine receives update, so ideally it should find out what wine to use by itself. (This is what, I think, autotools should actually do when generating a makefile, but this project doesn't use autotools.)

the actual patch I used so far:
Code:
--- Makefile.bak        2018-05-13 20:30:55.040657100 +0300
+++ Makefile    2018-05-13 21:45:25.790957239 +0300
@@ -53,13 +53,15 @@
 LIBRARIES          := -lpthread -lX11 $(shell pkg-config --libs $(PKG_CONFIG_MODULES))
 
 # Shared include / install paths
-INCLUDE_PATH        = -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/include/x86_64-linux-gnu
+INCLUDE_PATH        = -I. -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows
+INCLUDE_PATH_32     = -I/usr/include/i686-pc-linux-gnu
+INCLUDE_PATH_64     = -I/usr/include/x86_64-pc-linux-gnu
 DESTDIR             =
 PREFIX              = /usr
 MANDIR              = $(PREFIX)/man/man1
 ICONDIR             = $(PREFIX)/share/icons/hicolor/32x32/apps
-LIB32_INST_PATH     = $(PREFIX)/lib/i386-linux-gnu/wine
-LIB64_INST_PATH     = $(PREFIX)/lib/x86_64-linux-gnu/wine
+LIB32_INST_PATH     = $(PREFIX)/lib32/wine-vanilla-2.0.3
+LIB64_INST_PATH     = $(PREFIX)/lib64/wine-vanilla-2.0.3
 BIN_INST_PATH       = $(PREFIX)/bin
 
 # Platform specific GCC flags
@@ -67,8 +69,8 @@
 CEXTRA64           := -m64 $(CEXTRA)
 
 # Platform specific LDFLAGS
-LDFLAGS32          := -m32 $(LDFLAGS) -L/usr/lib/i386-linux-gnu/wine
-LDFLAGS64          := -m64 $(LDFLAGS)
+LDFLAGS32          := -m32 $(LDFLAGS) -L/usr/lib32/wine-vanilla-2.0.3 -L/usr/lib32/wine-vanilla-2.0.3/wine
+LDFLAGS64          := -m64 $(LDFLAGS) -L/usr/lib64/wine-vanilla-2.0.3 -L/usr/lib64/wine-vanilla-2.0.3/wine
 
 ### Global source lists
 C_SRCS             := fsthost.c cpuusage.c proto.c
@@ -125,10 +127,10 @@
 DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS)
 
 .c_32.o:
-       $(CC) -c $(CFLAGS) $(CEXTRA32) $(DEFINCL) -o $@ $<
+       $(CC) -c $(CFLAGS) $(CEXTRA32) $(INCLUDE_PATH_32) $(DEFINCL) -o $@ $<
 
 .c_64.o:
-       $(CC) -c $(CFLAGS) $(CEXTRA64) $(DEFINCL) -o $@ $<
+       $(CC) -c $(CFLAGS) $(CEXTRA64) $(INCLUDE_PATH_64) $(DEFINCL) -o $@ $<
 
 # Rules for cleaning
 ALL_OBJS = $(C_SRCS:.c=_32.o) $(C_SRCS:.c=_64.o) fsthost_list
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum