aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problem compiling wxGTK  (Read 4431 times)

thoseg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Problem compiling wxGTK
« on: December 28, 2003, 10:44:52 PM »

Hello,

My amule takes 90% of my cpu so I decided to compile it by hands... I'm running Debian/unstable and got this message when compiling wxGTK2.4.2 :

gcc -c   -I./lib/wx/include/gtk-2.4 -I./include -I./src/tiff -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES    -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -pthread -Wall -I. -fPIC -o parser.o parser.c
In file included from ./src/common/parser.y:127:
./src/common/lexer.l: In function `wxExprCleanUp':
./src/common/lexer.l:190: error: `PROIO_yy_current_buffer' undeclared (first use in this function)
./src/common/lexer.l:190: error: (Each undeclared identifier is reported only once
./src/common/lexer.l:190: error: for each function it appears in.)
y.tab.c: In function `PROIO_yyparse':
y.tab.c:306: warning: suggest parentheses around assignment used as truth value
y.tab.c:354: warning: label `PROIO_yyerrlab' defined but not used
y.tab.c:349: warning: label `PROIO_yynewerror' defined but not used
y.tab.c: At top level:
parser.c:2: warning: `PROIO_yysccsid' defined but not used
make: *** [parser.o] Error 1

This command was used :

Soltek:/home/thoseg/wxGTK-2.4.2# ./configure --prefix=/usr --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile && make

I don't understand the message. Can you help me please ? I post the result of get-info.sh :

I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.3 20031206 (prerelease) (Debian)

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

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

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Intel(R) Pentium(R) 4 CPU 2.60GHz
        Speed: 2593.560
        BMips: 5177.34
        Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid

     B. Memory Info
        Total:   513980 kB
        Unused:  279984 kB

     C. Kernel Info
        Version: 2.4.23

     D. Library Info
        wxWindows library: libwx_gtkd_gl-2.4.so (libc6) => /usr/lib/libwx_gtkd_gl-2.4.so libwx_gtkd-2.4.so (libc6) => /usr/lib/libwx_gtkd-2.4.so libwx_gtk_xrc-2.4.so (libc6) => /usr/lib/libwx_gtk_xrc-2.4.so libwx_gtk_stc-2.4.so (libc6) => /usr/lib/libwx_gtk_stc-2.4.so libwx_gtk_plot-2.4.so (libc6) => /usr/lib/libwx_gtk_plot-2.4.so libwx_gtk_ogl-2.4.so (libc6) => /usr/lib/libwx_gtk_ogl-2.4.so libwx_gtk_net-2.4.so (libc6) => /usr/lib/libwx_gtk_net-2.4.so libwx_gtk_gl-2.4.so (libc6) => /usr/lib/libwx_gtk_gl-2.4.so libwx_gtk_gizmos-2.4.so (libc6) => /usr/lib/libwx_gtk_gizmos-2.4.so libwx_gtk_fl-2.4.so (libc6) => /usr/lib/libwx_gtk_fl-2.4.so libwx_gtk_dcsvg-2.4.so (libc6) => /usr/lib/libwx_gtk_dcsvg-2.4.so libwx_gtk_canvas-2.4.so (libc6) => /usr/lib/libwx_gtk_canvas-2.4.so libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so libwx_based-2.4.so (libc6) => /usr/lib/libwx_based-2.4.so libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so

Thanks a lot for all your work !
 :D
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: Problem compiling wxGTK
« Reply #1 on: December 28, 2003, 11:12:43 PM »

hi,

u propably need lex and bison .. install them and recompile wxGTK ..

greets
delta

thoseg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: Problem compiling wxGTK
« Reply #2 on: December 30, 2003, 01:15:25 AM »

Thanks for your answer deltaHF.  :D
I do an "apt-get" for the bison package...
 8)
Here is the result :

Quote

Soltek:/usr/lib# dpkg -l flex bison
 Name           Version        Description
+++-==============-==============-============================================
ii  flex           2.5.31-21      A fast lexical analyzer generator.
ii  bison          1.875a-1       A parser generator that is compatible with Y


As you can see, the error seems to be different :

Quote

thoseg@Soltek:~/wxGTK-2.4.2$ make
gcc -c   -I./lib/wx/include/gtk-2.4 -I./include -I./src/tiff -I/usr/local/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES    -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -pthread -Wall -I. -fPIC -o parser.o parser.c
In file included from ./src/common/parser.y:127:
./src/common/lexer.l: In function `wxExprCleanUp':
./src/common/lexer.l:190: error: `PROIO_yy_current_buffer' undeclared (first use in this function)
./src/common/lexer.l:190: error: (Each undeclared identifier is reported only once
./src/common/lexer.l:190: error: for each function it appears in.)
make: *** [parser.o] Error 1


Too bad !  :cry:
Anyway, I'm going to sleep now... :shock:
Many thanks for your help and great support. Good night...
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: Problem compiling wxGTK
« Reply #3 on: December 30, 2003, 09:44:05 AM »

deltaHF@deltahf:~> flex --version
flex version 2.5.4
deltaHF@deltahf:~> bison --version
bison (GNU Bison) 1.75

maybe your flex pkg is too old.. dunno.. mh, join #amule on efnet plz.. i'll try to help u "live"

greets
delta

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: Problem compiling wxGTK
« Reply #4 on: December 30, 2003, 12:09:15 PM »

Hi thoseg,
Quote
thoseg@Soltek:~/wxGTK-2.4.2$ make
gcc -c -I./lib/wx/include/gtk-2.4 -I./include -I./src/tiff -I/usr/local/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -pthread -Wall -I. -fPIC -o parser.o parser.c
In file included from ./src/common/parser.y:127:
./src/common/lexer.l: In function `wxExprCleanUp':
./src/common/lexer.l:190: error: `PROIO_yy_current_buffer' undeclared (first use in this function)
./src/common/lexer.l:190: error: (Each undeclared identifier is reported only once
./src/common/lexer.l:190: error: for each function it appears in.)
make: *** [parser.o] Error 1

This is a well know problem i have when helping another user, to fix :

- Edit wxGTK-2.4.2/src/common/lexer.l
- Go to the end of file and remove :
[code:1]#ifdef FLEX_SCANNER
        if (yy_current_buffer)
                yy_delete_buffer(yy_current_buffer);
#endif[/code:1]
Then relaunch make as usual ...

A++
Logged
Creator of aMule & aStats projects

thoseg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: Problem compiling wxGTK
« Reply #5 on: January 02, 2004, 12:37:56 AM »

Hello everybody,

first of all : Happy NEW YEAR !!!  :lol:

Removing the lines solve the problem. I got my amule up and running and I'm very happy !
I saw that a new amule version was released. :shock:
Your work is incredible !  :wink:

I just want to say thank you for your great help and your fabulous work !
8)

Sincerly,

Thoseg
Logged