Problem at building telegram-purple

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
foetz
Moderator
Moderator
Posts: 6592
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Problem at building telegram-purple

Unread postby foetz » Tue Apr 07, 2015 11:23 am

does "auto/scheme.tlo" exist and is something inside?

User avatar
eudatux23
Posts: 97
Joined: Mon Dec 19, 2011 4:52 am
Location: Sonsbeck, Germany
Contact:

Re: Problem at building telegram-purple

Unread postby eudatux23 » Tue Apr 07, 2015 11:32 am

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

User avatar
foetz
Moderator
Moderator
Posts: 6592
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Problem at building telegram-purple

Unread postby foetz » Tue Apr 07, 2015 11:48 am

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

User avatar
eudatux23
Posts: 97
Joined: Mon Dec 19, 2011 4:52 am
Location: Sonsbeck, Germany
Contact:

Re: Problem at building telegram-purple

Unread postby eudatux23 » Tue Apr 07, 2015 11:53 am

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
Last edited by foetz on Tue Apr 07, 2015 1:05 pm, edited 1 time in total.
Reason: merged
: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

User avatar
foetz
Moderator
Moderator
Posts: 6592
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Problem at building telegram-purple

Unread postby foetz » Tue Apr 07, 2015 1:06 pm

there're still some declarations missing and CLOCK_MONOTONIC doesn't exist on irix

User avatar
jan-jaap
Donor
Donor
Posts: 4938
Joined: Thu Jun 17, 2004 11:35 am
Location: Wijchen, The Netherlands
Contact:

Re: Problem at building telegram-purple

Unread postby jan-jaap » Tue Apr 07, 2015 1:24 pm

foetz wrote:there're still some declarations missing and CLOCK_MONOTONIC doesn't exist on irix

CLOCK_SGI_CYCLE can be used as a replacement
:PI: :Indigo: :Indigo: :Indy: :Indy: :Indy: :Indigo2: :Indigo2: :Indigo2IMP: :Octane: :Octane2: :O2: :O2+: Image :Fuel: :Tezro: :4D70G: :Skywriter: :PWRSeries: :Crimson: :ChallengeL: :Onyx: :O200: :Onyx2: :O3x02L:
To accentuate the special identity of the IRIS 4D/70, Silicon Graphics' designers selected a new color palette. The machine's coating blends dark grey, raspberry and beige colors into a pleasing harmony. (IRIS 4D/70 Superworkstation Technical Report)

User avatar
vishnu
Donor
Donor
Posts: 3189
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Problem at building telegram-purple

Unread postby vishnu » Tue Apr 07, 2015 10:39 pm

jan-jaap wrote:
foetz wrote:there're still some declarations missing and CLOCK_MONOTONIC doesn't exist on irix

CLOCK_SGI_CYCLE can be used as a replacement

Seriously? I might have figured that out in like, a million years of googleing. jan-jaap, you truly are the Oracle... 8-)
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:

User avatar
eudatux23
Posts: 97
Joined: Mon Dec 19, 2011 4:52 am
Location: Sonsbeck, Germany
Contact:

Re: Problem at building telegram-purple

Unread postby eudatux23 » Wed Apr 08, 2015 3:00 am

Thanks for the hint! I will try this change 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

User avatar
jan-jaap
Donor
Donor
Posts: 4938
Joined: Thu Jun 17, 2004 11:35 am
Location: Wijchen, The Netherlands
Contact:

Re: Problem at building telegram-purple

Unread postby jan-jaap » Wed Apr 08, 2015 5:11 am

vishnu wrote:a million years of googleing.

Google, meh. What's wrong with going straight to the source :)

CLOCK_SGI_CYCLE and CLOCK_MONOTONIC may have different corner cases, especially on 32bit systems (wrapping).

If you want a linear counter rather than a struct timespec, check the documentation of the SGI_QUERY_CYCLECNTR request to syssgi.
:PI: :Indigo: :Indigo: :Indy: :Indy: :Indy: :Indigo2: :Indigo2: :Indigo2IMP: :Octane: :Octane2: :O2: :O2+: Image :Fuel: :Tezro: :4D70G: :Skywriter: :PWRSeries: :Crimson: :ChallengeL: :Onyx: :O200: :Onyx2: :O3x02L:
To accentuate the special identity of the IRIS 4D/70, Silicon Graphics' designers selected a new color palette. The machine's coating blends dark grey, raspberry and beige colors into a pleasing harmony. (IRIS 4D/70 Superworkstation Technical Report)

User avatar
foetz
Moderator
Moderator
Posts: 6592
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Problem at building telegram-purple

Unread postby foetz » Wed Apr 08, 2015 6:36 am

vishnu wrote:
jan-jaap wrote:
foetz wrote:there're still some declarations missing and CLOCK_MONOTONIC doesn't exist on irix

CLOCK_SGI_CYCLE can be used as a replacement

Seriously? I might have figured that out in like, a million years of googleing. jan-jaap, you truly are the Oracle... 8-)

:P

it's a classic. after building a bunch of freeware you come across that one way or the other :D


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest