This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: make help


Yes, you were right. I should have seen this before sending emails. It was my
mistake, I am sorry :-)

But now I find another problem.

My Makefile:
...
des/via121: via121.o via110loop.o via110mysql.o via110mysql_des.o \
            via110misc.o via110passwd.o via110bloqueio.o via110domvirt.o \
            via110tunel.o via110rsp.o \
            util.o cripto.o gci/gci400t.o gci/descrip.o
        ${CC} -o $@ ${LGFLAGS} ${LDFLAGS} ${MYLIB} $> -lcrypt -lmysqlclient -lm -lz
...

when I run make in FreeBSD, I have:

cc -O -pipe  -I/usr/local/mysql/include -Wall -c via121.c
cc -o des/via121  -L/usr/local/mysql/lib via121.o via110loop.o via110mysql.o
via110mysql_des.o via110misc.o via110passwd.o via110bloqueio.o via110domvirt.o
via110tunel.o via110rsp.o util.o cripto.o gci/gci400t.o gci/descrip.o -lcrypt
-lmysqlclient -lm -lz
cc -o pro/via121  -L/usr/local/mysql/lib via121.o via110loop.o via110mysql.o
via110mysql_pro.o via110misc.o via110passwd.o via110bloqueio.o via110domvirt.o
via110tunel.o via110rsp.o util.o cripto.o gci/gci400p.o gci/descrip.o -lcrypt
-lmysqlclient -lm -lz

Ok, it is using cc.

now, when I run make in gentoo linux, using gcc 3.3.2 20031218,  I have:

gcc -o des/via123 -Wall -c  -L/usr/lib/mysql  -lcrypt -lmysqlclient -lm -lz
gcc: -lcrypt: linker input file unused because linking not done
gcc: -lmysqlclient: linker input file unused because linking not done
gcc: -lm: linker input file unused because linking not done
gcc: -lz: linker input file unused because linking not done


can you help me this time?

Thanks again, very very much.

Luiz Gustavo




> 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@pop.com.br> 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
>> >
>> >
>> >
>>
>>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]