Compiling on Freebsd 8.1 - AMD64

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling on Freebsd 8.1 - AMD64

Leonardo M. Ramé
I'm trying to compile Firebird 2.1.3 on Freebsd 8.1 Amd64 using this  procedure, without success:

export CFLAGS="-DAMD64"
./configure --without-editline
gmake

... and after a while I get this:

...
/usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/lib/libsupc++.a: could not read symbols: Bad value
gmake[2]: *** [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1
gmake[2]: Leaving directory `/usr/home/martin/desarrollo/Firebird-2.1.3.18185-0/gen'
gmake[1]: *** [libfbclient] Error 2
gmake[1]: Leaving directory `/usr/home/martin/desarrollo/Firebird-2.1.3.18185-0/gen'
gmake: *** [firebird] Error 2

Any hint?

Leonardo M. Ramé
http://leonardorame.blogspot.com


     

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on Freebsd 8.1 - AMD64

Damyan Ivanov-5
-=| Leonardo M. Ramé, Mon, Aug 30, 2010 at 04:42:07PM -0700 |=-
> I'm trying to compile Firebird 2.1.3 on Freebsd 8.1 Amd64 using this  procedure, without success:
>
> /usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o): relocation R_X86_64_32S
> can not be used when making a shared object; recompile with -fPIC
> /usr/lib/libsupc++.a: could not read symbols: Bad value
> gmake[2]: *** [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1

I think the linker complains because libsupc++.a was built without
-fPIC and therefore is not suitable for a shared object that is
created for dynamic linking, such as libfbclient.so.

If recompiling libsupc++ with -fPIC is not feasible, you may be
interested in this patch[1] from the Debian package which replaces
static linking with libsupc++.a with dynamic linking with libstdc++.

    [1] http://git.debian.org/?p=pkg-firebird/2.1.git;a=blob;f=debian/patches/no-static-linkage.patch;hb=HEAD

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on Freebsd 8.1 - AMD64

Alex Peshkoff
 On 08/31/10 09:19, Damyan Ivanov wrote:

> -=| Leonardo M. Ramé, Mon, Aug 30, 2010 at 04:42:07PM -0700 |=-
>> I'm trying to compile Firebird 2.1.3 on Freebsd 8.1 Amd64 using this  procedure, without success:
>>
>> /usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o): relocation R_X86_64_32S
>> can not be used when making a shared object; recompile with -fPIC
>> /usr/lib/libsupc++.a: could not read symbols: Bad value
>> gmake[2]: *** [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1
> I think the linker complains because libsupc++.a was built without
> -fPIC and therefore is not suitable for a shared object that is
> created for dynamic linking, such as libfbclient.so.

Agreed, exactly this reason.

> If recompiling libsupc++ with -fPIC is not feasible, you may be
> interested in this patch[1] from the Debian package which replaces
> static linking with libsupc++.a with dynamic linking with libstdc++.
>
>     [1] http://git.debian.org/?p=pkg-firebird/2.1.git;a=blob;f=debian/patches/no-static-linkage.patch;hb=HEAD

More or less same approach is also present in FB 2.5.


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on Freebsd 8.1 - AMD64

Leonardo M. Ramé
In reply to this post by Damyan Ivanov-5
Thanks!!!, that worked.


Leonardo M. Ramé
http://leonardorame.blogspot.com


--- On Tue, 8/31/10, Damyan Ivanov <[hidden email]> wrote:

> From: Damyan Ivanov <[hidden email]>
> Subject: Re: [Firebird-devel] Compiling on Freebsd 8.1 - AMD64
> To: [hidden email]
> Date: Tuesday, August 31, 2010, 2:19 AM
> -=| Leonardo M. Ramé, Mon, Aug 30,
> 2010 at 04:42:07PM -0700 |=-
> > I'm trying to compile Firebird 2.1.3 on Freebsd 8.1
> Amd64 using this  procedure, without success:
> >
> > /usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o):
> relocation R_X86_64_32S
> > can not be used when making a shared object; recompile
> with -fPIC
> > /usr/lib/libsupc++.a: could not read symbols: Bad
> value
> > gmake[2]: ***
> [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1
>
> I think the linker complains because libsupc++.a was built
> without
> -fPIC and therefore is not suitable for a shared object
> that is
> created for dynamic linking, such as libfbclient.so.
>
> If recompiling libsupc++ with -fPIC is not feasible, you
> may be
> interested in this patch[1] from the Debian package which
> replaces
> static linking with libsupc++.a with dynamic linking with
> libstdc++.
>
>     [1] http://git.debian.org/?p=pkg-firebird/2.1.git;a=blob;f=debian/patches/no-static-linkage.patch;hb=HEAD
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
>


     

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on Freebsd 8.1 - AMD64

Mariuz
On Tue, Aug 31, 2010 at 3:19 PM, Leonardo M. Ramé <[hidden email]> wrote:
> Thanks!!!, that worked.

Can you send the patches to ports at freebsd.org ?

seems that firebird port is quite stalled there (no maintainer from what i see)

http://www.reddit.com/r/BSD/comments/d95vr/firebird_21x_compiling_instructions_on_freebsd_81/

>
>
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
>
>
> --- On Tue, 8/31/10, Damyan Ivanov <[hidden email]> wrote:
>
>> From: Damyan Ivanov <[hidden email]>
>> Subject: Re: [Firebird-devel] Compiling on Freebsd 8.1 - AMD64
>> To: [hidden email]
>> Date: Tuesday, August 31, 2010, 2:19 AM
>> -=| Leonardo M. Ramé, Mon, Aug 30,
>> 2010 at 04:42:07PM -0700 |=-
>> > I'm trying to compile Firebird 2.1.3 on Freebsd 8.1
>> Amd64 using this  procedure, without success:
>> >
>> > /usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o):
>> relocation R_X86_64_32S
>> > can not be used when making a shared object; recompile
>> with -fPIC
>> > /usr/lib/libsupc++.a: could not read symbols: Bad
>> value
>> > gmake[2]: ***
>> [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1
>>
>> I think the linker complains because libsupc++.a was built
>> without
>> -fPIC and therefore is not suitable for a shared object
>> that is
>> created for dynamic linking, such as libfbclient.so.
>>
>> If recompiling libsupc++ with -fPIC is not feasible, you
>> may be
>> interested in this patch[1] from the Debian package which
>> replaces
>> static linking with libsupc++.a with dynamic linking with
>> libstdc++.
>>
>>     [1] http://git.debian.org/?p=pkg-firebird/2.1.git;a=blob;f=debian/patches/no-static-linkage.patch;hb=HEAD
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
>>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on Freebsd 8.1 - AMD64

Nigel Weeks-3
If you were able to build a recent Firebird from sources on FreeBSD, without
using the FreeBSD port, I'd very much like to see the patches. :)

I use FreeBSD A LOT, and being stuck on Firebird 2.0.3 means I haven't seen
many of the more recent features.

Thanks for your work!!

Nige.

-----Original Message-----
From: marius adrian popa [mailto:[hidden email]]
Sent: Saturday, 4 September 2010 11:55 PM
To: For discussion among Firebird Developers
Subject: Re: [Firebird-devel] Compiling on Freebsd 8.1 - AMD64

On Tue, Aug 31, 2010 at 3:19 PM, Leonardo M. Ramé <[hidden email]>
wrote:
> Thanks!!!, that worked.

Can you send the patches to ports at freebsd.org ?

seems that firebird port is quite stalled there (no maintainer from what i
see)

http://www.reddit.com/r/BSD/comments/d95vr/firebird_21x_compiling_instructio
ns_on_freebsd_81/

>
>
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
>
>
> --- On Tue, 8/31/10, Damyan Ivanov <[hidden email]> wrote:
>
>> From: Damyan Ivanov <[hidden email]>
>> Subject: Re: [Firebird-devel] Compiling on Freebsd 8.1 - AMD64
>> To: [hidden email]
>> Date: Tuesday, August 31, 2010, 2:19 AM
>> -=| Leonardo M. Ramé, Mon, Aug 30,
>> 2010 at 04:42:07PM -0700 |=-
>> > I'm trying to compile Firebird 2.1.3 on Freebsd 8.1
>> Amd64 using this  procedure, without success:
>> >
>> > /usr/bin/ld: /usr/lib/libsupc++.a(tinfo2.o):
>> relocation R_X86_64_32S
>> > can not be used when making a shared object; recompile
>> with -fPIC
>> > /usr/lib/libsupc++.a: could not read symbols: Bad
>> value
>> > gmake[2]: ***
>> [../gen/firebird/lib/libfbclient.so.2.1.3] Error 1
>>
>> I think the linker complains because libsupc++.a was built
>> without
>> -fPIC and therefore is not suitable for a shared object
>> that is
>> created for dynamic linking, such as libfbclient.so.
>>
>> If recompiling libsupc++ with -fPIC is not feasible, you
>> may be
>> interested in this patch[1] from the Debian package which
>> replaces
>> static linking with libsupc++.a with dynamic linking with
>> libstdc++.
>>
>>     [1]
http://git.debian.org/?p=pkg-firebird/2.1.git;a=blob;f=debian/patches/no-sta
tic-linkage.patch;hb=HEAD
>>
>>
----------------------------------------------------------------------------
--
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel
>>
>
>
>
>
>
----------------------------------------------------------------------------
--
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel
>

----------------------------------------------------------------------------
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on Freebsd 8.1 - AMD64

Alex Peshkoff
 On 09/08/10 03:21, Nigel Weeks wrote:
> If you were able to build a recent Firebird from sources on FreeBSD, without
> using the FreeBSD port, I'd very much like to see the patches. :)
>
> I use FreeBSD A LOT, and being stuck on Firebird 2.0.3 means I haven't seen
> many of the more recent features.
>
> Thanks for your work!!
Nige, I've checked FB2.5 on freebsd a few months ago, and it compiled
(and installed in CS mode OK). I do not suppose it got broken at RC
stages, moreover we have actively supported port for Mac, which is also
BSD-based.


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel