SGI: Development

Problem at building telegram-purple - Page 1

Hi,

I just tried to compile telegram-purple on IRIX. It is a plugin to use the Telegram protocol in Pidgin.

The configure-Script ran after I gave it the parameter --with-zlib=/usr/nekoware

Unfortunately gmake doesn't want to do anything:

Code: Select all

17:05 root@rocktane /root/telegram/telegram-purple-master
% gmake
gmake: *** Keine Regel vorhanden, um das Target »tgl/scheme.tl«,
benötigt von »auto/scheme.tl«, zu erstellen.  Schluss.


I also tried the "classic" make from IRIX which just gives a syntax error:

Code: Select all

17:06 root@rocktane /root/telegram/telegram-purple-master
% make
make: file `./Makefile.tl-parser' line 5: Syntax error


Here you can see the output of configure if it helps:

Code: Select all

17:03 root@rocktane /root/telegram/telegram-purple-master
% ./configure --with-zlib=/usr/nekoware
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/nekoware/bin/install -c
checking for sqrt in -lm... yes
checking for clock_gettime in -lrt... yes
checking for pkg-config... /usr/nekoware/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/nekoware/bin/grep
checking for egrep... /usr/nekoware/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking if zlib is wanted... yes
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking pkg-config is at least version 0.9.0... yes
checking for PURPLE... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h


And a link to the GitHub Repository of it: https://github.com/majn/telegram-purple

Does anybody have an idea why gmake fails?

Thanks in advance!
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
It fails because there's no rule to make the default target (whatever happens to be first in the makefile) if I translate your localized error message correctly. Either read it to find out or try something like "make all" (or "gmake all" since GNU is most often all these people know about).

Are you sure this master branch snapshot actually builds?
:Octane: halo , oct ane Image knightrider , d i g i t a l AlphaPC164, pond , soekris net6501, misc cool stuff in a rack
N.B.: I tend to talk out of my ass. Do not take it too seriously.
Hi,

thanks for the hint! I recloned it (This time on my Linux machine, because I'm not at home at them moment) and seen that it cloned "tgl-parser" etc too. I think the case is closed.

Tomorrow I will test it out with a new git clone.
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
I guess I ran into a new problem..

Code: Select all

21:41 root@rocktane /root/telegram-purple
% LANG=C gmake
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tgl/tl-parser/tl-parser.c
gcc: ./tgl/tl-parser: linker input file unused because linking not done
cc1: error: unrecognized command line option "-iquote"
cc1: ./tgl/tl-parser: No such file or directory
gmake: *** [objs/tl-parser.o] Error 1

This was fixed easily by using the newer GCC (neko_gcc46)

However, after that I got a new error:

Code: Select all

21:50 root@rocktane /root/telegram-purple
% LANG=C gmake
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tlc.d -MQ objs/tlc.o -o objs/tlc.o tgl/tl-parser/tlc.c
tgl/tl-parser/tlc.c:40:22: fatal error: execinfo.h: No such file or directory
compilation terminated.
gmake: *** [objs/tlc.o] Error 1

Maybe my libpurple or glibc is too old? Exactly the same source files build just fine on my Linux workstation.

Thanks in advance!
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
eudatux23 wrote: Exactly the same source files build just fine on my Linux workstation.

what a surprise, i guess you didn't read any of the threads in the development section here ... ever :P
and neither tried google. very first hit brings you to http://www.gnu.org/software/gnulib/manu ... 002eh.html

bottom line: remove the include and see if something is missing then.
r-a-c.de
Thanks for the hint! This seemed to help. After that I got the error that "-rdynamic" is not supported. After removing that, it seemed to work. But after some time:

Code: Select all

7:36 root@rocktane /root/telegram-purple
% gmake
gcc objs/tl-parser.o objs/tlc.o objs/crc32.o -L/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/nekoware/lib   -L/usr/nekoware/lib -lpurple -lglib-2.0 -lintl   -lz -lrt -lm  -lcrypto -ggdb -o bin/tl-parser
ld32: WARNING 84 : /usr/nekoware/lib/libpurple.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/nekoware/lib/libz.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib/../lib32/librt.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/nekoware/lib/libcrypto.so is not used for resolving any symbol.
bin/tl-parser -e auto/scheme.tlo auto/scheme.tl
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl -c -MP -MD -MF dep/generate.d -MQ objs/generate.o -o objs/generate.o tgl/generate.c
tgl/generate.c: In function 'get_string':
tgl/generate.c:134:3: warning: implicit declaration of function 'strndup' [-Wimplicit-function-declaration]
tgl/generate.c:134:13: warning: incompatible implicit declaration of built-in function 'strndup' [enabled by default]
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl -c -MP -MD -MF dep/tools.d -MQ objs/tools.o -o objs/tools.o tgl/tools.c
tgl/tools.c: In function 'tgl_asprintf':
tgl/tools.c:84:3: warning: implicit declaration of function 'vasprintf' [-Wimplicit-function-declaration]
gcc objs/generate.o objs/tools.o -L/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/nekoware/lib   -L/usr/nekoware/lib -lpurple -lglib-2.0 -lintl   -lz -lrt -lm  -lcrypto -ggdb -o bin/generate
ld32: WARNING 84 : /usr/nekoware/lib/libpurple.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib/../lib32/librt.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib/../lib32/libm.so is not used for resolving any symbol.
ld32: ERROR   33 : Unresolved data symbol "strndup" -- 1st referenced by objs/generate.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR   33 : Unresolved data symbol "vasprintf" -- 1st referenced by objs/tools.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO    152: Output file removed because of error.
collect2: error: ld returned 2 exit status
gmake: *** [bin/generate] Fehler 1


Seems to be that it doesn't support vasprintf and strndup?

GCC is version 4.7.1 from Nekoware:

Code: Select all

7:46 root@rocktane /root/telegram-purple
% gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/nekoware/gcc-4.7/libexec/gcc/mips-sgi-irix6.5/4.7.1/lto-wrapper
Target: mips-sgi-irix6.5
Configured with: ../gcc-4.7.1/configure --prefix=/usr/nekoware/gcc-4.7 --with-gmp=/usr/nekoware/gcc-4.7 --with-mpfr=/usr/nekoware/gcc-4.7 --with-mpc=/usr/nekoware/gcc-4.7 --with-cloog=/usr/nekoware/gcc-4.7 --with-ppl=/usr/nekoware/gcc-4.7 --with-as=/usr/nekoware/gcc-4.7/bin/as --with-gnu-as --without-gnu-ld --with-ld=/usr/bin/ld --with-host-libstdcxx=/opt/gcc-4.7.1/lib32/libstdc++.a --disable-libssp --disable-nls --disable-lto --disable-shared --enable-static --enable-threads=posix --enable-libgomp --enable-obsolete --enable-checking=release --enable-languages=c,c++,fortran,objc,obj-c++ --with-arch=mips4 --with-abi=n32
Thread model: posix
gcc version 4.7.1 (GCC)



Thanks in advance!
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
eudatux23 wrote: Seems to be that it doesn't support vasprintf and strndup?

exactly. these don't exist on irix.
r-a-c.de
You can use g_vasprintf and g_strndup form glib.
:Tezro: :Fuel: :Octane2: :Octane: :Onyx2: :O2+: :O2: :Indy: :Indigo: :Cube:
Any idea how to do this? Is it enough to just change the words in the source code? I can try it this evening.
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
eudatux23 wrote: Any idea how to do this? Is it enough to just change the words in the source code? I can try it this evening.
You have to include glib.h and change the source. The code is linked with glib already, so you don't need to change anything for linking.
:Tezro: :Fuel: :Octane2: :Octane: :Onyx2: :O2+: :O2: :Indy: :Indigo: :Cube:
That worked. But now after these changes I even got a new error:

Code: Select all

18:29 root@rocktane /root/telegram-purple
% LANG=C gmake
bin/generate -H auto/scheme.tlo > auto/auto-header.h
Assertion failed: EX, file tgl/generate.c, line 1511, pid 1489
gmake: *** [auto/auto-header.h] Error 1
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
well, have a look into generate.c at line 1511 and see what happens there
r-a-c.de
The content of this line is:
assert (t->constructors_num >= 0 && t->constructors_num <= 1000);

It is part of the following struct:

Code: Select all

struct tl_type *read_types (void) {
struct tl_type *t = malloc0 (sizeof (*t));
t->name = get_int ();
t->id = get_string ();
t->print_id = strdup (gen_print_id (t->id));
assert (t->print_id);

t->constructors_num = get_int ();
assert (t->constructors_num >= 0 && t->constructors_num <= 1000);

t->constructors = malloc0 (sizeof (void *) * t->constructors_num);
t->flags = get_int ();
t->arity = get_int ();
t->params_types = get_long (); // params_types
t->extra = 0;
tl_type_insert_by_name (t);
return t;
}


Any ideas? Thanks!
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
Just comment that line out and see what happens next.
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...
After uncommenting this line, the problem sadly hasn't changed. I also tried a gmake clean to make sure that no rests of the old binaries is there. The message is still the same at the end.

Code: Select all

20:09 root@rocktane /root/telegram-purple
% LANG=C gmake
cat tgl/scheme.tl tgl/encrypted_scheme.tl tgl/binlog.tl tgl/append.tl tgl/mtproto.tl > auto/scheme.tl
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tl-parser.d -MQ objs/tl-parser.o -o objs/tl-parser.o tgl/tl-parser/tl-parser.c
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl/tl-parser -c -MP -MD -MF dep/tlc.d -MQ objs/tlc.o -o objs/tlc.o tgl/tl-parser/tlc.c
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl/tl-parser -c -MP -MD -MF dep/crc32.d -MQ objs/crc32.o -o objs/crc32.o tgl/tl-parser/crc32.c
gcc objs/tl-parser.o objs/tlc.o objs/crc32.o -L/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/nekoware/lib   -L/usr/nekoware/lib -lpurple -lglib-2.0 -lintl   -lz -lrt -lm  -lcrypto -ggdb -o bin/tl-parser
ld32: WARNING 84 : /usr/nekoware/lib/libpurple.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/nekoware/lib/libz.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib/../lib32/librt.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/nekoware/lib/libcrypto.so is not used for resolving any symbol.
bin/tl-parser -e auto/scheme.tlo auto/scheme.tl
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl -c -MP -MD -MF dep/generate.d -MQ objs/generate.o -o objs/generate.o tgl/generate.c
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl -c -MP -MD -MF dep/tools.d -MQ objs/tools.o -o objs/tools.o tgl/tools.c
tgl/tools.c: In function 'tgl_asprintf':
tgl/tools.c:85:3: warning: implicit declaration of function 'g_vasprintf' [-Wimplicit-function-declaration]
gcc objs/generate.o objs/tools.o -L/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/nekoware/lib   -L/usr/nekoware/lib -lpurple -lglib-2.0 -lintl   -lz -lrt -lm  -lcrypto -ggdb -o bin/generate
ld32: WARNING 84 : /usr/nekoware/lib/libpurple.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib/../lib32/librt.so is not used for resolving any symbol.
ld32: WARNING 84 : /usr/lib/../lib32/libm.so is not used for resolving any symbol.
bin/generate auto/scheme.tlo > auto/auto.c
Assertion failed: EX, file tgl/generate.c, line 107, pid 1226
gmake: *** [auto/auto.c] Error 1
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
does "auto/scheme.tlo" exist and is something inside?
r-a-c.de
Yes, it exists. It's a 168KB binary file. When opening it with "strings", a lot of things related to the messenger (for example "messages.messages")
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
i had a look at generate.c at line 107 which was your last error and that's a malloc error. this seems to be a bit more serious.
from a performance point of view that "generate" program is crap btw :P
r-a-c.de
Thanks! Any idea what can be done against that? Once it is compiled, the performance wouldn't be that important.

Interesting, this time it gone a whole more further. But now there's a new problem. Maybe some missing headers?

Code: Select all

In file included from tgl/mtproto-common.c:42:0:
tgl/mtproto-common.h: In function 'fetch_bool':
tgl/mtproto-common.h:301:3: error: 'CODE_bool_true' undeclared (first use in this function)
tgl/mtproto-common.h:301:3: note: each undeclared identifier is reported only once for each function it appears in
tgl/mtproto-common.h:301:3: error: 'CODE_bool_false' undeclared (first use in this function)
gmake: *** [objs/mtproto-common.o] Error 1


After a bit of looking I have seen that these get declared in "constants.h" which was empty.
So I changed it to this:
https://github.com/INTECOCERT/telegram_ ... onstants.h

Now I get the following:

Code: Select all

21:20 root@rocktane /root/telegram-purple
% gmake
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl -c -MP -MD -MF dep/mtproto-common.d -MQ objs/mtproto-common.o -o objs/mtproto-common.o tgl/mtproto-common.c
gcc  -g -O2 -I/usr/nekoware/include/libpurple -I/usr/nekoware/include/glib-2.0 -I/usr/nekoware/lib/glib-2.0/include   -DHAVE_CONFIG_H -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -I. -I. -fno-strict-aliasing -fPIC -I/usr/nekoware/include -I/usr/nekoware/include -DFLAGS -iquote ./tgl -c -MP -MD -MF dep/mtproto-client.d -MQ objs/mtproto-client.o -o objs/mtproto-client.o tgl/mtproto-client.c
In file included from tgl/auto.h:46:0,
from tgl/queries.h:24,
from tgl/mtproto-client.c:50:
./auto/auto-header.h:1:1: error: expected identifier or '(' before numeric constant
./auto/auto-header.h:2:1: warning: null character(s) ignored [enabled by default]
./auto/auto-header.h:3:1: warning: null character(s) ignored [enabled by default]
In file included from tgl/mtproto-client.c:50:0:
tgl/queries.h:32:50: warning: 'struct query' declared inside parameter list [enabled by default]
tgl/queries.h:32:50: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
tgl/queries.h:33:49: warning: 'struct query' declared inside parameter list [enabled by default]
tgl/queries.h:34:51: warning: 'struct query' declared inside parameter list [enabled by default]
tgl/mtproto-client.c: In function 'process_respq_answer':
tgl/mtproto-client.c:377:3: warning: implicit declaration of function 'skip_type_any' [-Wimplicit-function-declaration]
tgl/mtproto-client.c:377:1: error: 'tl_type_res_p_q' undeclared (first use in this function)
tgl/mtproto-client.c:377:1: note: each undeclared identifier is reported only once for each function it appears in
tgl/mtproto-client.c:385:3: error: 'CODE_res_p_q' undeclared (first use in this function)
tgl/mtproto-client.c: In function 'process_dh_answer':
tgl/mtproto-client.c:442:1: error: 'tl_type_server_d_h_params' undeclared (first use in this function)
tgl/mtproto-client.c:451:3: error: 'CODE_server__d_h_params_ok' undeclared (first use in this function)
tgl/mtproto-client.c:451:3: error: 'CODE_server__d_h_params_fail' undeclared (first use in this function)
tgl/mtproto-client.c:485:1: error: 'tl_type_server_d_h_inner_data' undeclared (first use in this function)
tgl/mtproto-client.c:535:53: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
tgl/mtproto-client.c: In function 'process_auth_complete':
tgl/mtproto-client.c:572:1: error: 'tl_type_set_client_d_h_params_answer' undeclared (first use in this function)
tgl/mtproto-client.c: In function 'get_server_time':
tgl/mtproto-client.c:690:21: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
tgl/mtproto-client.c: In function 'process_rpc_message':
tgl/mtproto-client.c:1099:7: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
tgl/mtproto-client.c: In function 'get_server_time':
tgl/mtproto-client.c:691:1: warning: control reaches end of non-void function [-Wreturn-type]
gmake: *** [objs/mtproto-client.o] Error 1
:Octane2: SGI Octane 2 - Dual R12K 400 MHz - 250 0MB RAM - 73 GB HDD - vPro v12 - IRIX 6.5.30
:Indigo2IMP: SGI Indigo² - R10K 175 MHz - 320 MB RAM - 73 GB SCSI HDD - High Impact-AA + TRAM - IRIX 6.5.22f
:O2: SGI O2 - R5K 180 MHz - 96 MB RAM - 18 GB HDD - CRM - IRIX 6.5.30
there're still some declarations missing and CLOCK_MONOTONIC doesn't exist on irix
r-a-c.de