Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000016 [AfterStep] General minor always 2008-03-21 08:56 2008-03-24 14:37
Reporter anonymous View Status public  
Assigned To sashavasko
Priority normal Resolution fixed  
Status resolved   Product Version CVS
Summary 0000016: Afterstep 2.2.8 compile errors?
Description Hi

I'm trying to compile Afterstep on this system:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)

But I get a compile error as follows:


make[2]: Entering directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterBase'
gcc -O3 -DNO_DEBUG_OUTPUT -Wall -fPIC -I/usr/X11R6/include -c parse.c
parse.c: In function `tokenskip':
parse.c:696: parse error before `register'
parse.c:699: `curr' undeclared (first use in this function)
parse.c:699: (Each undeclared identifier is reported only once
parse.c:699: for each function it appears in.)
parse.c:715: warning: control reaches end of non-void function
make[2]: *** [parse.o] Error 1
make[2]: Leaving directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterBase'
make[1]: *** [../../libAfterBase/libAfterBase.a] Error 2


I took look at AfterStep-2.2.8/libAfterBase/parse.c, the declaration
 on line 695
    int tok_no = 0; ;
 had an extra semicolon at the end.

Recompile again, got further, next error:

gcc -O3 -DNO_DEBUG_OUTPUT -Wall -fPIC -I/usr/include/freetype2 -I/usr/X11R6/include -c asfont.c -o asfont.o
asfont.c: In function `fill_text_glyph_map_Char':
asfont.c:1512: `FT_KERNING_DEFAULT' undeclared (first use in this function)
asfont.c:1512: (Each undeclared identifier is reported only once
asfont.c:1512: for each function it appears in.)
asfont.c: In function `fill_text_glyph_map_Unicode':
asfont.c:1513: `FT_KERNING_DEFAULT' undeclared (first use in this function)
asfont.c: In function `fill_text_glyph_map_UTF8':
asfont.c:1515: `FT_KERNING_DEFAULT' undeclared (first use in this function)
asfont.c: In function `get_text_size_internal':
asfont.c:1659: `FT_KERNING_DEFAULT' undeclared (first use in this function)
make[2]: *** [asfont.o] Error 1
make[2]: Leaving directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterImage'
make[1]: *** [../../libAfterImage/libAfterImage.a] Error 2

(Problems - perhaps it can't find freetype library, so for now use --without-ttf)
Then configure and compile without ttf and got this error


make[2]: Entering directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterStep'
gcc -DNO_DEBUG_OUTPUT -O2 -Wall -fPIC -I/usr/X11R6/include -c kde.c
kde.c: In function `load_KDE_config':
kde.c:119: parse error before `int'
kde.c:120: `len' undeclared (first use in this function)
kde.c:120: (Each undeclared identifier is reported only once
kde.c:120: for each function it appears in.)
make[2]: *** [kde.o] Error 1
make[2]: Leaving directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterStep'
make[1]: *** [../../libAfterStep/libAfterStep.a] Error 2


line 120 declares int in the body. Removed declaration here and put it at the beginning of the function.

compile now proceed further and get this error:

gcc -DNO_DEBUG_OUTPUT -O2 -Wall -fPIC -I/usr/X11R6/include -c parser.c
parser.c: In function `config2tree_storage':
parser.c:783: parse error before `*'
parser.c:796: `pterm' undeclared (first use in this function)
parser.c:796: (Each undeclared identifier is reported only once
parser.c:796: for each function it appears in.)
make[2]: *** [parser.o] Error 1
make[2]: Leaving directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterStep'
make[1]: *** [../../libAfterStep/libAfterStep.a] Error 2

moved declaration of *pterm in line 796 to beginning, just under unsigned long flags


compiles further, and now get this error:

make[2]: Entering directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterStep
gcc -DNO_DEBUG_OUTPUT -O2 -Wall -fPIC -I/usr/X11R6/include -c screen.c
screen.c: In function `get_Xinerama_rectangles':
screen.c:140: parse error before `static'
screen.c:143: `buf' undeclared (first use in this function)
screen.c:143: (Each undeclared identifier is reported only once
screen.c:143: for each function it appears in.)
make[2]: *** [screen.o] Error 1
make[2]: Leaving directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/libAfterStep'
make[1]: *** [../../libAfterStep/libAfterStep.a] Error 2


moved declarations in line 140, 143 of screen.c to just under #ifdef line,

change these line 143 to statements and put the declation just under the #ifdef line
move line 140 to just under the #ifdef line


Recompile, got further - now get this error:


make[1]: Entering directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/src/tools/ASRun'
gcc -DNO_DEBUG_OUTPUT -O2 -Wall -fPIC -I/usr/X11R6/include -c main.c
main.c:66: parse error before `GtkTreeModel'
main.c:66: warning: no semicolon at end of struct or union
main.c:67: warning: type defaults to `int' in declaration of `completion'
main.c:67: warning: data definition has no type or storage class
main.c:69: parse error before `}'
main.c:69: warning: type defaults to `int' in declaration of `ASRunState'
main.c:69: warning: data definition has no type or storage class
main.c:71: parse error before `AppState'
main.c:71: warning: type defaults to `int' in declaration of `AppState'
main.c:71: warning: data definition has no type or storage class
main.c: In function `create_KDEScreenSaver_window':
main.c:99: request for member `kde_screensaver_window' in something not a structure or union
main.c:124: request for member `kde_screensaver_window' in something not a structure or union
main.c: In function `exec_command':
main.c:163: request for member `kde_screensaver_window' in something not a structure or union
main.c: In function `main':
main.c:437: request for member `flags' in something not a structure or union
main.c:438: request for member `tool' in something not a structure or union
main.c:440: request for member `kde_screensaver_window' in something not a structure or union
main.c:448: request for member `kde_screensaver_window' in something not a structure or union
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/mnt/hdd/LinuxSW/WindowManagers/afterstep/AfterStep-2.2.8/src/tools/ASRun'


...probably GTK is too old on my system? Not just GTK, in short, it looks like my system is too old for AfterStep; but in trying to compile it I did come across some tweaks and corrections on the source code that may help with older compilers...

Use or ignore the above as you see fit.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000021)
sashavasko (manager)
2008-03-24 14:36

Excellent report - all of the issues fixed in CVS now
(0000022)
sashavasko (manager)
2008-03-24 14:37

Excellent report - all of the issues fixed in CVS now.

- Issue History
Date Modified Username Field Change
2008-03-21 08:56 anonymous New Issue
2008-03-24 14:36 sashavasko Note Added: 0000021
2008-03-24 14:37 sashavasko Status new => resolved
2008-03-24 14:37 sashavasko Resolution open => fixed
2008-03-24 14:37 sashavasko Assigned To => sashavasko
2008-03-24 14:37 sashavasko Note Added: 0000022


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker