It looks like there is a syntax error in one of the header files ( gci.h at least ) included in that source file. Before you can consider anything else further down in the source file an issue, you have you fix that. It looks like you're missing parantheses or something like that if _declspec is involved there. corey On 4/15/05, Luiz Gustavo Anflor Pereira <luizgap@xxxxxxxxxx> wrote: > > Hello > > Thanks for the answer. > > Here is the code: > 18 static const u_char sistema[] = "VIA"; > 19 const u_char sistema[] = "VIA"; > 20 static const u_char servidor[] = "F0VIA121"; > 21 static const u_char progexe[] = "VIA121"; > 22 static const u_char nomelog[] = "/var/log/via121"; > 23 static const struct gci_procedure procs_vec[] = { > 24 /* ping */ > 25 { "FVIAPING", Ping121 }, > 26 /* via110passwd.c */ > 27 { "FVIA116 ", AltSenha }, > 28 /* via110bloqueio.c */ > 29 { "FVIA117 ", Bloqueio }, > 30 { "FVIA118 ", Desbloqueio }, > 31 { "FVIA120 ", CadAlias }, > 32 { "FVIA121 ", RemAlias }, > 33 { "FVIA122 ", CadAliasVirt }, > 34 { "FVIA123 ", RemAliasVirt }, > 35 { "FVIA124 ", ConsAlias }, > 36 { "FVIA125 ", ConsAliasVirt }, > 37 { "FVIA126 ", ConsTodosVirt }, > 38 /* via110domvirt.c */ > 39 { "FVIA127 ", DomVirtIncl }, > 40 { "FVIA128 ", DomVirtExcl }, > 41 { "FVIA129 ", DomVirtChadm }, > 42 { "FVIA130 ", DomVirtCons }, > 43 { "FVIA131 ", DomVirtLsadm }, > 44 /* via110tunel.c */ > 45 { "FVIA141 ", CadTunel }, > 46 /* via110rsp.c */ > 47 { "FVIA151 ", RspMux }, > 48 { "FVIA152 ", Rsp1Mux }, > 49 { "FVIA153 ", ValidaSenha }, > 50 /* via110misc.c */ > 51 { "CLOCK ", ProcNull }, > 52 { "ALTERLOG", ProcNull }, > 53 { "X-ECHO ", ProcNull }, > 54 { "FIM ", ProcFim }}; > 55 static const int procs_size = sizeof(procs_vec) / sizeof(struct > gci_procedure); > 56 > 57 int main (int argc, char *argv[]) > 58 { > 59 if (init_mysql() != 0) { > 60 /* erro no mysql */ > 61 /* logar no gci? */ > 62 return 1; > 63 } > > Here are the errors: > > gcc -O -pipe -I/usr/include/mysql -c -o via121.o via121.c > In file included from via110loop.h:5, > from via121.c:11: > gci.h: In function `_declspec': > gci.h:70: error: syntax error before "EnvRecDadosServ" > via121.c:18: error: storage class specified for parameter `sistema' > via121.c:18: error: parameter `sistema' is initialized > via121.c:19: error: parameter `sistema' is initialized > via121.c:19: error: redeclaration of `sistema' > via121.c:18: error: `sistema' previously declared here > via121.c:20: error: storage class specified for parameter `servidor' > via121.c:20: error: parameter `servidor' is initialized > via121.c:21: error: storage class specified for parameter `progexe' > via121.c:21: error: parameter `progexe' is initialized > via121.c:22: error: storage class specified for parameter `nomelog' > via121.c:22: error: parameter `nomelog' is initialized > via121.c:23: error: storage class specified for parameter `procs_vec' > via121.c:23: error: parameter `procs_vec' is initialized > via121.c:55: error: storage class specified for parameter `procs_size' > via121.c:55: error: parameter `procs_size' is initialized > via121.c:58: error: syntax error before '{' token > make: *** [via121.o] Error 1 > > Thanks again. > > Luiz Gustavo > > > Hi Luiz, > > > > Please provide a small code example that correctly compiles on 2.95.3 and exhibits > > the problem on 3.3.2. > > > > That will help us diagnose your problem. > > > > Thanks, > > --Eljay > > > > > > > >