Compile problems under linux

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Message
Author
-haseo-
Noob
Noob
Posts: 14
Joined: 29 Jan 2011, 11:29
Noob?: No

Compile problems under linux

#1 Post by -haseo- »

Hello,

trying to run OK on a debian based machine and I'm having problems with that readline thingy.

Here is the output when trying to run that readlinetest.c program:

Code: Select all

linux:/home/ok# gcc -c readlinetest.c
readlinetest.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
In file included from /usr/include/stdio.h:75,
                 from /usr/include/readline/readline.h:36,
                 from readlinetest.c:2:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before 'size_t'
/usr/include/libio.h:364: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:373: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from /usr/include/readline/readline.h:36,
                 from readlinetest.c:2:
/usr/include/stdio.h:312: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:319: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:361: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:678: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/usr/include/stdio.h:684: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
/usr/include/stdio.h:706: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:708: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
In file included from /usr/include/readline/chardefs.h:28,
                 from /usr/include/readline/keymaps.h:36,
                 from /usr/include/readline/readline.h:39,
                 from readlinetest.c:2:
/usr/include/string.h:39: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:43: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:52: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:59: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:62: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:66: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:88: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:96: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:102: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm'
/usr/include/string.h:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
/usr/include/string.h:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
/usr/include/string.h:242: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
/usr/include/string.h:270: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:294: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:298: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:302: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:305: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:335: error: expected declaration specifiers or '...' before 'size_t'
linux:/home/ok# apt-get install libreadline5-dev
...
...
...
libreadline5-dev already installed.
...
linux:/home/ok#
What's the problem? I have a compiler and perl installed...

Code: Select all

linux:/home/ok# g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
linux:/home/ok#

Code: Select all

linux:/home/ok# perl -v | grep perl
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
linux:/home/ok#

rivercurry
Noob
Noob
Posts: 6
Joined: 22 Nov 2022, 23:18
Noob?: No

Re: Compile problems under linux

#2 Post by rivercurry »

After i updated my Kore to last rev 7798 i cant connect to XKore on my private. I got a tons of Packet errors on login, and a red warn kipas guys

User avatar
alisonrag
Developers
Developers
Posts: 34
Joined: 30 Jun 2011, 12:25
Noob?: No
Location: Brazil

Re: Compile problems under linux

#3 Post by alisonrag »

openkore is now at github: https://github.com/OpenKore/openkore
"ignorance is a blessing"

Post Reply