Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Sep 2010 12:40:47 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        garga@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: LUA fails upgrade on 7.2/amd64
Message-ID:  <867hiy2bg0.fsf@gmail.com>
In-Reply-To: <4C85EAF3.1090205@netfence.it> (Andrea Venturoli's message of "Tue, 07 Sep 2010 09:34:11 %2B0200")
References:  <4C85EAF3.1090205@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrea Venturoli <ml@netfence.it> writes:

> --->  Upgrading 'lua-5.1.4' to 'lua-5.1.4_1' (lang/lua)
> --->  Building '/usr/ports/lang/lua'
> ===>  Cleaning for lua-5.1.4_1
> ===>  License check disabled, port has not defined LICENSE
> ===>  Extracting for lua-5.1.4_1
> => MD5 Checksum OK for lua-5.1.4.tar.gz.
> => SHA256 Checksum OK for lua-5.1.4.tar.gz.
> ===>  Patching for lua-5.1.4_1
> ===>  Applying FreeBSD patches for lua-5.1.4_1
> ===>   lua-5.1.4_1 depends on executable: pkg-config - found
> ===>  Configuring for lua-5.1.4_1
> ===>  Building for lua-5.1.4_1
> cd src && make freebsd
> make all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lapi.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lcode.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ldebug.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ldo.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ldump.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lfunc.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lgc.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c llex.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lmem.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lobject.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lopcodes.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lparser.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lstate.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lstring.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ltable.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ltm.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lundump.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lvm.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lzio.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lauxlib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lbaselib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ldblib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c liolib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lmathlib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c loslib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c ltablib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lstrlib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c loadlib.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c linit.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c lua.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c luac.c
> cc -pipe -O  -Wall -DLUA_USE_LINUX -c print.c
> cc -o liblua.so  -shared -Wl,-soname=liblua-5.1.so.1 lapi.o lcode.o
> ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o
> lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o
> lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o
> ltablib.o lstrlib.o loadlib.o linit.o
> /usr/bin/ld: lapi.o: relocation R_X86_64_32 can not be used when
> making a shared object; recompile with -fPIC
> lapi.o: could not read symbols: Bad value
>
> Any hint?

It's expected becasue you're overriding -fPIC in port's Makefile from
your make.conf (CFLAGS=...). If you still want to *reduce* optimization
then append CFLAGS by using `+=' instead of `='.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867hiy2bg0.fsf>