aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: hum Revision 9783  (Read 10137 times)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
hum Revision 9783
« on: August 29, 2009, 03:09:39 PM »

I know its been a while, but from every now an then I use aMule and also try to test it a bit,

currently I get following configure error :3

Code: [Select]
./autogen.sh && ./configure --enable-amule-daemon --enable-amulecmd --enable-amule-gui --enable-geoip --disable-optimize --enable-debug --enable-ccache && make


configure output
Code: [Select]
checking for GeoIP.h... yes
checking for GeoIP_open in -lGeoIP... yes
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.10)
checking for wxWidgets static library... no
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking which wxWidgets toolkit was selected... gtk2
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
./configure: line 8408: syntax error near unexpected token `{'
./configure: line 8408: `fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5'



thats the code autogen produces around line 8408, (thats the line ->> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5)

Code: [Select]
fi
else
                                result=no
                                resultstr=" (try to use --with-libupnp-prefix=PREFIX)"

fi
else
                        result=no
                        resultstr=" (pkg-config not found)"

fi              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
$as_echo "$result$resultstr" >&6; }
                libupnp_error="libupnp >= 1.6.6 not found$resultstr"

else
                result=no
                libupnp_error="cross compiling"

fi

cheers
stef
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: hum Revision 9783
« Reply #1 on: August 29, 2009, 03:57:36 PM »

Jep, fix is already in forums. Nice to see you again.
Logged
Homefucking is killing prostitution

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: hum Revision 9783
« Reply #2 on: August 29, 2009, 10:25:00 PM »

Hi stefanero!

My fault, I wasn't fast enough committing the fix before you could test it ;)
Logged
concordia cum veritate

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: hum Revision 9783
« Reply #3 on: August 30, 2009, 08:48:41 AM »

heyho you 2 :)

well this compilation error is gone, but I get another one on amuleweb

Code: [Select]
mv -f .deps/amuleweb-php_parser.Tpo .deps/amuleweb-php_parser.Po
/usr/bin/ccache gcc -DHAVE_CONFIG_H -I. -I../../..  -I../.. -I../../../src -I../../../src/libs -I../../../src/include -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -DWITH_LIBPNG -DHAVE_BFD -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0   -I/usr/include/upnp   -DENABLE_UPNP=1  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread -I/usr/include/libpng12 -pthread    -MT amuleweb-php_lexer.o -MD -MP -MF .deps/amuleweb-php_lexer.Tpo -c -o amuleweb-php_lexer.o `test -f 'php_lexer.c' || echo './'`php_lexer.c
php_lexer.c:34:5: warning: "__STDC_VERSION__" is not defined
php_lexer.l: In function ‘phplex’:
php_lexer.l:109: error: void value not ignored as it ought to be
php_lexer.c: In function ‘yy_get_next_buffer’:
php_lexer.c:1677: warning: comparison between signed and unsigned integer expressions
make[4]: *** [amuleweb-php_lexer.o] Fehler 1
make[4]: Verlasse Verzeichnis '/home/stefanero/temp/amule-dev/trunk/src/webserver/src'
make[3]: *** [all-recursive] Fehler 1

I am having that one for a while now btw, so I disabled amuleweb at first...but I guess its a good time to post it now here :D

stef
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: hum Revision 9783
« Reply #4 on: August 30, 2009, 01:29:22 PM »

Wooohoo stefan, so long no see, man.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: hum Revision 9783
« Reply #5 on: August 30, 2009, 02:24:16 PM »

Is your php_lexer.c generated on your machine ? Could you compare it with the one from SVN? Maybe it's a problem with your flex.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: hum Revision 9783
« Reply #6 on: August 31, 2009, 10:07:02 AM »

Is your php_lexer.c generated on your machine ? Could you compare it with the one from SVN? Maybe it's a problem with your flex.

well not quite sure what you mean. php_lexer.c gets generated right?

so what I did it

-make a backup of the currently (maybe wrong) php_lexer.c, to php_lexer.c.org
-rm php_lexer.c, and svn up , to restore it

the diff of those two return nothing.

Code: [Select]
amule-dev/trunk/src/webserver/src$ diff php_lexer.c php_lexer.c.org
btw my flex version

Code: [Select]
flex --version
flex 2.5.35

so anything else you need to know?! :)


@kry: Hi kry, yes its been a while, life is a bitch, but I guess you know ^^


cya
stef
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

mr_hyde

  • Global Moderator
  • Full Member
  • *****
  • Karma: 12
  • Offline Offline
  • Posts: 105
Re: hum Revision 9783
« Reply #7 on: August 31, 2009, 09:53:09 PM »

Try to generate the file php_lexer.c AGAIN starting from php_lexer.l:
1) cd amule/src/webserver/src
2) mv php_lexer.c php_lexer.c.OLD
3) make php_lexer.c

And then check the diff
4) diff php_lexer.c.OLD php_lexer.c

I also remember a similar error (but probably my error depended on my installation)... Are you using SVN sources? And from a tarball or from a svn checkout or svn export?
 
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: hum Revision 9783
« Reply #8 on: August 31, 2009, 10:00:07 PM »

well not quite sure what you mean. php_lexer.c gets generated right?
Yes, but it's also included in SVN, so it can be compiled without flex (like for Windows). However, if your generated php_lexer.c equals the one from SVN, then that's not the problem. Hmm. Which GCC version?

mr_hyde, it was a SVN checkout ("svn up"). And what you described is just what he did. Hell, Stefanero probably knows more about the issue than me.  :)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

mr_hyde

  • Global Moderator
  • Full Member
  • *****
  • Karma: 12
  • Offline Offline
  • Posts: 105
Re: hum Revision 9783
« Reply #9 on: August 31, 2009, 11:54:09 PM »

well not quite sure what you mean. php_lexer.c gets generated right?
mr_hyde, it was a SVN checkout ("svn up"). And what you described is just what he did. Hell, Stefanero probably knows more about the issue than me.  :)

Sorry, probably I misunderstood... I wanted only to suggest how to re-generate (with the flex installed locally) the .c file from .l file (if the file .c is simply removed/renamed and then restored by a svn update then probabbly it will not be regenerated by flex installed locally).

I asked about the svn co / update / export because, a long ago, during one of my silly experiment (don't ask... it's better  ;D), I noticed that often I had a similar error only for "svn checkout" / "svn update" and NOT with "svn export". I suspected something related to files contained in .svn dirs, some macros... Anyway don't loose your time investigating about this ancient and strange error, probably it was caused only by my experiment (I was just experimenting a local SVN server with aMule sources) or by something in the Linux installation used for those tests...

Bye,
  Mr Hyde
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: hum Revision 9783
« Reply #10 on: September 01, 2009, 01:26:18 PM »

well :)
thnx mr_hyde,

what I did was just move the orginal and then svn up,

because I figured the .c files gets generated no matter what on linux, which is ovioulsly not true :D

after a make php_lexer.c now I do get a diff :D

Code: [Select]
diff php_lexer.c php_lexer.c.org
Code: [Select]
9,27d8
< #define yy_create_buffer php_create_buffer
< #define yy_delete_buffer php_delete_buffer
< #define yy_flex_debug php_flex_debug
< #define yy_init_buffer php_init_buffer
< #define yy_flush_buffer php_flush_buffer
< #define yy_load_buffer_state php_load_buffer_state
< #define yy_switch_to_buffer php_switch_to_buffer
< #define yyin phpin
< #define yyleng phpleng
< #define yylex phplex
< #define yylineno phplineno
< #define yyout phpout
< #define yyrestart phprestart
< #define yytext phptext
< #define yywrap phpwrap
< #define yyalloc phpalloc
< #define yyrealloc phprealloc
< #define yyfree phpfree
<
31c12
< #define YY_FLEX_SUBMINOR_VERSION 35
---
> #define YY_FLEX_SUBMINOR_VERSION 33
53c34
< #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
---
> #if __STDC_VERSION__ >= 199901L
75a57
> #endif /* ! C99 */
106,107d87
< #endif /* ! C99 */
<
117,118c97
< /* C99 requires __STDC__ to be defined as 1. */
< #if defined (__STDC__)
---
> #if __STDC__
122c101
< #endif /* defined (__STDC__) */
---
> #endif /* __STDC__ */
164,170d142
< #ifdef __ia64__
< /* On IA-64, the buffer size is 16k, not 8k.
<  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
<  * Ditto for the __ia64__ case accordingly.
<  */
< #define YY_BUF_SIZE 32768
< #else
172d143
< #endif /* __ia64__ */
222a194,198
> /* The following is because we cannot portably get our hands on size_t
>  * (without autoconf's help, which isn't available because we want
>  * flex-generated scanners to compile on their own).
>  */
>
225c201
< typedef size_t yy_size_t;
---
> typedef unsigned int yy_size_t;
740c716
< #line 741 "php_lexer.c"
---
> #line 717 "php_lexer.c"
761,789d736
< /* Accessor methods to globals.
<    These are made visible to non-reentrant scanners for convenience. */
<
< int phplex_destroy (void );
<
< int phpget_debug (void );
<
< void phpset_debug (int debug_flag  );
<
< YY_EXTRA_TYPE phpget_extra (void );
<
< void phpset_extra (YY_EXTRA_TYPE user_defined  );
<
< FILE *phpget_in (void );
<
< void phpset_in  (FILE * in_str  );
<
< FILE *phpget_out (void );
<
< void phpset_out  (FILE * out_str  );
<
< int phpget_leng (void );
<
< char *phpget_text (void );
<
< int phpget_lineno (void );
<
< void phpset_lineno (int line_number  );
<
834,837d780
< #ifdef __ia64__
< /* On IA-64, the buffer size is 16k, not 8k */
< #define YY_READ_BUF_SIZE 16384
< #else
839d781
< #endif /* __ia64__ */
847c789
< #define ECHO do { if (fwrite( phptext, phpleng, 1, phpout )) {} } while (0)
---
> #define ECHO (void) fwrite( phptext, phpleng, 1, phpout )
943c885
< #line 944 "php_lexer.c"
---
> #line 886 "php_lexer.c"
1502c1444
< #line 1503 "php_lexer.c"
---
> #line 1445 "php_lexer.c"
1736c1678
< (yy_n_chars), (size_t) num_to_read );
---
> (yy_n_chars), num_to_read );
1760,1767d1701
< if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
< /* Extend the array by 50%, plus the number we really need. */
< yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
< YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) phprealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size  );
< if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
< YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
< }
<
1923c1857
< return EOF;
---
> return 0;
2192,2194c2126
< if ( ! (yy_buffer_stack) )
< YY_FATAL_ERROR( "out of dynamic memory in phpensure_buffer_stack()" );
<  
---
>
2212,2213d2143
< if ( ! (yy_buffer_stack) )
< YY_FATAL_ERROR( "out of dynamic memory in phpensure_buffer_stack()" );
2258c2188
<  * @param yystr a NUL-terminated string to scan
---
>  * @param str a NUL-terminated string to scan
2272,2273c2202,2203
<  * @param yybytes the byte buffer to scan
<  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
---
>  * @param bytes the byte buffer to scan
>  * @param len the number of bytes in the buffer pointed to by @a bytes.
2323c2253,2254
< YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
---
> YY_FATAL_ERROR(
> "out of memory expanding start-condition stack" );

and when I do a

make amuleweb in that folder again I get

Code: [Select]
src$ make amuleweb
/usr/bin/ccache gcc -DHAVE_CONFIG_H -I. -I../../..  -I../.. -I../../../src -I../../../src/libs -I../../../src/include -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -DWITH_LIBPNG -DHAVE_BFD -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0   -I/usr/include/upnp   -DENABLE_UPNP=1  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread -I/usr/include/libpng12 -pthread    -MT amuleweb-php_lexer.o -MD -MP -MF .deps/amuleweb-php_lexer.Tpo -c -o amuleweb-php_lexer.o `test -f 'php_lexer.c' || echo './'`php_lexer.c
php_lexer.l: In function ‘phplex’:
php_lexer.l:109: error: expected expression before ‘do’
make: *** [amuleweb-php_lexer.o] Fehler 1


Code: [Select]
gcc --version
gcc (Ubuntu 4.4.1-3ubuntu3) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cu
stef
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: hum Revision 9783
« Reply #11 on: September 01, 2009, 10:38:31 PM »

Hmm - you get two different errors with the php_lexer.c from SVN and with the one generated at your site (so the original error was from the SVN version after all). Looks like you're attracting trouble. Good for a hero tester.  ;)

I have
Code: [Select]
me@myhost:~/$ gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
with Jaunty. Are you using a beta version of GCC or of Ubuntu?

Please try the SVN file again. Replace all the stupid #line with //#line so I can get an idea where it's choking. The code after #line 109 looks innocent to me.
Code: [Select]
//#line 107 "php_lexer.l"
return CONTINUE;
YY_BREAK
case 25:
YY_RULE_SETUP
//#line 109 "php_lexer.l"
return ECHO;
YY_BREAK
case 26:
YY_RULE_SETUP
//#line 110 "php_lexer.l"
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: hum Revision 9783
« Reply #12 on: September 02, 2009, 08:56:24 AM »

yeah I am using 9.10 beta :>
I was never into stable versions :D

I will try what you suggested when I am back from work tonight
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: hum Revision 9783
« Reply #13 on: September 02, 2009, 05:37:59 PM »

well does not look different to me...

Code: [Select]
mv -f .deps/amuleweb-php_parser.Tpo .deps/amuleweb-php_parser.Po
/usr/bin/ccache gcc -DHAVE_CONFIG_H -I. -I../../..  -I../.. -I../../../src -I../../../src/libs -I../../../src/include -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -DWITH_LIBPNG -DHAVE_BFD -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0   -I/usr/include/upnp   -DENABLE_UPNP=1  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread -I/usr/include/libpng12 -pthread    -MT amuleweb-php_lexer.o -MD -MP -MF .deps/amuleweb-php_lexer.Tpo -c -o amuleweb-php_lexer.o `test -f 'php_lexer.c' || echo './'`php_lexer.c
php_lexer.c:34:5: warning: "__STDC_VERSION__" is not defined
php_lexer.c: In function ‘phplex’:
php_lexer.c:1107: error: void value not ignored as it ought to be
php_lexer.c: In function ‘yy_get_next_buffer’:
php_lexer.c:1677: warning: comparison between signed and unsigned integer expressions
make: *** [amuleweb-php_lexer.o] Fehler 1

thats a short cut from my file

Code: [Select]
case 24:
YY_RULE_SETUP
//#line 107 "php_lexer.l"
return CONTINUE;
        YY_BREAK
case 25:
YY_RULE_SETUP
//#line 109 "php_lexer.l"
return ECHO;
        YY_BREAK
case 26:
YY_RULE_SETUP
//#line 110 "php_lexer.l"
return PRINT;
        YY_BREAK

but I attach it aswell just so you can make sure :D

cya
stef
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: hum Revision 9783
« Reply #14 on: September 03, 2009, 03:33:28 PM »

Ha,

Code: [Select]
#define ECHO (void) fwrite( phptext, phpleng, 1, phpout )
That's in the generated code, so more users should have the problem with the new GCC.  :P
I'll have to play around with generating it a bit myself. Meanwhile, removing the (void) should do the trick.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon
Pages: [1] 2