Thread: [ext2resize] Help !!
Status: Inactive
Brought to you by:
adilger
From: Ricardo C. <rc...@if...> - 2002-02-07 22:49:03
|
Hola, acabo de bajar los fuentes de ext2resize, para compilarlo y me marca los siguientes errores. por favor me pueden decir los pasos a seguir ??? o si lleva algunos parametros . Gracias. # make Making all in doc make[1]: Entering directory `/tmp/ext2resize-1.1.17/doc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/ext2resize-1.1.17/doc' Making all in src make[1]: Entering directory `/tmp/ext2resize-1.1.17/src' gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -g -c ext2.c make[1]: Leaving directory `/tmp/ext2resize-1.1.17/src' [rcolin@sufraguette rcolin]$ cat error.log king all in doc make[1]: Entering directory `/tmp/ext2resize-1.1.17/doc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/ext2resize-1.1.17/doc' Making all in src make[1]: Entering directory `/tmp/ext2resize-1.1.17/src' gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Wall -g -c ext2.c ext2.c: In function `ext2_print_version': ext2.c:39: `EXT2FS_VERSION' undeclared (first use this function) ext2.c:39: (Each undeclared identifier is reported only once ext2.c:39: for each function it appears in.) ext2.c: In function `ext2_commit_metadata': ext2.c:656: `EXT2_GOOD_OLD_REV' undeclared (first use this function) ext2.c: In function `ext2_get_reserved': ext2.c:802: structure has no member named `i_version' ext2.c:802: structure has no member named `i_version' ext2.c:805: structure has no member named `i_version' ext2.c:806: structure has no member named `i_version' ext2.c: In function `ext2_open': ext2.c:988: `EXT2_BAD_INO' undeclared (first use this function) make[1]: *** [ext2.o] Error 1 make[1]: Leaving directory `/tmp/ext2resize-1.1.17/src' make: *** [all-recursive] Error 1 |
From: Andreas D. <ad...@tu...> - 2002-02-08 00:26:09
|
On Feb 07, 2002 04:47 -0600, Ricardo Colin wrote: > Hola, acabo de bajar los fuentes de ext2resize, para compilarlo y me > marca los siguientes errores. >=20 > por favor me pueden decir los pasos a seguir ??? o si lleva algunos > parametros . } hello, I finish downloading the sources of ext2resize, to compile it an= d it } tells the following errors to me. please you can say the steps to me t= o } follow? or if it takes some parameters. Thanks. > ext2.c:39: `EXT2FS_VERSION' undeclared (first use this function) > ext2.c:656: `EXT2_GOOD_OLD_REV' undeclared (first use this function) > ext2.c:988: `EXT2_BAD_INO' undeclared (first use this function) Please add the following lines to ext2resize/src/ext2_fs.h:35 } Agregue por favor las l=EDneas siguientes a ext2resize/src/ext2_fs.h:35 #define EXT2FS_DATE "95/08/09" #define EXT2FS_VERSION "0.5b" #define EXT2_GOOD_OLD_REV 0 #define EXT2_DYNAMIC_REV 1 #define EXT2_BAD_INO 1 > ext2.c:802: structure has no member named `i_version' Please change following lines in ext2resize/src/ext2.c:802 } Cambie por favor las l=EDneas siguientes en ext2resize/src/ext2.c:802 else if (inode->i_generation && inode->i_generation < 256) { if (fs->flags & FL_DEBUG) printf("Found %d reserved blocks in i_generation\n", inode->i_generation); resgdblocks =3D inode->i_generation; Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ |
From: Ricardo C. <rc...@if...> - 2002-02-08 16:41:12
|
***************************************************************************= ********************************** I procedi to make them change that I indicate and despues of it volvi to compile, obtaining the following result, thanks for your aid. =20 * * * + make Making all in doc make[1]: Entering directory `/usr/src/redhat/BUILD/ext2resize-1.1.17/doc' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/redhat/BUILD/ext2resize-1.1.17/doc' Making all in src make[1]: Entering directory `/usr/src/redhat/BUILD/ext2resize-1.1.17/src' cd .. && /usr/src/redhat/BUILD/ext2resize-1.1.17/missing autoheader WARNING: `autoheader' is missing on your system. You should only need it if you modified `acconfig.h' or `configure.in'. You might want to install the `Autoconf' and `GNU m4' packages. Grab them from any GNU archive site. cd .. \ && CONFIG_FILES=3D CONFIG_HEADERS=3Dsrc/config.h \ /bin/sh ./config.status creating src/config.h src/config.h is unchanged gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2_block_relocator.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2_buffer.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c llseek.c llseek.c: In function `ext2_llseek': llseek.c:29: warning: implicit declaration of function `lseek64' gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2_inode_relocator.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2_meta.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2_resize.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2_unix_io.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c tune.c rm -f libext2resize.a ar cru libext2resize.a ext2.o ext2_block_relocator.o ext2_buffer.o llseek.o ext2_inode_relocator.o ext2_meta.o ext2_resize.o ext2_unix_io.o tune.o=20 ranlib libext2resize.a gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -c ext2resize.c gcc -Wall -g -o ext2resize ext2resize.o libext2resize.a=20 libext2resize.a(llseek.o): In function `ext2_llseek': /usr/src/redhat/BUILD/ext2resize-1.1.17/src/llseek.c:29: undefined reference to `lseek64' make[1]: *** [ext2resize] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/ext2resize-1.1.17/src' make: *** [all-recursive] Error 1 Bad exit status from /var/tmp/rpm-tmp.2495 (%build) Saludos Ricardo Col=EDn. ***************************************************************************= ********************************** El jue, 07-02-2002 a las 18:25, Andreas Dilger escribi=F3: On Feb 07, 2002 04:47 -0600, Ricardo Colin wrote: > Hola, acabo de bajar los fuentes de ext2resize, para compilarlo y me > marca los siguientes errores. >=20 > por favor me pueden decir los pasos a seguir ??? o si lleva algunos > parametros . =20 } hello, I finish downloading the sources of ext2resize, to compile it = and it } tells the following errors to me. please you can say the steps to me= to } follow? or if it takes some parameters. Thanks. =20 > ext2.c:39: `EXT2FS_VERSION' undeclared (first use this function) > ext2.c:656: `EXT2_GOOD_OLD_REV' undeclared (first use this function) > ext2.c:988: `EXT2_BAD_INO' undeclared (first use this function) =20 Please add the following lines to ext2resize/src/ext2_fs.h:35 } Agregue por favor las l=EDneas siguientes a ext2resize/src/ext2_fs.h:= 35 =20 #define EXT2FS_DATE "95/08/09" #define EXT2FS_VERSION "0.5b" =20 #define EXT2_GOOD_OLD_REV 0 #define EXT2_DYNAMIC_REV 1 =20 #define EXT2_BAD_INO 1 =20 =20 > ext2.c:802: structure has no member named `i_version' =20 Please change following lines in ext2resize/src/ext2.c:802 } Cambie por favor las l=EDneas siguientes en ext2resize/src/ext2.c:802 =20 else if (inode->i_generation && inode->i_generation < 256) { if (fs->flags & FL_DEBUG) printf("Found %d reserved blocks in i_generation\n", inode->i_generation); resgdblocks =3D inode->i_generation; =20 Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ =20 |
From: Andreas D. <ad...@tu...> - 2002-02-09 00:19:50
|
On Feb 07, 2002 22:40 -0600, Ricardo Colin wrote: > I procedi to make them change that I indicate and despues of it volvi t= o > compile, obtaining the following result, thanks for your aid. =20 >=20 > libext2resize.a(llseek.o): In function `ext2_llseek': > /usr/src/redhat/BUILD/ext2resize-1.1.17/src/llseek.c:29: undefined > reference to `lseek64' Did you run "./configure" first? The lseek64 command should not be called on systems that do not have it. To work around this problem, you can edit ext2resize/src/config.h and change the line: #define HAVE_LSEEK64 1 to #undef HAVE_LSEEK64 } =BFUsted funcion=F3 el "/configure" primero? El comando lseek64 no deb= e ser los } sistemas invitados que no lo tienen. Para trabajar alrededor de este } problema, usted puede corregir ext2resize/src/config.h y cambiar la l=ED= nea: #define HAVE_LSEEK64 1 } el #undef HAVE_LSEEK64 Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ |
From: Ricardo C. <rc...@if...> - 2002-02-12 00:17:35
|
Hello, already I made the changes to the file that you indicated to me and follows with the same error, you agradeceria that you helped to me on this problem. =20 Ricardo Colin El vie, 08-02-2002 a las 18:19, Andreas Dilger escribi=F3: On Feb 07, 2002 22:40 -0600, Ricardo Colin wrote: > I procedi to make them change that I indicate and despues of it volvi= to > compile, obtaining the following result, thanks for your aid. =20 >=20 > libext2resize.a(llseek.o): In function `ext2_llseek': > /usr/src/redhat/BUILD/ext2resize-1.1.17/src/llseek.c:29: undefined > reference to `lseek64' =20 Did you run "./configure" first? The lseek64 command should not be called on systems that do not have it. =20 To work around this problem, you can edit ext2resize/src/config.h and change the line: =20 #define HAVE_LSEEK64 1 =20 to =20 #undef HAVE_LSEEK64 =20 } =BFUsted funcion=F3 el "/configure" primero? El comando lseek64 no d= ebe ser los } sistemas invitados que no lo tienen. Para trabajar alrededor de este } problema, usted puede corregir ext2resize/src/config.h y cambiar la l= =EDnea: =20 #define HAVE_LSEEK64 1 =20 } el =20 #undef HAVE_LSEEK64 =20 Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ =20 =20 _______________________________________________ ext2resize-devel mailing list ext...@li... https://lists.sourceforge.net/lists/listinfo/ext2resize-devel =20 |
From: Ricardo C. <rc...@if...> - 2002-02-12 05:07:54
|
Hello everyone. I'm trying to compile ext2resize-1.1.1-17 on a RedHat Linux 5.2. (kernel 2.0.36) Because of the lack of certain libraries (glibc-2.0) I had to modify ext2resize sources, until it finally compiled succesfully.=20 I just modified a little bit config.h, ext2.c and ext2_fs.h (I add some defines and comment out the lseek definition). Anyway, now I get an error whenever I try to use the command. Here is what happens: 1._ # df Filesystem Size Used Avail Capacity Mounted on /dev/sda1 486M 74M 387M 16% / /dev/sdb1 486M 214M 247M 46% /usr /dev/md0 7.6G 9.6M 7.2G 0% /var /dev/md1 7.6G 347M 6.8G 5% /home 2._ #umoun /dev/sdb1 # ext2resize /dev/sdb1 250M ext2resize v1.1.17- 2001/03/18 for EXT2FS 0.5b error : Succes: seeking to 1024 I have to mention that I got a RAID level 0 on this machine. (But i'm trying the resize on a "non-raid" partiion). Does anybody has a clue on this?? Thank you!! El vie, 08-02-2002 a las 18:19, Andreas Dilger escribi=F3: On Feb 07, 2002 22:40 -0600, Ricardo Colin wrote: > I procedi to make them change that I indicate and despues of it volvi= to > compile, obtaining the following result, thanks for your aid. =20 >=20 > libext2resize.a(llseek.o): In function `ext2_llseek': > /usr/src/redhat/BUILD/ext2resize-1.1.17/src/llseek.c:29: undefined > reference to `lseek64' =20 Did you run "./configure" first? The lseek64 command should not be called on systems that do not have it. =20 To work around this problem, you can edit ext2resize/src/config.h and change the line: =20 #define HAVE_LSEEK64 1 =20 to =20 #undef HAVE_LSEEK64 =20 } =BFUsted funcion=F3 el "/configure" primero? El comando lseek64 no d= ebe ser los } sistemas invitados que no lo tienen. Para trabajar alrededor de este } problema, usted puede corregir ext2resize/src/config.h y cambiar la l= =EDnea: =20 #define HAVE_LSEEK64 1 =20 } el =20 #undef HAVE_LSEEK64 =20 Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ =20 =20 _______________________________________________ ext2resize-devel mailing list ext...@li... https://lists.sourceforge.net/lists/listinfo/ext2resize-devel =20 |
From: Andreas D. <ad...@tu...> - 2002-02-12 05:45:52
|
On Feb 11, 2002 11:07 -0600, Ricardo Colin wrote: > I'm trying to compile ext2resize-1.1.1-17 on a RedHat Linux 5.2. (kernel > 2.0.36) > > Because of the lack of certain libraries (glibc-2.0) I had to modify > ext2resize sources, until it finally compiled succesfully. > I just modified a little bit config.h, ext2.c and ext2_fs.h (I add some > defines and comment out the lseek definition). I think this is because the return code for llseek is strange. I have the following changes in my CVS tree: Index: llseek.c =================================================================== RCS file: /cvsroot/ext2resize/ext2resize/src/llseek.c,v retrieving revision 1.6 diff -u -r1.6 llseek.c --- llseek.c 10 Oct 2000 18:34:33 -0000 1.6 +++ llseek.c 12 Feb 2002 05:42:26 -0000 @@ -23,17 +23,21 @@ #if HAVE_LSEEK64 #define __USE_LARGEFILE64 #include <unistd.h> -/* I'm not sure if this is the right thing to do, or if it even works */ inline loff_t ext2_llseek (unsigned int fd, loff_t offset, unsigned int whence) { - loff_t ret = lseek64(fd, offset, whence); - return ret != offset; + return lseek64(fd, offset, whence); } #elif HAVE_LLSEEK +/* + * Note that the return value of llseek() appears to be broken. Assume + * that we made it to where we wanted to go, unless we get an error. + * Should really use lseek64() anyways. + */ inline loff_t ext2_llseek (unsigned int fd, loff_t offset, unsigned int whence) { - return llseek(fd, offset, whence); + loff_t result = llseek(fd, offset, whence); + return (result == (loff_t)-1 ? result : offset); } #elif HAVE_LINUX_UNISTD_H @@ -64,7 +68,7 @@ &result, whence); - return (retval == -1 ? (loff_t) retval : result); + return (retval == -1 ? (loff_t) -1 : offset); } #endif /* __i386__ */ Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ |