Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-23 Thread Andrei Borzenkov
14.03.2016 21:19, Jiri B пишет: > > Another thing - 'INSTALL' file says >= autoconf 2.60 is needed but > it is >= 2.62 otherwise there is: > > "error: possibly undefined macro: AS_ECHO" > Indeed. According to git log, AS_ECHO appeared first in 2.61a. What versi

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-22 Thread Andrei Borzenkov
22.03.2016 13:31, Jiri B пишет: > [...] > CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie > > $ ls -l > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.im* > -rwxr-xr-x 1 jirib wheel 3068 Mar 17 21:45 > /hom

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-22 Thread Jiri B
> >>> [...] > >>> CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie > >>> > >>> $ ls -l > >>> /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.im* > >>> -rwxr-xr-x 1 jirib wheel 3068 Mar 17 21:45 > >>> /home/jirib/openbsd/pobj/grub-2.02-b

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Vladimir 'phcoder' Serbinenko
If it solves the problem, go ahead Le ven. 18 mars 2016 17:53, Andrei Borzenkov a écrit : > 18.03.2016 16:01, Jiri B пишет: > > On Fri, Mar 18, 2016 at 06:26:47AM +0300, Andrei Borzenkov wrote: > >>> [...] > >>> CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie > >>> > >>> So I gave it

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Vladimir 'phcoder' Serbinenko
The real problem is .hash section. We need to strip it Le jeu. 17 mars 2016 16:54, Andrei Borzenkov a écrit : > 17.03.2016 13:12, Jiri B пишет: > > On Mon, Mar 14, 2016 at 09:46:20PM +0300, Andrei Borzenkov wrote: > > $ tar tzvf > /home/jirib/openbsd/packages/amd64/all/grub-2.02-beta3.tgz |

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Jiri B
On Mon, Mar 14, 2016 at 09:46:20PM +0300, Andrei Borzenkov wrote: > >>> $ tar tzvf /home/jirib/openbsd/packages/amd64/all/grub-2.02-beta3.tgz | > >>> grep lzma_decompress > >>> -r-xr-xr-x 1 root bin 3904 Jan 1 1970 > >>> lib/grub/i386-pc/lzma_decompress.image > >>> -r--r--r-- 1

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Jiri B
> >> [...] > >> Well, your compiler managed to create shared library instead of > >> executable file: > >> > >> bor@bor-Latitude-E5450:~$ LANG=C objdump -f Загрузки/lzma_decompress.image > >> > >> Загрузки/lzma_decompress.image: file format elf32-i386 > >> architecture: i386, flags 0x0050:

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Andrei Borzenkov
18.03.2016 16:01, Jiri B пишет: > On Fri, Mar 18, 2016 at 06:26:47AM +0300, Andrei Borzenkov wrote: >>> [...] >>> CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie >>> >>> So I gave it a try and it seems better (?) >>> >>> $ ls -l >>> /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/u

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Andrei Borzenkov
17.03.2016 13:12, Jiri B пишет: > On Mon, Mar 14, 2016 at 09:46:20PM +0300, Andrei Borzenkov wrote: > $ tar tzvf /home/jirib/openbsd/packages/amd64/all/grub-2.02-beta3.tgz | > grep lzma_decompress > -r-xr-xr-x 1 root bin 3904 Jan 1 1970 > lib/grub/i386-pc/lzma_dec

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Andrei Borzenkov
17.03.2016 23:56, Jiri B пишет: [...] Well, your compiler managed to create shared library instead of executable file: bor@bor-Latitude-E5450:~$ LANG=C objdump -f Загрузки/lzma_decompress.image Загрузки/lzma_decompress.image: file format elf32-i386 archit

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-19 Thread Jiri B
On Fri, Mar 18, 2016 at 06:26:47AM +0300, Andrei Borzenkov wrote: > > [...] > > CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie > > > > So I gave it a try and it seems better (?) > > > > $ ls -l > > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_d

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-18 Thread Andrei Borzenkov
17.03.2016 19:04, Vladimir 'phcoder' Serbinenko пишет: > The real problem is .hash section. We need to strip it > I tried it, it does not change anything. bor@bor-Latitude-E5450:~/build/grub$ objcopy -O binary --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reg

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-14 Thread Andrei Borzenkov
14.03.2016 21:19, Jiri B пишет: > On Sun, Mar 13, 2016 at 08:41:27AM +0300, Andrei Borzenkov wrote: >>> Well, I see something went wrong now with compressing a file: >>> >>> $ tar tzvf /home/jirib/openbsd/packages/amd64/all/grub-2.02-beta3.tgz | >>> grep lzma_decompress >>> -r-xr-xr-x 1 root

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-14 Thread Jiri B
On Sun, Mar 13, 2016 at 08:41:27AM +0300, Andrei Borzenkov wrote: > > Well, I see something went wrong now with compressing a file: > > > > $ tar tzvf /home/jirib/openbsd/packages/amd64/all/grub-2.02-beta3.tgz | > > grep lzma_decompress > > -r-xr-xr-x 1 root bin 3904 Jan 1 1970

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-12 Thread Andrei Borzenkov
12.03.2016 22:54, Jiri B пишет: > On Sat, Mar 12, 2016 at 09:29:15PM +0300, Andrei Borzenkov wrote: >>> cc -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment >>> -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero >>> -Wfloat-equal -Wformat-extra-args -Wformat-secur

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-12 Thread Jiri B
On Sat, Mar 12, 2016 at 09:29:15PM +0300, Andrei Borzenkov wrote: > > cc -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment > > -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero > > -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit > > -

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-12 Thread Andrei Borzenkov
12.03.2016 19:57, Jiri B пишет: > Hi, > > I'm trying to build grub-2.02-beta3 on OpenBSD 5.9 amd64 and build > fails: > > cc -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment > -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal > -Wformat-extra-arg

[openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'

2016-03-12 Thread Jiri B
Hi, I'm trying to build grub-2.02-beta3 on OpenBSD 5.9 amd64 and build fails: cc -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wi