You are not logged in.

#1 2007-01-23 09:29:30

laolang_cool
Member
Registered: 2006-10-03
Posts: 10

abs base: util-linux's pkgbuild is broken!

I make it use abs's pkgbuild, but sth is wrong:

In file included from fdisk.c:24:
fdisk.h:85: warning: type qualifiers ignored on function return type
fdisk.c: In function 'get_partition_table_geometry':
fdisk.c:810: warning: pointer targets in initialization differ in signedness
fdisk.c: In function 'get_boot':
fdisk.c:948: warning: pointer targets in passing argument 1 of 'valid_part_table_flag' differ in signedness
fdisk.c:958: warning: pointer targets in passing argument 1 of 'valid_part_table_flag' differ in signedness
fdisk.c:1002: warning: pointer targets in passing argument 1 of 'valid_part_table_flag' differ in signedness
fdisk.c: At top level:
fdisk.c:1256: warning: type qualifiers ignored on function return type
cc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_
FILE_OFFSET_BITS=64 -DSBINDIR="/sbin" -DUSRSBINDIR="/usr/sbin" -DLOGDIR="/var/log" -DVARPATH="/var" -DLOCALEDI
R="/usr/share/locale" -march=i686 -O2 -pipe llseek.c -o llseek.o
llseek.c:34: error: expected declaration specifiers or '...' before '_llseek'
llseek.c:34: error: expected declaration specifiers or '...' before 'fd'
llseek.c:34: error: expected declaration specifiers or '...' before 'offset_high'
llseek.c:35: error: expected declaration specifiers or '...' before 'offset_low'
llseek.c:35: error: expected declaration specifiers or '...' before 'result'
llseek.c:36: error: expected declaration specifiers or '...' before 'origin'
llseek.c:50: warning: return type defaults to 'int'
llseek.c: In function '_syscall5':
llseek.c:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
llseek.c:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
llseek.c:34: error: parameter name omitted
llseek.c:34: error: parameter name omitted
llseek.c:34: error: parameter name omitted
llseek.c:35: error: parameter name omitted
llseek.c:35: error: parameter name omitted
llseek.c:36: error: parameter name omitted
llseek.c:93: error: expected '{' at end of input
make[1]: *** [llseek.o] Error 1
make[1]: Leaving directory `/var/abs/local/base/util-linux/src/util-linux-2.12r/fdisk'
make: *** [all] Error 1
==> ERROR: Build Failed.  Aborting...

Offline

#2 2007-01-23 09:53:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: abs base: util-linux's pkgbuild is broken!

Packages like util-linux are not updated often, and the version that we currently offer is the latest stable one, dated 23 September 2005. At the time it was packaged, it built without any errors, and it continues to run without any problems.

Since that time, however, the Arch build environment has been upgraded, so the code from Sept 2005 no longer builds, as you have found. In the absence of a new stable release, you should try the latest testing release from here and see how that goes. You won't need the cramfs and cryptoloop patches in the current Arch package, but the rest are still required.

Offline

#3 2007-01-23 10:28:45

laolang_cool
Member
Registered: 2006-10-03
Posts: 10

Re: abs base: util-linux's pkgbuild is broken!

I see, thanks for developer's reply, so exciting!

Offline

#4 2007-02-02 03:36:36

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: abs base: util-linux's pkgbuild is broken!

You need some patches to build the util-linux-2.12 pkg:

util-linux-2.12r-missing_header-1.patch
util-linux-2.12r-missing_lseek-1.patch
util-linux-2.12r-syscall_fixes-1.patch

You should be able to find them on patches.cross-lfs.org

Add the following lines to the PKGBUILD just below all the other patch lines

  patch -Np1 -i ../util-linux-2.12r-missing_header-1.patch || return 1
  patch -Np1 -i ../util-linux-2.12r-missing_lseek-1.patch || return 1
  patch -Np1 -i ../util-linux-2.12r-syscall_fixes-1.patch || return 1

Worked for me.

Offline

Board footer

Powered by FluxBB