Can´t compile with xorg 7

Hi

trying to compile fvwm 2.5.16 with trans-patch.

i get this error:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/X11 -Wall -Wno-implicit-int -march=i686 -O2 -pipe -MT gravity.o -MD -MP -MF ".deps/gravity.Tpo" -c -o gravity.o gravity.c; \ then mv -f ".deps/gravity.Tpo" ".deps/gravity.Po"; else rm -f ".deps/gravity.Tpo"; exit 1; fi In file included from gravity.c:19: ../config.h:575:22: error: X11/Xlib.h: No such file or directory In file included from ../config.h:576, from gravity.c:19: ../libs/FEvent.h:28: error: syntax error before 'fev_get_evtime' ../libs/FEvent.h:28: warning: data definition has no type or storage class ../libs/FEvent.h:34: error: syntax error before 'fev_get_evpos_or_query' ../libs/FEvent.h:35: error: syntax error before '*' token ../libs/FEvent.h:35: warning: data definition has no type or storage class ../libs/FEvent.h:39: error: syntax error before 'fev_set_evpos' ../libs/FEvent.h:39: error: syntax error before '*' token ../libs/FEvent.h:39: warning: data definition has no type or storage class ../libs/FEvent.h:42: error: syntax error before '*' token ../libs/FEvent.h:51: error: syntax error before '*' token ../libs/FEvent.h:54: error: syntax error before '*' token ../libs/FEvent.h:59: error: syntax error before '*' token ../libs/FEvent.h:60: error: syntax error before '*' token ../libs/FEvent.h:60: warning: data definition has no type or storage class ../libs/FEvent.h:62: error: syntax error before '*' token ../libs/FEvent.h:63: error: syntax error before 'FCheckIfEvent' ../libs/FEvent.h:64: error: syntax error before '*' token ../libs/FEvent.h:65: error: syntax error before '*' token ../libs/FEvent.h:65: error: 'FCheckIfEvent' declared as function returning a function ../libs/FEvent.h:66: error: syntax error before 'arg' ../libs/FEvent.h:68: error: syntax error before '*' token ../libs/FEvent.h:68: warning: data definition has no type or storage class ../libs/FEvent.h:69: error: syntax error before 'FCheckPeekIfEvent' ../libs/FEvent.h:70: error: syntax error before '*' token ../libs/FEvent.h:71: error: syntax error before '*' token ../libs/FEvent.h:71: error: 'FCheckPeekIfEvent' declared as function returning a function ../libs/FEvent.h:72: error: syntax error before 'arg' ../libs/FEvent.h:74: error: syntax error before '*' token ../libs/FEvent.h:74: warning: data definition has no type or storage class ../libs/FEvent.h:75: error: syntax error before 'FCheckTypedWindowEvent' ../libs/FEvent.h:76: error: syntax error before '*' token ../libs/FEvent.h:76: warning: data definition has no type or storage class ../libs/FEvent.h:77: error: syntax error before 'FCheckWindowEvent' ../libs/FEvent.h:78: error: syntax error before '*' token ../libs/FEvent.h:78: warning: data definition has no type or storage class ../libs/FEvent.h:80: error: syntax error before '*' token ../libs/FEvent.h:82: error: syntax error before '*' token ../libs/FEvent.h:83: error: syntax error before '*' token ../libs/FEvent.h:83: error: 'FIfEvent' declared as function returning a function ../libs/FEvent.h:84: error: syntax error before 'arg' ../libs/FEvent.h:86: error: syntax error before '*' token ../libs/FEvent.h:88: error: syntax error before '*' token ../libs/FEvent.h:90: error: syntax error before '*' token ../libs/FEvent.h:92: error: syntax error before '*' token ../libs/FEvent.h:93: error: syntax error before '*' token ../libs/FEvent.h:93: error: 'FPeekIfEvent' declared as function returning a function ../libs/FEvent.h:94: error: syntax error before 'arg' ../libs/FEvent.h:96: error: syntax error before '*' token ../libs/FEvent.h:98: error: syntax error before '*' token ../libs/FEvent.h:100: error: syntax error before '*' token ../libs/FEvent.h:101: error: syntax error before 'FQueryPointer' ../libs/FEvent.h:102: error: syntax error before '*' token ../libs/FEvent.h:104: warning: data definition has no type or storage class ../libs/FEvent.h:106: error: syntax error before '*' token ../libs/FEvent.h:107: error: syntax error before 'FSendEvent' ../libs/FEvent.h:108: error: syntax error before '*' token ../libs/FEvent.h:109: warning: data definition has no type or storage class ../libs/FEvent.h:111: error: syntax error before '*' token ../libs/FEvent.h:115: error: syntax error before '*' token In file included from gravity.c:26: fvwmrect.h:58: error: syntax error before '*' token gravity.c: In function 'gravity_get_offsets': gravity.c:86: error: 'ForgetGravity' undeclared (first use in this function) gravity.c:86: error: (Each undeclared identifier is reported only once gravity.c:86: error: for each function it appears in.) gravity.c:86: error: 'StaticGravity' undeclared (first use in this function) gravity.c: In function 'gravity_grav_to_dir': gravity.c:149: error: 'NorthWestGravity' undeclared (first use in this function) gravity.c:151: error: 'NorthGravity' undeclared (first use in this function) gravity.c:153: error: 'NorthEastGravity' undeclared (first use in this function) gravity.c:155: error: 'WestGravity' undeclared (first use in this function) gravity.c:157: error: 'CenterGravity' undeclared (first use in this function) gravity.c:159: error: 'EastGravity' undeclared (first use in this function) gravity.c:161: error: 'SouthWestGravity' undeclared (first use in this function) gravity.c:163: error: 'SouthGravity' undeclared (first use in this function) gravity.c:165: error: 'SouthEastGravity' undeclared (first use in this function) gravity.c:167: error: 'ForgetGravity' undeclared (first use in this function) gravity.c:168: error: 'StaticGravity' undeclared (first use in this function) gravity.c: In function 'gravity_dir_to_grav': gravity.c:180: error: 'NorthGravity' undeclared (first use in this function) gravity.c:182: error: 'EastGravity' undeclared (first use in this function) gravity.c:184: error: 'SouthGravity' undeclared (first use in this function) gravity.c:186: error: 'WestGravity' undeclared (first use in this function) gravity.c:188: error: 'NorthEastGravity' undeclared (first use in this function) gravity.c:190: error: 'SouthEastGravity' undeclared (first use in this function) gravity.c:192: error: 'SouthWestGravity' undeclared (first use in this function) gravity.c:194: error: 'NorthWestGravity' undeclared (first use in this function) gravity.c:197: error: 'ForgetGravity' undeclared (first use in this function) gravity.c: In function 'gravity_combine_xy_grav': gravity.c:206: error: 'NorthWestGravity' undeclared (first use in this function) gravity.c:207: error: 'WestGravity' undeclared (first use in this function) gravity.c:208: error: 'SouthWestGravity' undeclared (first use in this function) gravity.c:211: error: 'NorthEastGravity' undeclared (first use in this function) gravity.c:212: error: 'EastGravity' undeclared (first use in this function) gravity.c:213: error: 'SouthEastGravity' undeclared (first use in this function) gravity.c:217: error: 'CenterGravity' undeclared (first use in this function) gravity.c:223: error: 'NorthGravity' undeclared (first use in this function) gravity.c:228: error: 'SouthGravity' undeclared (first use in this function) gravity.c: In function 'gravity_split_xy_grav': gravity.c:261: error: 'NorthWestGravity' undeclared (first use in this function) gravity.c:262: error: 'WestGravity' undeclared (first use in this function) gravity.c:263: error: 'SouthWestGravity' undeclared (first use in this function) gravity.c:266: error: 'NorthEastGravity' undeclared (first use in this function) gravity.c:267: error: 'EastGravity' undeclared (first use in this function) gravity.c:268: error: 'SouthEastGravity' undeclared (first use in this function) gravity.c:271: error: 'NorthGravity' undeclared (first use in this function) gravity.c:272: error: 'CenterGravity' undeclared (first use in this function) gravity.c:273: error: 'SouthGravity' undeclared (first use in this function) gravity.c:274: error: 'ForgetGravity' undeclared (first use in this function) gravity.c:275: error: 'StaticGravity' undeclared (first use in this function) make[2]: *** [gravity.o] Error 1 make[2]: Leaving directory `/home/volker/.aurbuild/fvwm-trans/src/fvwm-2.5.16/libs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/volker/.aurbuild/fvwm-trans/src/fvwm-2.5.16' make: *** [all] Error 2

Hi legout,
I`m using Xorg-7.0, compiled by myself with Introductions from here:
linuxfromscratch.org/~dj/blf … xorg7.html
fvwm-2.5.16 with the trans-patch is compiling and working clean.

Maybe you take a look at your libx11-File or something like this.

The LFS-Page with Introduction is a little bit buggy (very unstable) .

I had to change some lines in the build-scripts and a few other things.

What Distro are you using?

Im sorry that I cant help more but maybe you find answeres on that page.

Good luck & Greetings

Hi Legout,

Are you still using Arch?

I have a PKGBUILD which works if you’re interested.

Rob

Reinstall libx11, it provides that Xlib.h file.

Yes i´m stilling using Arch Linux.

Maybe u can post the PKGBUILD here. I also try stones advice

Hi Legout,

Here it is:

[code]# Contributor: Alexander Mieland dma147@linux-stats.org

Slightly edited by Rob fvwm@hyborian.demon.co.uk

pkgname=fvwm-trans
pkgver=2.5.16
pkgrel=2
pkgdesc=“F**** Virtual Window Manager with translucency and mouse gestures (stroke)!”

url=“http://www.fvwm.org
depends=(‘x-server’ ‘gtk’ ‘imlib’ ‘libstroke’)
provides=(‘fvwm2’ ‘fvwm’ ‘fvwm-devel’)

source=(ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-$pkgver.tar.bz2
fvwm-2.5.16-translucency.diff)
md5sums=(‘78eb609bd913868f659034173292b9bd’ ‘99b5cfe365b4d5586aa8321e632a4268’)

build() {

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/mozilla/lib/pkgconfig:/usr/local/lib/pkgconfig

cd $startdir/src/fvwm-$pkgver

patch -Np1 -i $startdir/src/fvwm-2.5.16-translucency.diff

autoconf
aclocal
automake

sed -i ‘s:FRIBIDI_CHARSET_NOT_FOUND:FRIBIDI_CHAR_SET_NOT_FOUND:’ libs/FBidi.c

./configure --prefix=/usr --libexecdir=/usr/lib --with-stroke --disable-xinerama --disable-bidi

make || return 1
make DESTDIR=$startdir/pkg install

}[/code]

The “export PKGCONFIG …” line should be one line, but I can’t edit the post to make it so.

If you enable bidi, I think you should comment out the sed line. Not sure since I don’t use it.

The fvwm-2.5.16-translucency.diff is actually Gramphos’ 2.5.15 translucency patch which I renamed. It works well, mousewheel scrolling with translucency on the menus!

I use startx, so I don’t need a /etc/X11/sessions/fvwm-trans.desktop file, but for my wife who uses FVWM and GDM on her laptop, I just copied the file from fvwm-devel and renamed it.

I hope this sorts your problem out.

Rob