IPager installieren

W

wasserschlange

Mitglied
Hallo Leute,

auf der Suche nach einem brauchbaren Pager für mein Desktop bin ich auf ein nettes Programm namens IPager gestoßen.
Nun habe versucht das ganze bei mir (Debian Lenny) zu installieren, aber bisher ohne Erfolg.

Wenn ich, wie auf der Seite beschrieben, im IPager-Ordner
Code:
scons
ausführe. passiert das hier:
Code:
debian:/usr/src/ipager-1.1.0# scons
scons: Reading SConscript files ...
Checking for C header file sys/time.h... yes
Checking for C header file sys/stat.h... yes
Checking for C header file sys/types.h... yes
Checking for XOpenDisplay(0) in C library X11... yes
Checking for Imlib2...  yes
KeyError: 'CPPPATH':
  File "/usr/src/ipager-1.1.0/SConstruct", line 118:
    CPPPATH = imlib2_env.Dictionary()['CPPPATH'],
Ich hab dann gelesen, dass man die Zeile 118 in SConstruct einfach auskommentieren kann um das zu vermeiden.
Das habe ich natürlich sofot ausprobiert, aber zum Erfolg hat das nicht gleich geführt:
Code:
debian:/usr/src/ipager-1.1.0# scons
scons: Reading SConscript files ...
Checking for C header file sys/time.h... yes
Checking for C header file sys/stat.h... yes
Checking for C header file sys/types.h... yes
Checking for XOpenDisplay(0) in C library X11... yes
Checking for Imlib2...  yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o atoms.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include atoms.cpp
g++ -o icolor.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include icolor.cpp
g++ -o icon.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include icon.cpp
g++ -o iconfig.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include iconfig.cpp
iconfig.cpp: In constructor ‘IConfig::IConfig()’:
iconfig.cpp:181: error: ‘getenv’ was not declared in this scope
iconfig.cpp:191: error: ‘exit’ was not declared in this scope
iconfig.cpp:201: error: ‘exit’ was not declared in this scope
iconfig.cpp:403: error: ‘strtof’ was not declared in this scope
scons: *** [iconfig.o] Error 1
scons: building terminated because of errors.

Ich könnte natürlich jetzt anfangen auch in anderen Dateien einfach dinge auszuklammern, aber das ist einfach nicht der richtige Weg.
Schöner wäre es, herauszufinden, wo die Wurzel des Problems liegt.
Kann mir da jemand einen Tipp geben?
 
Ich habe jetzt mal die Entwickler von IPager kontaktiert und dort sehr brauchbare Infos zur Lösung des Problems bekommen:
> debian:/usr/src/ipager-1.1.0# scons
> scons: Reading SConscript files ...
> Checking for C header file sys/time.h... yes
> Checking for C header file sys/stat.h... yes
> Checking for C header file sys/types.h... yes
> Checking for XOpenDisplay(0) in C library X11... yes
> Checking for Imlib2... yes
> KeyError: 'CPPPATH':
> File "/usr/src/ipager-1.1.0/SConstruct", line 118:
> CPPPATH =3D imlib2_env.Dictionary()['CPPPATH'],

the point there is not to use [] but .get(). so the line would become:

CPPATH = imlib2_env.Dictionary().get('CPPATH')
und
> scons: Building targets ...
> g++ -o atoms.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include atoms.cpp
> g++ -o icolor.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include icolor.cpp
> g++ -o icon.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include icon.cpp
> g++ -o iconfig.o -c -pthread -Wall -DHAS_SYS_TIME_H -I/usr/X11R6/include iconfig.cpp
> iconfig.cpp: In constructor =E2=80=98IConfig::IConfig()=E2=80=99:
> iconfig.cpp:181: error: =E2=80=98getenv=E2=80=99 was not declared in this scope
> iconfig.cpp:191: error: =E2=80=98exit=E2=80=99 was not declared in this scope
> iconfig.cpp:201: error: =E2=80=98exit=E2=80=99 was not declared in this scope
> iconfig.cpp:403: error: =E2=80=98strtof=E2=80=99 was not declared in this scope
> scons: *** [iconfig.o] Error 1
> scons: building terminated because of errors.

the problem is actually written out by the compiler. "getenv" and
"exit" and some other functions are not declared in this scope. which
means: there are some #include statements missing in those files.

% man 3 getenv would tell you:

"#include <stdlib.h>

and thats the solution to that problem.
 

Ähnliche Themen

configure schlägt bei X fehl

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Ich mag Dovecot nicht ...

X startet nichtmehr

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

Zurück
Oben