On Thu, Aug 18, 2005 at 05:39:27PM -0300, luciana wrote:
> Hi!
> I tried to install the tiger in the fedora  3 and he  gave the mistakes 
> below:

Actually, better use the patch attached, it should solve all your
issues. Please let me know if after applying it (use the 'patch' 
command) everything works OK.

Regards

Javier
Index: Makefile
===================================================================
RCS file: /cvsroot/tiger/tiger/c/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile    19 Oct 2003 10:01:21 -0000      1.3
+++ Makefile    24 Aug 2005 14:08:26 -0000
@@ -1,3 +1,4 @@
+# Generated automatically from Makefile.in by configure.
 # Makefile for tiger binaries
 # 
 #
@@ -21,12 +22,14 @@
 # and they could not be compiled at first (they have
 # been added later)
 BINLIST=getpermit snefru md5 testsuid realpath
-COPTS= -DNEEDGETWD
+COPTS=-Wall
+INSTALL=/usr/bin/install -c
+CC=gcc
 
 all: ${BINLIST}
 
 install:  all
-       cp ${BINLIST} ../bin/
+       $(INSTALL) -m0755 ${BINLIST} ../bin/
 
 
 % : %.c
Index: Makefile.in
===================================================================
RCS file: /cvsroot/tiger/tiger/c/Makefile.in,v
retrieving revision 1.1
diff -u -r1.1 Makefile.in
--- Makefile.in 31 Mar 2005 18:00:53 -0000      1.1
+++ Makefile.in 24 Aug 2005 14:08:26 -0000
@@ -21,7 +21,7 @@
 # and they could not be compiled at first (they have
 # been added later)
 BINLIST=getpermit snefru md5 testsuid realpath
-COPTS= -DNEEDGETWD
+COPTS=-Wall
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 
Index: realpath.c
===================================================================
RCS file: /cvsroot/tiger/tiger/c/realpath.c,v
retrieving revision 1.4
diff -u -r1.4 realpath.c
--- realpath.c  28 Jul 2005 15:00:13 -0000      1.4
+++ realpath.c  24 Aug 2005 14:08:26 -0000
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
+#include <unistd.h>
 #include <sys/param.h>
 #include <sys/types.h>
 #include <string.h>
@@ -56,8 +57,11 @@
 #endif
 
 #ifdef __STDC__
+#ifndef _UNISTD_H
 extern char *getwd(char * const);
+extern char *getcwd(char * const, const size_t);
 extern int readlink(char * const, char * const, const size_t);
+#endif
 extern char *my_realpath(const char *, char [], int);
 extern char *_realpath(char [], int);
 #else
@@ -110,7 +114,11 @@
      int linkcount = 0;
 
      if(path[0] != '/'){
+#if defined __STDC__
+         getcwd(buffer, sizeof(buffer));
+#else
          getwd(buffer);
+#endif
          prevslash = buffer+strlen(buffer);
          strcpy(prevslash,"/");
          strcpy(prevslash+1,path);

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Tiger-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tiger-user

Reply via email to