Good day!

I'm trying to port Mesa library for the latest QNX platform using DRM and 
DRI, but without X11 environment. Almost all compilation gone fine (but also 
I need to write a lot of QNX-specific code to get it worked) except one 
place in src/mesa/glapi. I'll try to describe my problem:

In file included from glapi/glapi_getproc.c:77:
glapi/glprocs.h:1616: error: `driDispatchRemapTable' undeclared here (not in 
a function)
glapi/glprocs.h:1616: error: `AttachShader_remap_index' undeclared here (not 
in a function)
glapi/glprocs.h:1616: error: initializer element is not constant
glapi/glprocs.h:1616: error: (near initialization for 
`static_functions[408].Offset')
glapi/glprocs.h:1616: error: initializer element is not constant
glapi/glprocs.h:1616: error: (near initialization for 
`static_functions[408]')
and etc.

I'm using gcc 3.3.5 compiler and Mesa 7.3. Configuration file, which has 
been produced by autoconf is included in the attachment. I'm using the 
following flags:

-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER 
-DGLX_DIRECT_RENDERING

1) File glapi_getproc.c includes file glprocs.h.
2) glprocs.h uses the following structure initialization (here is one 
initializer just for example):

    NAME_FUNC_OFFSET( 5769, glAttachShader, glAttachShader, NULL, 
_gloffset_AttachShader),

3) _gloffset_AttachShader declaration is placed in the glapioffsets.h header 
for IN_DRI_DRIVER defined and declared as:

#define _gloffset_AttachShader 
driDispatchRemapTable[AttachShader_remap_index]

while extern declaration for the driDispatchRemapTable array is placed in 
the dispatch.h header and this header is not included in the glprocs.h or 
glapi_getproc.c, so array is undeclared at this point.

Here we have undeclared driDispatchRemapTable[AttachShader_remap_index] 
array element used for the structure initialization. And one more problem 
with this - after manual declaration of external array problem still exist 
with structure array element initialization with the value which is placed 
in the extern int array driDispatchRemapTable and gcc's error: "initializer 
element is not constant".

Just to be sure I have not messed up compilation flags, I've checked 
'linux-dri' predefined configuration and it has the same defines, except 
define: -DGLX_INDIRECT_RENDERING, under QNX it is not defined.

Thanks in advance !

With best regards, Mike Gorchak.  E-mail: [email protected] 


begin 666 current.dat
M(R!!=71O8V]N9B!C;VYF:6=U<F%T:6]N"@HC(%!U;&P@:6...@=&AE(&1E9F%U
M;'1S"FEN8VQU9&4@)"A43U I+V-O;F9I9W,O9&5F875L= H*(R!4:&ES(&ES
M(&=E;F5R871E9"!B>2!C;VYF:6=U<F4*0T].1DE'7TY!344@/2!A=71O8V]N
m...@h*(R!#;VUP:6QE<B!A;f...@9fqa9w,*0T,@/2!Q8V,@+58S+C,N-2QG8V-?
M;G1O>#...@v"D-86" ](%%#0R M5C,N,RXU+&=C8U]N=&]X.#8*3U!47T9,04=3
M(#T@"D%20TA?1DQ!1U,@/2 *05--7T9,04=3(#...@+4154t5?6#@V7T%332 M
M1%5315]-35A?05--("U$55-%7S-$3D]77T%332 M1%5315]34T5?05--"E!)
M0U]&3$%'4R ]("UF4$E#"D1%1DE.15,@/2 @+4105$A214%$4R M1$A!5D5?
M4$]325A?345-04Q)1...@+4154t5?15a415).04Q?1%A43E],24(],2 M1$E.
M7T1225]$4DE615(@+41'3%A?1$E214-47U)%3D1%4DE.1PI#1DQ!1U,@/2 @
M+4\S("UF=6YR;VQL+6%L;"UL;V]P<R M22]U<W(O:6YC;'5D92 M22XN+V1E
M<&QO>6UE;G0O=7-R+VEN8VQU9&4...@+5=a;&p...@+5=m:7-S:6YG+7!R;W1O='EP
M97,@+69F87-T+6UA=&@@+5=C+"US=&0]8SDY("UF;F\M<W1R:6-T+6%L:6%S
M:6YG(%P*"20H3U!47T9,04=3*2 D*%!)0U]&3$%'4RD@)"A!4D-(7T9,04=3
M*2 D*$%335]&3$%'4RD@)"A$149)3D53*0I#6%A&3$%'4R ](" M3S,@+69U
M;G)O;&PM86QL+6QO;W!S("U)+W5S<B]I;F-L=61E("U786QL("UF;F\M<W1R
M:6-T+6%L:6%S:6YG(%P*"20H3U!47T9,04=3*2 D*%!)0U]&3$%'4RD@)"A!
M4D-(7T9,04=3*2 D*$1%1DE.15,I"DQ$1DQ!1U,@/2 M3"]U<W(O;&EB("U,
M+BXO9&5P;&]Y;65N="]U<W(O;&EB"D585%)!7TQ)0E]0051((#T@"@HC($%S
M<V5M8FQE<@I!4TU?4T]54D-%4R ]("0...@v7u-/55)#15,I"D%335]!4$D@
M/2 d...@x-e]!4$di"@HC($UI<V,@=&]O;',@86YD(&9L86=S"DU!2T4@/2!M
M86ME"E-(14Q,(#...@+v)I;B]S: I-2TQ)0E]/4%1)3TY3(#T@"DU+1$50(#T@
M"DU+1$507T]05$E/3E,@/2 M9F1E<&5N9 H*(R!0>71H;v...@86yd(&9L86=S
M("AG96YE<F%L;'D@;VYL>2!n965d...@8gd@=&AE(&1E=F5L;W!E<G,I"E!9
M5$A/3C(@/2!P>71H;VX*4%E42$].7T9,04=3(#...@+70@+...@+4\*"B,@3&EB
M<F%R>2!N86UE<R H8F%S92!N86UE*0I'3%],24(@/2!'3 I'3%5?3$E"(#T@
M1TQ5"D=,551?3$E"(#...@9vqu= I/4TU%4T%?3$E"(#...@3u--97-a"@HC($QI
M8G)A<GD@;F%M97,@*&%C='5A;"!F:6QE(&YA;65S*0I'3%],24)?3D%-12 ]
M(&QI8B0H1TQ?3$E"*2YS;PI'3%5?3$E"7TY!344@/2!L:6(D*$=,55],24(I
M+G-O"D=,551?3$E"7TY!344@/2!L:6(D*$=,551?3$E"*2YS;PI/4TU%4T%?
M3$E"7TY!344@/2!L:6(D*$]3345305],24(I+G-O"@HC($1I<F5C=&]R:65S
M('1O(&)U:6QD"DQ)0E]$25(@/2!L:6(*4U)#7T1)4E,@/2!M97-A(&=L=0I'
M3%5?1$E24R ]('-G:0I$4DE615)?1$E24R ](&1R:0HC(%=H:6-H('-U8F1I
M<G,@=6YD97(@)"A43U I+W!R;V=S+R!T;R!E;G1E<CH*4%)/1U)!35]$25)3
M(#T@"@HC($1R:79E<B!S<&5C:69I8R!B=6EL9"!V87)S"D1225]$25)3(#T@
M:3...@q,"!I.3$U(&DY-C4@;6%C:#8T(&UG82!R,3(X('(R,# @<C,P,"!R861E
M;VX@<S-V('-A=F%G92!S:7,@=&1F>"!T<FED96YT('5N:6-H<F]M92!F9F(@
M<W=R87-T"E=)3D1/5U]365-414T@/2!D<FD*55-)3D=?14=,(#T@, H*(R!$
M97!E;F1E;F-I97,*6#$Q7TE.0TQ51$53(#T@"@HC($QI8G)A<GDO<')O9W)A
M;2!D97!E;F1E;F-I97,*1TQ?3$E"7T1%4%,@/2 D*$585%)!7TQ)0E]0051(
M*2 @("UL;2 @"D]3345305],24)?1$504R ]("U,)"A43U I+R0H3$E"7T1)
m...@+6pd*$=,7TQ)0...@7 H))"A%6%1205],24)?4$%42"D@( I'3%5?3$E"
M7T1%4%,@/2 M3"0H5$]0*2\D*$Q)0E]$25(I("UL)"A'3%],24(I(%P*"20H
M15A44D%?3$E"7u!...@i("UL;2 *1TQ55%],24)?1$504R ]("U,)"A43U I
M+R0H3$E"7T1)4BD@(%P*"20H15A44D%?3$E"7u!...@i( I!4%!?3$E"7T1%
M4%,@/2 D*$585%)!7TQ)0E]0051(*2 M;&T*"B,@1%))(&1E<&5N9&5N8VEE
M<PI$4DE?3$E"7T1%4%,@/2 D*$585%)!7TQ)0E]0051(*2 @("U,+BXO9&5P
M;&]Y;65N="]U<W(O;&EB("ul97ap...@+6qm( I,24)$4DU?0T9,04=3(#T@
M"DQ)0D1235],24(@/2 *1%)),E!23U1/7T-&3$%'4R ]( I%6%!!5%])3D-,
M541%4R ]("U)+BXO9&5P;&]Y;65N="]U<W(O:6YC;'5D90H*(R!!=71O8V]N
M9B!D:7)E8W1O<FEE<PIP<F5F:7@@/2 O=7-R"F5X96-?<')E9FEX(#T@)'MP
M<F5F:7A]"FQI8F1I<B ]("1[97AE8U]P<F5F:7a]+v...@ii;F-L=61E9&ER
M(#T@)'MP<F5F:7A]+VEN8VQU9&4*"B,@26YS=&%L;&%T:6]N(&1I<F5C=&]R
M:65S("AF;W(@;6%K92!I;G-T86QL*0I)3E-404Q,7T1)4B ]("0H<')E9FEX
M*0I)3E-404Q,7TQ)0E]$25(@/2 D*&QI8F1I<BD*24Y35$%,3%])3D-?1$E2
M(#T@)"AI;F-L=61E9&ER*0H*(R!$4DD@:6YS=&%L;&%T:6]N(&1I<F5C=&]R
M:65S"D1225]$4DE615)?24Y35$%,3%]$25(@/2 D>VQI8F1I<GTO9')I"@HC
M(%=H97)E(&QI8D=,('=I;&P@;&]O:R!F;W(@1%))(&AA<F1W87)E(&1R:79E
M<G,*1%))7T12259%4E]314%20TA?1$E2(#T@)"A$4DE?1%))5D527TE.4U1!
M3$Q?1$E2*0H*(R!P:V<M8V]N9FEG('-U8G-T:71U=&EO;G,*1TQ?4$-?4D51
M7U!2258@/2 *1TQ?4$-?3$E"7U!2258@/2 M;&T@( I'3%]00U]#1DQ!1U,@
M/2 *1%))7U!#7U)%45]04DE6(#T@"D=,55]00U]215$@/2!G; I'3%5?4$-?
M4D517U!2258@/2 *1TQ57U!#7TQ)0E]04DE6(#...@+6qm( I'3%5?4$-?0T9,
M04=3(#T@"D=,551?4$-?4D517U!2258@/2 *1TQ55%]00U],24)?4%))5B ]
M( I'3%547U!#7T-&3$%'4R ]( I/4TU%4T%?4$-?4D51(#...@9vp*3u--15-!
17U!#7TQ)0E]04DE6(#T@( H`
`
end



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to