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 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 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-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 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 > > -

[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