Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2005 02:28:58 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        "Stefan 'Steve' Tell" <stefan.tell@crashmail.de>
Cc:        gnome@freebsd.org
Subject:   Re: Scintilla on AMD64
Message-ID:  <1129444138.45346.9.camel@shumai.marcuscom.com>
In-Reply-To: <9fy$GyHehEB@zeus.crashmail.de>
References:  <9fy$GyHehEB@zeus.crashmail.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-VOvqCNRdDE5RB6SKmDzf
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 2005-10-16 at 08:23 +0200, Stefan 'Steve' Tell wrote:
> Hi,
>=20
> I can not build x11-toolkits/scintilla on my FreeBSD 6.0RC1/amd64 with =20
> GTK2-support.
>=20
> cc -DPIC -fpic `pkg-config --cflags gtk+-2.0 gthread-2.0` -O2 -fno-strict=
-aliasing -pipe -march=3Dk8 -DNDEBUG -W -Wall -Wno-char-subscripts -DGTK -D=
SCI_LEXER -I ../include -I ../src  -c ../src/XPM.cxx
> gcc `pkg-config --cflags gtk+-2.0 gthread-2.0` -O2 -fno-strict-aliasing -=
pipe -march=3Dk8 -DNDEBUG -W -Wall -Wno-char-subscripts -DGTK -DSCI_LEXER -=
I ../include -I ../src  -w -c scintilla-marshal.c
> cc -shared `pkg-config --libs gtk+-2.0 gthread-2.0` -o ../bin/libscintill=
a.so.1 DocumentAccessor.o WindowAccessor.o KeyWords.o StyleContext.o Docume=
nt.o CallTip.o ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o =
PropSet.o PlatGTK.o KeyMap.o LineMarker.o ScintillaGTK.o CellBuffer.o ViewS=
tyle.o RESearch.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o =
scintilla-marshal.o
> /usr/bin/ld: scintilla-marshal.o: relocation R_X86_64_32 can not be used =
when making a shared object; recompile with -fPIC
> scintilla-marshal.o: could not read symbols: Bad value
> gmake: *** [../bin/libscintilla.so.1] Error 1
> *** Error code 2
>=20
> Any hints?

Try adding -fPIC to scintilla's Makefile at line 40.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-VOvqCNRdDE5RB6SKmDzf
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDUfMqb2iPiv4Uz4cRApDnAJ0ejxVxJQ0cC3s9Ic8IreFoyR1r1gCeIY+F
PVTMibh/ED5GCxC0Af4+jOo=
=fYuO
-----END PGP SIGNATURE-----

--=-VOvqCNRdDE5RB6SKmDzf--




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