On Tue, Jan 24, 2006 at 02:55:12PM -0500, Philip S. Hempel wrote:
> Vadim Lebedev wrote:
> >Philip S. Hempel wrote:
> >
> >>I am attempting to build the trunk version on an AMD64 box and so far 
> >>I have been stalled with this fpic problem during compile
> >>
> >>wifo/phapi/phmedia-alsa.c: In function 'alsa_dev_open':
> >>wifo/phapi/phmedia-alsa.c:89: warning: unused variable 'val2'
> >>wifo/phapi/phmedia-alsa.c: At top level:
> >>wifo/phapi/phastream.h:183: warning: 'ph_media_audio_recording_dump' 
> >>declared 'static' but never defined
> >>gcc -fno-common -shared -o release-symbols/wifo/phapi/phamrplugin.so 
> >>release-symbols/wifo/phapi/phcodec-amr-wrapper.os 
> >>-Lrelease-symbols/wifo/phapi/amrwb -Lwifo/phapi/amrwb 
> >>-Lrelease-symbols/wifo/phapi/amrnb -Lwifo/phapi/amrnb -lamrwb -lamrnb
> >>/usr/bin/ld: release-symbols/wifo/phapi/amrwb/libamrwb.a(dec_if.o): 
> >>relocation R_X86_64_32S against `nb_of_param' can not be used when 
> >>making a shared object; recompile with -fPIC
> >>release-symbols/wifo/phapi/amrwb/libamrwb.a: could not read symbols: 
> >>Bad value
> >>collect2: ld returned 1 exit status
> >>scons: *** [release-symbols/wifo/phapi/phamrplugin.so] Error 1
> >>scons: building terminated because of errors.
> >>
> >>
> >>
> >>I know that someone is working on the fixes for the 64 bit arches and 
> >>they have not completed the fixes for it, I am willing to setup a 
> >>chroot account for him if he needs to help fix the rest of these 
> >>errors in the build.
> >>
> >>
> >Philip,
> >
> >please try to add at the end of wifo/phapi/amrwb/SConscript
> >if WengoOsLinux():
> >  env.WengoAddCCFlags(['-fPIC'])
> >
> >Vadim
> 
> Below is the results of adding as directed:
> 
> NameError: name 'WengoOsLinux' is not defined

1) That's 'WengoOSLinux'

2) You have to put these statements in the global SConstruct, because
you need -fPIC everywhere

3) The test should be done on WengoOSGCC() + platform == '64-bit', as
it's done in our previous scons system

> 
> 
> 
> _______________________________________________
> Wengophone-devel mailing list
> [email protected]
> http://dev.openwengo.com/mailman/listinfo/wengophone-devel

-- 
     David Ferlier -- [EMAIL PROTECTED]

      "Humor is mankind's greatest blessing."
              --  Mark Twain 
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to