Hello Joost, thanks for your reply.
I attach the output of "sudo make install-strip" of try #1.
"which dar" returns: /usr/local/bin/dar
I will also try to do something with try #2 according to your
suggestions, but it's not a straightforward operation for me, as I
should learn something more about ./configure options, and libraries
locations.
Thank you
Andrea
------- Messaggio originale -------
Da: J. Roeleveld <joost@...>
Reply-to: "need help compiling or using dar ? This mailing list is for
you." <dar-support@...>
A: need help compiling or using dar ? This mailing list is for you.
<dar-support@...>
Oggetto: Re: [Dar-support] dar compile error: 'EOF' was not declared in
this scope
Data: Wed, 22 Dec 2010 11:31:21 +0100
On Wednesday 22 December 2010 10:20:21 Andrea Vai wrote:
> Hi Denis, thank you very much for your help. Don't worry about the
> delay, I know you dev guys use your spare time for the community, and I
> really appreciate it.
> So, I tried to compile dar in two ways. Both have been finally
> unsuccessful, but I don't think it's related to the original EOF
> problem:
> 1 - I substituted getopt_decision.h file with the one posted by you,
> then:
> - make returned 0;
> - sudo make install-strip returned 0;
> but invoking 'dar' returned
> bash: /usr/bin/dar: No file or directory
> 2 - I renamed previous dar folder, and downloaded it again from CVS,
> then:
> - ./configure returns 0;
> - make returns various errors!
>
> I'm sorry, I'm afraid I messed up something, or incurred into another
> problem, so please tell me what to do
>
> I attach the output of ./configure and make
>
> Thank you very much,
> Best regards
> Andrea
Hi Andrea,
>From the first attempt, it fails complaining that "/usr/bin/dar" does not
exist.
This leads me to believe that there is a shell-script in place where "dar"
should be that points to that location.
Can you run the following command and give us the result:
# which dar
This should show what it's trying to start.
My guess is that that is a script pointing to "/usr/bin/dar"
Do you have the text from the "make install...." command you did for try 1?
As for try 2, the make.txt shows errors where it's trying to use paths under
/usr/local/... that don't exist on your installation.
There are 2 "solutions" to this:
1) rerun the "configure" script, but with parameters pointing to the correct
locations for the various libraries needed
2) create symlinks under /usr/local/... making the make-part think that the
paths it is using are actually correct
--
Joost
PS. I don't have the original emails here, only the last 2 for this thread
>
> ------- Messaggio originale -------
> Da: Denis Corbin <dar.linux@...>
> Reply-to: "need help compiling or using dar ? This mailing list is for
> you." <dar-support@...>
> A: need help compiling or using dar ? This mailing list is for you.
> <dar-support@...>
> Oggetto: Re: [Dar-support] dar compile error: 'EOF' was not declared in
> this scope
> Data: Tue, 21 Dec 2010 22:01:14 +0100
>
> Hello Andrea,
>
> First, sorry for the long delay in my reply, I have been missing free
> time this month. The problem comes from Ubuntu that you seem to use, and
> which has the getopt.h header file changed compared to the usual GNU
> include files. Seen the Ubuntu getopt(3) man page, the getopt() call
> returns -1 when all options have been parsed on command-line (in place
> of EOF), so I added a test for that, which defines EOF equal to -1 if
> EOF is not already defined in the getopt.h header file.
>
> You can grab the fixed code from CVS on the branch_2_3_x or replace the
> attached file to this email in the source code src/dar_suite directory.
>
> It should fix the problem, thanks to tell us the result for you.
>
> Kind Regards,
> Denis.
>
> Andrea Vai a écrit :
> > Hello Denis,
> >
> > 2010/12/3 Denis Corbin <dar.linux@...>
> >
> >> Do you have the glibc's included files installed?
> >> For example is the file /usr/include/getopt.h present in you system?
> >
> > I checked and the file is present
> >
> > It would be more interesting to also have the config.h and config.log
> >
> >> files, thanks.
> >
> > I attach both of them to this message.
> >
> > Thank you very much for your help,
> > Best regards
> > Andrea
>
> Documento in testo semplice allegato (getopt_decision.h)
> /*********************************************************************/
> // dar - disk archive - a backup/restoration program
> // Copyright (C) 2002-2052 Denis Corbin
> //
> // This program is free software; you can redistribute it and/or
> // modify it under the terms of the GNU General Public License
> // as published by the Free Software Foundation; either version 2
> // of the License, or (at your option) any later version.
> //
> // This program is distributed in the hope that it will be useful,
> // but WITHOUT ANY WARRANTY; without even the implied warranty of
> // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> // GNU General Public License for more details.
> //
> // You should have received a copy of the GNU General Public License
> // along with this program; if not, write to the Free Software
> // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
> USA. //
> // to contact the author : dar.linux@...
> /*********************************************************************/
> // $Id: getopt_decision.h,v 1.3 2004/11/12 21:58:17 edrusb Rel $
> //
> /*********************************************************************/
>
> #ifndef GETOPT_DECISION_H
> #define GETOPT_DECISION_H
>
> #include "../my_config.h"
>
> #if HAVE_GETOPT_LONG
> #if HAVE_GETOPT_IN_UNISTD_H
> #if HAVE_GETOPT_LONG_IN_UNISTD_H
> // we do not need to include <getopt.h>
> #else // we miss getopt_long but have getopt
> #include "my_getopt_long.h"
> #endif
> #else // no getopt() in unistd.h
> // we assume that if unistd.h does not know getopt() it does nor know
> getopt_long() #include <getopt.h>
> #endif
> #endif
>
> #ifndef EOF
> #define EOF -1
> #endif
>
> #endif
> ---------------------------------------------------------------------------
> --- Forrester recently released a report on the Return on Investment (ROI)
> of Google Apps. They found a 300% ROI, 38%-56% cost savings, and
> break-even within 7 months. Over 3 million businesses have gone Google
> with Google Apps: an online email calendar, and document program that's
> accessible from your browser. Read the Forrester report:
> http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________ Dar-support mailing list
> Dar-support@...
> https://lists.sourceforge.net/lists/listinfo/dar-support
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months. Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Dar-support mailing list
Dar-support@...
https://lists.sourceforge.net/lists/listinfo/dar-support
|