This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [ds_mpls] Modification installation problem
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: Marc-André Breton <marc dot andre dot breton at lagrit dot etsmtl dot ca>
- Cc: pim dot vanheuven at intec dot rug dot ac dot be, "DS_MPLS -- Mailing list" <ds_mpls at atlantis dot rug dot ac dot be>, "GCC - Mailing List" <gcc-help at gcc dot gnu dot org>
- Date: 05 Mar 2003 16:06:20 -0800
- Subject: Re: [ds_mpls] Modification installation problem
- References: <BAY1-F102PrPrvCWO6h00023e43@hotmail.com><200303041651.58675.marc.andre.breton@lagrit.etsmtl.ca><3E65E076.44DD339E@intec.rug.ac.be><200303051734.32002.marc.andre.breton@lagrit.etsmtl.ca>
- Reply-to: gcc-help at gcc dot gnu dot org
Marc-André Breton <marc dot andre dot breton at lagrit dot etsmtl dot ca> writes:
> Hi all,
>
> Ok, now I recompiled with my gcc 2.96 version and I make sure that in
> rsvp_netio.c, the variable declaration (int len;) is at the beginning of the
> rsvp_pkt_process_1 function. I don't have error except some usual warnings
> and all my executables are created (I really don't know why it didn't work
> the first time that I do that !! ). I am also able to configure my interfaces
> with "./ds_config". But when I want to start the daemon I have a weird error
> like
>
> [root at lagrit12 rsvpd]# ./rsvpd -D
> ./rsvpd: error while loading shared libraries: libstdc++.so.5: cannot open
> shared object file: No such file or directory
Are you *sure* you are trying to run the version compiled with 2.96?
libstdc++.so.5 is the gcc 3.2.x shared lib for standard C++. 2.96
uses libstdc++.so.3 .
> What does it mean? "libstdc++" and "libstdc++-devel" packages are both
> installed on my machine. What can I do for it?
For gcc 2.96 or for gcc 3.2.x ?
>
> Thanks for all
> Marc-Andre
>
>
> >On Wednesday 05 March 2003 06:33 am, pim dot vanheuven at intec dot rug dot ac dot be wrote:
> > Marc-André Breton wrote:
> > > Hi all,
> > >
> > > Thank to you Olivier, I had version 2.96 of gcc and now I have version
> > > 3.2.2 [root at lagrit12 rsvpd]# gcc -v
> > > Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs
> > > Configured with: ../gcc-3.2.2/configure
> > > Thread model: posix
> > > gcc version 3.2.2
> > >
> > > I don't have anymore error in rsvp_netio.c (for variable declaration in
> > > the middle of the function) but now I have another problem. When I
> > > compile the daemon, the make process create all executables usually
> > > generated ( rsvpd/labeltest/mplsadm, rapirecv, rapirecv_auto, rtest,
> > > rtest2, tunnel rsvpd/tools/rstat )
> > >
> > > But "rsvpd" executable is a 0 Byte empty document !?!? I'm paralyzed here
> > > because all seem correct. I attached a file containing my make process
> > > (maybe you'll see something that I didn't see).
> >
> > The output looks OK.
> >
> > > Another thing, why /rsvpd/rsvpd/linux/liblinuxtc.a indicate a 10 MB
> > > Archives document, but there's nothing inside?
> >
> > That's too much it should be <1MB
> Oupss.. it's a 1.0 MB Archives document, sorry it's my fault
> >
> > > All comments are welcome!!
> >
> > some random thoughts: do you have enough disc space?
> Yes
> > can you downgrade again to gcc 2.96?
> > the problems seem related to the linker.
> >
> > Pim.
> >
> > > Thanks for your support
> > >
> > > Marc-André
> > >
> > > On Sunday 02 March 2003 11:44 am, you wrote:
> > > > Hello,
> > > > I've found the code modify.tgz on mailing list archive (didn't see it
> > > > at first) and mime-decoded it. I've installed it (not by just
> > > > overwriting but by using e-diff (emacs) to change my code which is
> > > > already a modified one). I can say the code from Daniele and Alessandro
> > > > is OK, as everything works perfectly for me.
> > > >
> > > > Just one thing:
> > > > Some old compilers don't accept declarations not at beginning of
> > > > functions. So "int len" is not at good place. But it seems that you
> > > > tried putting it at beginning of function. In this case, it must work.
> > > > No compilation problems at all (and no warning with typedef) with my
> > > > compiler (GCC 3.2, Suse 8.1 distro).
> > > >
> > > > Good luck.
> > > > Oliver.
> > > >
> > > >
> > > >
> > > >
> > > > From: Marc-André Breton <marc dot andre dot breton at lagrit dot etsmtl dot ca>
> > > >
> > > > >To: "'DS_MPLS -- Mailing list'" <ds_mpls at atlantis dot rug dot ac dot be>
> > > > >CC: "'Pim Van Heuven'"
> > > > > <pim dot vanheuven at intec dot rug dot ac dot be>,<proia at coritel dot it> Subject: RE:
> > > > > [ds_mpls] Modification installation problem
> > > > >Date: Fri, 28 Feb 2003 13:02:42 -0500
> > > > >
> > > > >Hi Alessandro, Hi all,
> > > > >
> > > > >Thanks a lot for your reply but I have a bad news... there's no any
> > > > >differences. In line 1374 of rsvp_netio.c I have "rc =
> > > > >accept_path_tear(inp_if, pkt);" So there's no missing " ; " . I
> > > > > thought that it could have been in accept_path_tear function but all
> > > > > seems correct (moreover, you didn't modify rsvp_path.c file).
> > > > >
> > > > >So I tried to change comment for /*ALESSANDRO*/ and /*END ALESSANDRO*/
> > > > >but there's no make difference.
> > > > >
> > > > >I'm really confused now!
> > > > >
> > > > >For the warning (../rapi_lib.h:520: warning: useless keyword or type
> > > > >name in empty declaration), I removed " typedef " on line 516 of
> > > > >rapi_lib.h and now I don't have any more of these messages.
> > > > >
> > > > >Do you (or any body else) have any other suggestions? Am I the only
> > > > > one who has these problems?
> > > > >
> > > > >Thanks a lot for your answers!!
> > > > >
> > > > >Best regards
> > > > >
> > > > >Marc-André
> > > > >
> > > > >
> > > > >
> > > > >-----Original Message-----
> > > >
> > > > From: ds_mpls-admin at atlantis dot rug dot ac dot be
> > > >
> > > > >[mailto:ds_mpls-admin at atlantis dot rug dot ac dot be] On Behalf Of Alessandro
> > > > > Proia Sent: 28 février, 2003 04:48
> > > > >To: Marc-André Breton; DS_MPLS -- Mailing list
> > > > >Cc: Pim Van Heuven
> > > > >Subject: Re: [ds_mpls] Modification installation problem
> > > > >
> > > > >Hi Marc-André, Hi all,
> > > > >I have checked my code and there is:
> > > > >
> > > > >
> > > > > rc = accept_path_tear (inp_if, pkt);
> > > > >
> > > > >//ALESSANDRO
> > > > > int len;
> > > > > ...
> > > > > ...
> > > > > len = strlen(buff_PTEAR)+1;
> > > > > ...
> > > > > ...
> > > > >//END ALESSANDRO
> > > > >
> > > > >Your problem is in line 1376, because make process
> > > > >doesn't compile 'len' ( rsvp_netio.c:1376: parse error before `int' ),
> > > > >so you have the second error:
> > > > >
> > > > > rsvp_netio.c:1381: `len' undeclared (first use in this function)
> > > > > rsvp_netio.c:1381: (Each undeclared identifier is reported only
> > > > > once rsvp_netio.c:1381: for each function it appears in.)
> > > > >
> > > > >I think it's possible you have missed something like ' ; ' in previous
> > > > >line
> > > > >
> > > > > rc = accept_path_tear (inp_if, pkt);
> > > > >
> > > > >or you have a problem in commented line
> > > > >
> > > > > //ALESSANDRO
> > > > >
> > > > >(in this case, try to write
> > > > >
> > > > > /*ALESSANDRO*/
> > > > > ...
> > > > > ...
> > > > > ...
> > > > > /*END ALESSANDRO*/
> > > > >)
> > > > >
> > > > >I hope you will solve your problems soon.
> > > > >
> > > > >Alessandro
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >----- Original Message -----
> > > >
> > > > From: "Marc-André Breton" <marc dot andre dot breton at lagrit dot etsmtl dot ca>
> > > >
> > > > >To: "DS_MPLS -- Mailing list" <ds_mpls at atlantis dot rug dot ac dot be>
> > > > >Cc: "Pim Van Heuven" <pim dot vanheuven at intec dot rug dot ac dot be>
> > > > >Sent: Thursday, February 27, 2003 7:16 PM
> > > > >Subject: [ds_mpls] Modification installation problem
> > > > >
> > > > > > Hi Pim Hi all,
> > > > > >
> > > > > > I tried to install the modifications to rapirecv_auto by Daniele
> > > > > > and Alessandro and I had some problem.
> > > > > >
> > > > > > First I extracted files and copy them to the right places using
> > > > > > option "Overwrite all". Then I did a "make clean" and "make" in the
> > > > > > shell
> > > > >
> > > > >console
> > > > >
> > > > > > and I had warning and errors like this:
> > > > > >
> > > > > > ../rapi_lib.h:520: warning: useless keyword or type name in empty
> > > > >
> > > > >declaration
> > > > >
> > > > > > (I had a lot of this warning all along de make process)
> > > > > > ...
> > > > > > ...
> > > > > > rsvp_netio.c: In function `rsvp_pkt_process_1':
> > > > > > rsvp_netio.c:1376: parse error before `int'
> > > > > > rsvp_netio.c:1381: `len' undeclared (first use in this function)
> > > > > > rsvp_netio.c:1381: (Each undeclared identifier is reported only
> > > > > > once rsvp_netio.c:1381: for each function it appears in.)
> > > > > > rsvp_netio.c:1188: warning: unused variable `j'
> > > > > > make[2]: *** [rsvp_netio.o] Error 1
> > > > > > make[2]: Leaving directory `/home/rsvp/rsvpd/rsvpd'
> > > > > > make[1]: *** [rsvpd] Error 2
> > > > > > make[1]: Leaving directory `/home/rsvp/rsvpd'
> > > > > > make: *** [all] Error 2
> > > > > > [root at lagrit12 rsvpd]#
> > > > > >
> > > > > > In file rsvp_netio.c, I tried to comment line "1376 : int len" and
> > > > >
> > > > >copy it
> > > > >at
> > > > >
> > > > > > the beginning of the rsvp_pkt_process_1 function. Obviously it
> > > > > > didn't
> > > > >
> > > > >work, I
> > > > >
> > > > > > had more warning and my executables wasn't created.
> > > > > >
> > > > > > I'm not a great programmer and I think I need some help here.
> > > > > > Is there anyone who can help me please? Did I do something wrong?
> > > > > >
> > > > > > Thanks in advance
> > > > > > Your help will be really appreciate!
> > > > > >
> > > > > > Marc-Andre
> > > > > > _______________________________________________
> > > > > > ds_mpls mailing list
> > > > > > ds_mpls at atlantis dot rug dot ac dot be
> > > > > > http://www-lists.atlantis.rug.ac.be/mail_external/listinfo/ds_mpls
> > > > >
> > > > >_______________________________________________
> > > > >ds_mpls mailing list
> > > > >ds_mpls at atlantis dot rug dot ac dot be
> > > > >http://www-lists.atlantis.rug.ac.be/mail_external/listinfo/ds_mpls
> > > > >
> > > > >_______________________________________________
> > > > >ds_mpls mailing list
> > > > >ds_mpls at atlantis dot rug dot ac dot be
> > > > >http://www-lists.atlantis.rug.ac.be/mail_external/listinfo/ds_mpls
> > > >
> > > > _________________________________________________________________
> > > > Recevez vos e-mails MSN Hotmail par SMS sur votre GSM !
> > > > http://www.fr.msn.be/gsm/servicesms/hotmailparsms
> > >
> > >
> > > ------------------------------------------------------------------------
> > > Name: RSVPD-modification-problem RSVPD-modification-problem Type:
> > > Plain Text (text/plain)
> > > Encoding: 7bit