current JACK svn on x86_64

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

current JACK svn on x86_64

Paul Davis
i am suprised nobody else has seen this so far:

/usr/bin/ld: ../alsa-midi/.libs/libalsamidi.a(alsa_seqmidi.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
../alsa-midi/.libs/libalsamidi.a(alsa_seqmidi.o): could not read
symbols: Bad value


this comes from the following gcc command:

gcc
-shared  .libs/alsa_driver.o .libs/generic_hw.o .libs/memops.o .libs/hammerfall.o .libs/hdsp.o .libs/ice1712.o .libs/usx2y.o -Wl,--whole-archive ../alsa-midi/.libs/libalsamidi.a -Wl,--no-whole-archive  -lasound -lm -lpthread -ldl  -Wl,-soname -Wl,jack_alsa.so -o .libs/jack_alsa.so

generated by libtool. we've run into issues in ardour before in
combining shared + static libs in this way on x86_64 .. does anybody
have any immediate suggestions what might be wrong and/or how to fix it?

i'm puzzled that i've been able to build JACK for a while without this
issue.

--p



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: current JACK svn on x86_64

Dmitry Baikov
On 6/8/07, Paul Davis <[hidden email]> wrote:
> does anybody
> have any immediate suggestions what might be wrong and/or how to fix it?

Offending commit was 1041.
AM_ENABLE_STATIC(yes) kills the build on x86_64.
If set to 'no' everything builds cleanly.


Dmitry.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: current JACK svn on x86_64

Paul Davis
On Fri, 2007-06-08 at 02:13 +0400, Dmitry Baikov wrote:
> On 6/8/07, Paul Davis <[hidden email]> wrote:
> > does anybody
> > have any immediate suggestions what might be wrong and/or how to fix it?
>
> Offending commit was 1041.
> AM_ENABLE_STATIC(yes) kills the build on x86_64.
> If set to 'no' everything builds cleanly.

right, but that then breaks with various versions of libtool, IIRC




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: current JACK svn on x86_64

Dmitry Baikov
On 6/8/07, Paul Davis <[hidden email]> wrote:
> right, but that then breaks with various versions of libtool, IIRC
Sorry, can't help here. At this point I did my best already :)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: current JACK svn on x86_64

salsaman-3
In reply to this post by Paul Davis
On Fri, June 8, 2007 00:17, Paul Davis wrote:

> On Fri, 2007-06-08 at 02:13 +0400, Dmitry Baikov wrote:
>> On 6/8/07, Paul Davis <[hidden email]> wrote:
>> > does anybody
>> > have any immediate suggestions what might be wrong and/or how to fix
>> it?
>>
>> Offending commit was 1041.
>> AM_ENABLE_STATIC(yes) kills the build on x86_64.
>> If set to 'no' everything builds cleanly.
>
> right, but that then breaks with various versions of libtool, IIRC
>


I had the exact same problem in LiVES. It affects dynamic libs.

The solution is to add -fPIC -DPIC to both LDFLAGS and CFLAGS in
Makefile.am in the affected directory. The exception is for OSX/Darwin,
which builds position indpendant code by default, and does not need these
flags.

Here is a snippet from LiVES:

if IS_DARWIN
 shared_ldflags = -dynamiclib
 shared_cflags = -fno-common
else
 shared_ldflags = -shared -fPIC -DPIC
 shared_cflags = -fPIC -DPIC
endif


AM_LDFLAGS = $(shared_ldflags) -O3 -L/usr/lib64
AM_CFLAGS = $(shared_cflags) -O3 -fexpensive-optimizations -ffast-math



Gabriel.
http://lives.sourceforge.net



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel