aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 'n Haufen Kompillerfehlermeldungen  (Read 7025 times)

quci

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • http://nucore.net
'n Haufen Kompillerfehlermeldungen
« on: January 09, 2004, 11:38:05 AM »

Hab OpenSSL neu installiert jetz bricht der Linker nicht mehr ab, dafür gibts jetz wenn make weiterwerkelt eine Masse an Compiler-Fehlermeldungen. Hier ein kleiner Auszug:
Code: [Select]
/usr/include/wx/window.h:1038: syntax error before `(' token
/usr/include/wx/window.h:1045: virtual outside class declaration
/usr/include/wx/window.h:1045: function `void DoSetSize(int, int, int, int, int
   = 3)' is initialized like a variable
/usr/include/wx/window.h:1045: `void DoSetSize(int, int, int, int, int = 3)'
   used prior to declaration
/usr/include/wx/window.h:1048: virtual outside class declaration
/usr/include/wx/window.h:1048: function `void DoSetClientSize(int, int)' is
   initialized like a variable
/usr/include/wx/window.h:1048: `void DoSetClientSize(int, int)' used prior to
   declaration
/usr/include/wx/window.h:1054: virtual outside class declaration
/usr/include/wx/window.h:1054: function `void DoMoveWindow(int, int, int, int)'
   is initialized like a variable
/usr/include/wx/window.h:1066: virtual outside class declaration
/usr/include/wx/window.h:1066: non-member function `void
   AdjustForParentClientOrigin(int&, int&, int)' cannot have `const' method
   qualifier

und dann bricht make wieder ab...
Code: [Select]
/usr/include/wx/gdicmn.h: At global scope:
/usr/include/wx/gdicmn.h:203: `struct NewControlId()::wxSize' used prior to
   declaration
/usr/include/wx/gdicmn.h:234: confused by earlier errors, bailing out
make[2]: *** [amulecmdDLG-TextClient.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/root/download/aMule-1.2.3/src«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/root/download/aMule-1.2.3«
make: *** [all] Fehler 2
« Last Edit: January 09, 2004, 11:42:46 AM by quci »
Logged
Of all the things I've lost
I miss my mind the most!

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #1 on: January 09, 2004, 03:18:06 PM »

ich geh von aus du hast wxGTK und wxBase installiert.. hast aber danach vergessen es zu verlinken.. guck bitte in mein wxBase howto

gruss
delta

Mithrandir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #2 on: January 11, 2004, 10:43:25 PM »

Ich hab die gleichen Fehlermeldungen wie quci, aber aMule 1.2.4. Ich hab RedHat9.
wxGTK, wxGTK-devel und wxBase hab ich als *.rpm installiert. Zur sicherheit hab ich das mir ldconfig und updatedb auch gemacht (ist doch eigentlich bei RPMs sinnlos, oder?).

Das ist das Ergebniss von get-info.sh:
Quote
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_base-2.4

     C. GTK Info
        GTK 1:
        GTK 2:

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Pentium Pro
        Speed: 199.313
        BMips: 397.31
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov

     B. Memory Info
        Total:   126380 kB
        Unused:

     C. Kernel Info
        Version: 2.4.20-28.9

     D. Library Info
        wxWindows library:

Das hier kommt bei configure-script am Ende raus:
Quote
Configure script has finished system check.

  Configured aMule 1.2.4 for `i686-pc-linux-gnu'.

  Should aMule be compiled in debug mode?                  no
  Should aMule be compiled with release grp code?          no
  Should aMule be compiled without debug reporting?        yes
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   yes
  Should aMule be compiled with safe systray?              no
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be compiled without bar drawing?            no
  Should aMule be linked against patched gsocket?          yes
  Should amulecmd be built?                                yes
  Should amulecmd (TextClient) be linked against wxbase?   yes

  Which libraries should aMule use?
                                       wxWindows          2.4.2
                                       GTK                Not detected
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #3 on: January 12, 2004, 12:36:17 AM »

sowohl get-info.sh als auch configure zeigen dass du kein gtk1 installiert hast.. gtk1 mein ich jetzt, und nicht wxGTK .. bei RH müsste es gtk+ heissen.. suchs bitte auf deiner cd

gruss
delta

Mithrandir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #4 on: January 12, 2004, 12:13:52 PM »

Ich musste noch die -devel Packete für gtk+ und gtk2 installieren.
Dann kompiliert er nen bisschen länger. Wird aber trotzdem nicht fertig :(
Quote
.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_gtk-2.4

     C. GTK Info
        GTK 1: 1.2.10
        GTK 2: 2.2.1

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Pentium Pro
        Speed: 199.315
        BMips: 397.31
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov

     B. Memory Info
        Total:   126380 kB
        Unused:

     C. Kernel Info
        Version: 2.4.20-28.9

     D. Library Info
        wxWindows library: libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so

Naja make schmeisst weiterhin mir Fehlermeldungen um sich  :(:
Quote
....

In file included from amuleDlg.h:41,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
SysTray.h:21:21: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden
SysTray.h:22:21: gdk/gdk.h: Datei oder Verzeichnis nicht gefunden
SysTray.h:23:22: gdk/gdkx.h: Datei oder Verzeichnis nicht gefunden
In file included from SysTray.h:24,
                 from amuleDlg.h:41,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
/usr/include/glib.h:66:24: glibconfig.h: Datei oder Verzeichnis nicht gefunden
In file included from SysTray.h:24,
                 from amuleDlg.h:41,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
/usr/include/glib.h:502: syntax error before `;' token
/usr/include/glib.h:503: syntax error before `;' token
/usr/include/glib.h:504: syntax error before `;' token
/usr/include/glib.h:505: syntax error before `;' token
/usr/include/glib.h:769: `GQuark' was not declared in this scope
/usr/include/glib.h:769: parse error before `,' token
/usr/include/glib.h:840: syntax error before `*' token
/usr/include/glib.h:1554: `guint32' was not declared in this scope

.....

n file included from SysTray.h:46,
                 from amuleDlg.h:41,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
eggtrayicon.h:25:22: gdk/gdkx.h: Datei oder Verzeichnis nicht gefunden
In file included from SysTray.h:46,
                 from amuleDlg.h:41,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
eggtrayicon.h:47: 'Atom' is used as a type, but is not defined as a type.
eggtrayicon.h:48: 'Atom' is used as a type, but is not defined as a type.
eggtrayicon.h:49: 'Atom' is used as a type, but is not defined as a type.
eggtrayicon.h:50: 'Window' is used as a type, but is not defined as a type.
eggtrayicon.h:58: parse error before `)' token
eggtrayicon.h:61: `Screen' was not declared in this scope
eggtrayicon.h:61: `xscreen' was not declared in this scope
eggtrayicon.h:61: parse error before `char'
ListenSocket.cpp:506:34: warning: #warning TODO: CHECK SPAMMERS!
make[2]: *** [amule-ListenSocket.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/ck/aMule-1.2.4/src«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/ck/aMule-1.2.4«
make: *** [all] Fehler 2
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #5 on: January 12, 2004, 12:18:55 PM »

1. was sagt bei dir

ls -al /usr/bin/wx*

2. hast deine compilation wieder mit ./configure angefangen oder einfach nur make ?

Mithrandir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #6 on: January 12, 2004, 12:22:58 PM »

1.
-rwxr-xr-x    1 root     root         4864 28. Nov 13:08 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 12. Jan 11:52 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 12. Jan 11:48 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 21. Sep 15:14 /usr/bin/wxgtk-2.4-config

2. ja
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #7 on: January 12, 2004, 12:26:53 PM »

installiere wxGTK, wxGTK und wxBase nochmal (mit rpm -Uvh), verlinke (wie im howto) und nochmal configure

Mithrandir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #8 on: January 12, 2004, 03:27:10 PM »

Hat leider nicht geholfen.
Müssen evtl. noch weitere Links gesetzt werden oder beim ./conigure irgenwelche optionen angeben werden? Der findet ja die gtk.h und die glib.h nicht.

Hab gerade das hier im configurescript entdeckt:
Quote
cecking for GTK - version >= 1.2.0... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
« Last Edit: January 12, 2004, 04:20:36 PM by Mithrandir »
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #9 on: January 12, 2004, 04:46:30 PM »

find /usr -name "gtk-config"

Mithrandir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #10 on: January 12, 2004, 05:08:34 PM »

/usr/bin/gtk-config
und was muss ich damit machen? Hab leider noch nicht soviel ahnung von Linux.  :rolleyes:
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #11 on: January 12, 2004, 06:28:27 PM »

falls du ./configure als root ausgeführt hast, versuchs nochmal als user ..

Mithrandir

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #12 on: January 12, 2004, 11:03:50 PM »

macht gar keinen Unterschied, ob ich das als root oder normaler user laufen lasen.
Schonmal danke für deine Hilfe bis hierhin, find ich absulut genial.  :baby: (das heisst nicht das ich aufgebe  ;) )
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 'n Haufen Kompillerfehlermeldungen
« Reply #13 on: January 13, 2004, 12:11:33 AM »

also wenn du morgen (an sich schon heute) in #amule channel @efnet kommen könntest .. gucken wir uns es mal genauer an, oki?
hin und her im forum ist nicht das wahre.. da vergisst man irgendwann was man sagen wollte :]

gruss
delta

quci

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • http://nucore.net
ich hab den thread ursprünglich begonnen...
« Reply #14 on: January 15, 2004, 09:51:19 AM »

...und hab dir drum paar tips, da ichs bei mir dann doch geschafft habe. all die schönen rpm's und dessen vorteile zum trotz... schlussendlich konnte ich amule nur kompilieren indem ich auch wxGTK und wxBase selber kompiliert hatte. dann ist da eifach noch das problem, dass aMule sporadisch nach einer gewissen zeit abstürzte. hab jetz die 1.2.4er version kompiliert und installiert und werd jetzt mal schauen wies mit der läuft und ansonsten halt hoffen, dass mit 1.2.5 alles besser wird ;) und an das dev-team ne frage: wie wäre es den core und das GUI zu trennen? dann kann man auf das gui verzichten, wenn man mit nem webinterface zufrieden ist oder ein terminal bevorzugt? ist sowas in planung oder ausgeschlossen?
Logged
Of all the things I've lost
I miss my mind the most!