LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Problems recompiling WindowMaker from original slackbuild (http://www.linuxquestions.org/questions/slackware-14/problems-recompiling-windowmaker-from-original-slackbuild-534231/)

garr0n 03-03-2007 01:24 PM

Problems recompiling WindowMaker from original slackbuild
 
Hello,
I was trying to recompile WindowMaker to apply the single click patch, and found out that using the slackbuild provided on the Slack source disks (Disk 5), I couldn't even compile an unmodified WindowMaker properly. Specifically the WPrefs.app utility fails to compile.

Any suggestions as to why this might be, or how to fix it? I'm using GCC 3.4.6, which AFAIK is the default for Slackware. I'm also sure I've got the fontconfig package installed.

Thanks,
Garron

relevant error log below:
Code:

Making all in WPrefs.app
make[1]: Entering directory `/tmp/WindowMaker-0.92.0/WPrefs.app'
Making all in xpm
make[2]: Entering directory `/tmp/WindowMaker-0.92.0/WPrefs.app/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/WindowMaker-0.92.0/WPrefs.app/xpm'
Making all in tiff
make[2]: Entering directory `/tmp/WindowMaker-0.92.0/WPrefs.app/tiff'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/WindowMaker-0.92.0/WPrefs.app/tiff'
Making all in po
make[2]: Entering directory `/tmp/WindowMaker-0.92.0/WPrefs.app/po'
msgfmt -c -o bg.mo bg.po
msgfmt -c -o ca.mo ca.po
msgfmt -c -o cs.mo cs.po
msgfmt -c -o de.mo de.po
msgfmt -c -o es.mo es.po
msgfmt -c -o et.mo et.po
msgfmt -c -o fi.mo fi.po
msgfmt -c -o fr.mo fr.po
msgfmt -c -o hr.mo hr.po
msgfmt -c -o hu.mo hu.po
msgfmt -c -o it.mo it.po
msgfmt -c -o ja.mo ja.po
msgfmt -c -o ko.mo ko.po
msgfmt -c -o pt.mo pt.po
msgfmt -c -o ru.mo ru.po
msgfmt -c -o sk.mo sk.po
msgfmt -c -o zh_CN.mo zh_CN.po
msgfmt -c -o zh_TW.mo zh_TW.po
make[2]: Leaving directory `/tmp/WindowMaker-0.92.0/WPrefs.app/po'
make[2]: Entering directory `/tmp/WindowMaker-0.92.0/WPrefs.app'
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c main.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c WPrefs.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Appearance.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Configurations.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Expert.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Focus.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c FontSimple.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FontSimple.c:26:35: fontconfig/fontconfig.h: No such file or directory
FontSimple.c:148: error: `FC_WEIGHT_LIGHT' undeclared here (not in a function)
FontSimple.c:148: error: initializer element is not constant
FontSimple.c:148: error: (near initialization for `fontWeights[2].weight')
FontSimple.c:148: error: initializer element is not constant
FontSimple.c:148: error: (near initialization for `fontWeights[2]')
FontSimple.c:149: error: initializer element is not constant
FontSimple.c:149: error: (near initialization for `fontWeights[3]')
FontSimple.c:150: error: `FC_WEIGHT_MEDIUM' undeclared here (not in a function)
FontSimple.c:150: error: initializer element is not constant
FontSimple.c:150: error: (near initialization for `fontWeights[4].weight')
FontSimple.c:150: error: initializer element is not constant
FontSimple.c:150: error: (near initialization for `fontWeights[4]')
FontSimple.c:151: error: `FC_WEIGHT_DEMIBOLD' undeclared here (not in a function)
FontSimple.c:151: error: initializer element is not constant
FontSimple.c:151: error: (near initialization for `fontWeights[5].weight')
FontSimple.c:151: error: initializer element is not constant
FontSimple.c:151: error: (near initialization for `fontWeights[5]')
FontSimple.c:152: error: `FC_WEIGHT_BOLD' undeclared here (not in a function)
FontSimple.c:152: error: initializer element is not constant
FontSimple.c:152: error: (near initialization for `fontWeights[6].weight')
FontSimple.c:152: error: initializer element is not constant
FontSimple.c:152: error: (near initialization for `fontWeights[6]')
FontSimple.c:153: error: initializer element is not constant
FontSimple.c:153: error: (near initialization for `fontWeights[7]')
FontSimple.c:154: error: `FC_WEIGHT_BLACK' undeclared here (not in a function)
FontSimple.c:154: error: initializer element is not constant
FontSimple.c:154: error: (near initialization for `fontWeights[8].weight')
FontSimple.c:154: error: initializer element is not constant
FontSimple.c:154: error: (near initialization for `fontWeights[8]')
FontSimple.c:155: error: initializer element is not constant
FontSimple.c:155: error: (near initialization for `fontWeights[9]')
FontSimple.c:162: error: `FC_SLANT_ROMAN' undeclared here (not in a function)
FontSimple.c:162: error: initializer element is not constant
FontSimple.c:162: error: (near initialization for `fontSlants[0].slant')
FontSimple.c:162: error: initializer element is not constant
FontSimple.c:162: error: (near initialization for `fontSlants[0]')
FontSimple.c:163: error: `FC_SLANT_ITALIC' undeclared here (not in a function)
FontSimple.c:163: error: initializer element is not constant
FontSimple.c:163: error: (near initialization for `fontSlants[1].slant')
FontSimple.c:163: error: initializer element is not constant
FontSimple.c:163: error: (near initialization for `fontSlants[1]')
FontSimple.c:164: error: `FC_SLANT_OBLIQUE' undeclared here (not in a function)
FontSimple.c:164: error: initializer element is not constant
FontSimple.c:164: error: (near initialization for `fontSlants[2].slant')
FontSimple.c:164: error: initializer element is not constant
FontSimple.c:164: error: (near initialization for `fontSlants[2]')
FontSimple.c:165: error: initializer element is not constant
FontSimple.c:165: error: (near initialization for `fontSlants[3]')
FontSimple.c: In function `lookup_available_fonts':
FontSimple.c:215: error: `FcPattern' undeclared (first use in this function)
FontSimple.c:215: error: (Each undeclared identifier is reported only once
FontSimple.c:215: error: for each function it appears in.)
FontSimple.c:215: error: `pat' undeclared (first use in this function)
FontSimple.c:216: error: `FcObjectSet' undeclared (first use in this function)
FontSimple.c:216: error: `os' undeclared (first use in this function)
FontSimple.c:217: error: `FcFontSet' undeclared (first use in this function)
FontSimple.c:217: error: `fonts' undeclared (first use in this function)
FontSimple.c:220: error: `FC_FAMILY' undeclared (first use in this function)
FontSimple.c:220: error: `FC_WEIGHT' undeclared (first use in this function)
FontSimple.c:220: error: `FC_SLANT' undeclared (first use in this function)
FontSimple.c:234: error: `FcChar8' undeclared (first use in this function)
FontSimple.c:234: error: `name' undeclared (first use in this function)
FontSimple.c:238: error: `FcResultMatch' undeclared (first use in this function)
FontSimple.c: In function `getSelectedFont':
FontSimple.c:315: error: `FcPattern' undeclared (first use in this function)
FontSimple.c:315: error: `pat' undeclared (first use in this function)
FontSimple.c:321: error: `FC_FAMILY' undeclared (first use in this function)
FontSimple.c:330: error: `FC_WEIGHT' undeclared (first use in this function)
FontSimple.c:336: error: `FC_SLANT' undeclared (first use in this function)
FontSimple.c:343: error: `FC_PIXEL_SIZE' undeclared (first use in this function)
FontSimple.c:347: warning: assignment makes pointer from integer without a cast
FontSimple.c: In function `selectedOption':
FontSimple.c:491: error: `FcPattern' undeclared (first use in this function)
FontSimple.c:491: error: `pat' undeclared (first use in this function)
FontSimple.c:496: error: `FcChar8' undeclared (first use in this function)
FontSimple.c:496: error: `name' undeclared (first use in this function)
FontSimple.c:504: error: `FC_FAMILY' undeclared (first use in this function)
FontSimple.c:504: error: `FcResultMatch' undeclared (first use in this function)
FontSimple.c:527: error: `FC_WEIGHT' undeclared (first use in this function)
FontSimple.c:531: error: `FC_SLANT' undeclared (first use in this function)
FontSimple.c:534: error: `FC_PIXEL_SIZE' undeclared (first use in this function)
make[2]: [FontSimple.o] Error 1 (ignored)
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Icons.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c KeyboardSettings.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c KeyboardShortcuts.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Menu.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c MenuPreferences.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c MouseSettings.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Paths.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Preferences.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c TexturePanel.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Themes.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c WindowHandling.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c Workspace.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c double.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c editmenu.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c imagebrowser.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I../wrlib -I../WINGs -I/usr/include  -DLOCALEDIR=\"/usr/share/locale\"  -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -c xmodifier.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/bin/sh ../libtool --mode=link i486-slackware-linux-gcc -fno-strict-aliasing -O2 -march=i486 -mcpu=i686  -o WPrefs  main.o WPrefs.o Appearance.o Configurations.o Expert.o Focus.o FontSimple.o Icons.o KeyboardSettings.o KeyboardShortcuts.o Menu.o MenuPreferences.o MouseSettings.o Paths.o Preferences.o TexturePanel.o Themes.o WindowHandling.o Workspace.o double.o editmenu.o imagebrowser.o xmodifier.o ../WINGs/libWINGs.a        ../wrlib/libwraster.la        -L/usr/X11R6/lib -lXft -lXrender -lX11 -lXext -lfontconfig -lfreetype -lz           
mkdir .libs
i486-slackware-linux-gcc -fno-strict-aliasing -O2 -march=i486 -mcpu=i686 -o .libs/WPrefs main.o WPrefs.o Appearance.o Configurations.o Expert.o Focus.o FontSimple.o Icons.o KeyboardSettings.o KeyboardShortcuts.o Menu.o MenuPreferences.o MouseSettings.o Paths.o Preferences.o TexturePanel.o Themes.o WindowHandling.o Workspace.o double.o editmenu.o imagebrowser.o xmodifier.o  ../WINGs/libWINGs.a ../wrlib/.libs/libwraster.so -L/usr/X11R6/lib -lXft -lXrender -lX11 -lXext /usr/X11R6/lib/libfontconfig.so /usr/lib/libfreetype.so -lz
i486-slackware-linux-gcc: FontSimple.o: No such file or directory
make[2]: [WPrefs] Error 1 (ignored)
make[2]: Leaving directory `/tmp/WindowMaker-0.92.0/WPrefs.app'
make[1]: Leaving directory `/tmp/WindowMaker-0.92.0/WPrefs.app'


H_TeXMeX_H 03-03-2007 01:55 PM

Do you have fontconfig installed ? Try reinstalling that.

This is the critical error here:
Code:

FontSimple.c:26:35: fontconfig/fontconfig.h: No such file or directory
from searching my '/var/log/packages' I get

Code:

usr/X11R6/include/fontconfig/fontconfig.h
fontconfig-2.2.3-i486-2


Eternal_Newbie 03-03-2007 02:20 PM

Are you running Dropline? Dropline puts fontconfig here:
Code:

bash-3.1$ slocate fontconfig.h
/usr/include/fontconfig/fontconfig.h

If that is the case perhaps try linking usr/X11R6/include/fontconfig/ to /usr/include/fontconfig/

garr0n 03-03-2007 04:05 PM

Fontconfig is installed, I tried reinstalling it but no change.

No dropline (or any Gnome) on the system.

For the moment I've just copied the old WPrefs.app into the new package, and edited the windowmaker preferences by hand to enable single-click. Which works fine. Still, I'm quite curious as to what's causing the error.

Thanks for the suggestions so far.

garr0n 03-04-2007 10:49 AM

OK, looking at the WindowMaker Makefile, I see the line "includedir = ${prefix}/include", where ${prefix} is /usr. So I symlinked /usr/X11/include/fontconfig to /usr/include, and everything compiled.

So now my question is, is this a bug, or is my system somehow misconfigured? Is anyone else able to compile WindowMaker using the provided slackbuild?

gnashley 03-05-2007 05:19 AM

Have a look in my WindowMaker area. I have a large collection of patches and accessories there. I use a patched version which provides a history list to the run-box among other fixes. I added the single-click patch to the list and recompiled. (See the wmaker-0.92.0 dir) there's also a src2pkg build script which you can use to compile from source if you have src2pkg installed. Or just have a good look at what the script does and use those command as suggestions.

http://distro.ibiblio.org/pub/linux/...s/WindowMaker/

The main problem you are having is probably from not running autogen.sh.
Try doing that before running configure.
If that doesn't do it try running 'autoreconf -if' -the best kept secret in ages...

There on my site you can also find the wdm display manager(with xpenguins!), the sound server for WindowMaker and over 50 DockApps which are upgraded to work best with the new WindowMaker.

garr0n 03-05-2007 08:30 AM

Quote:

Originally Posted by gnashley
Have a look in my WindowMaker area. I have a large collection of patches and accessories there. I use a patched version which provides a history list to the run-box among other fixes. I added the single-click patch to the list and recompiled. (See the wmaker-0.92.0 dir) there's also a src2pkg build script which you can use to compile from source if you have src2pkg installed. Or just have a good look at what the script does and use those command as suggestions.

Hey, thanks. I did actually get a working version, but run-box history would be useful. I'll give it a shot.

Quote:

The main problem you are having is probably from not running autogen.sh.
Try doing that before running configure.
If that doesn't do it try running 'autoreconf -if' -the best kept secret in ages...
All that I'm doing is copying the files from /source/xap/windowmaker/ on the Slackware 11 source disk to my hard drive, and running the windowmaker.SlackBuild script. It was my understanding that these SlackBuild scripts are recreations of the steps Pat Volkerding uses to make the package that comes with the Slack CD?

As a sidenote, though, I don't see an autogen.sh anywhere in the Windowmaker sources. The SlackBuild certainly doesn't make any mention of one.

gnashley 03-05-2007 03:52 PM

Okay you are using the Slackware tarball, right? Note that the Slackware current binary package is from Jul 21 2005, which means it's a Slackware-10.1 package compiled against xorg-6.8.2.
If you don#t know how to pick your way throught the code of the script, you can still update the source config files.
Just unpack the original archive, cd into the sources and run 'autoreconf -if' and then repack the sources and run the script.
Building and packaging WindowMaker is not usually as straightforward as most programs.

A lot of the patches and config stuff that I use come from the ALT/Sysiphus Linux distribution which is maintained by a long-time collaborator/contributor to WindowMaker project.

The package I uploaded has the history list and single-click already activated(the single-click option is in the Prefs Expert section).
The history list is activated simply changing this:
%a(Run,Type command to run:)
to this:
%A(Run,Type command to run:)
in the Prefs options for the 'Run...' desktop menu item.
But I install default menus and config files that set all that up by default.

garr0n 03-06-2007 12:00 PM

Quote:

Originally Posted by gnashley
Okay you are using the Slackware tarball, right? Note that the Slackware current binary package is from Jul 21 2005, which means it's a Slackware-10.1 package compiled against xorg-6.8.2.

Ah, that looks like the answer there.
Thanks!


All times are GMT -5. The time now is 08:13 PM.