Hi,

I've just updated the 2.0 branch (revision 8608) and the trunk and test
the configuration/compilation with scons and cmake on my 64 bits
environment. I've an amd64 with Gentoo 2006.1 up to date (gcc-4.1.1,
qt-4.2.1, glibc-2.5, kernel linux 2.6.18.2).

The two branches abort with this error with scons :

gcc -o debug/wifo/phapi/amrnb/sp_enc.o -c -fno-common -g -Wall
-Idebug/wifo/phapi/amrnb -Iwifo/phapi/amrnb wifo/phapi/amrnb/sp_enc.c
ar rc debug/wifo/phapi/amrnb/libamrnb.a
debug/wifo/phapi/amrnb/interf_dec.o debug/wifo/phapi/amrnb/interf_enc.o
debug/wifo/phapi/amrnb/sp_dec.o debug/wifo/phapi/amrnb/sp_enc.o
ranlib debug/wifo/phapi/amrnb/libamrnb.a
gcc -o debug/wifo/phapi/phamrplugin.so -fno-common -shared
debug/wifo/phapi/phcodec-amr-wrapper.os -Ldebug/wifo/phapi/amrwb
-Lwifo/phapi/amrwb -Ldebug/wifo/phapi/amrnb -Lwifo/phapi/amrnb -lamrwb
-lamrnb
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: 
debug/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
debug/wifo/phapi/amrwb/libamrwb.a: ne peut lire les symboles: Mauvaise
valeur
collect2: ld a retourné 1 code d'état d'exécution
scons: *** [debug/wifo/phapi/phamrplugin.so] Error 1
scons: building terminated because of errors.

Clearly it's a lack of "-fPIC" inclusion in the CFLAGS during
configuration for a good compilation on this plateform.

In the 2.0 branche with cmake the compilation go at this point with a
similar error but for another "module" :

[ 52%] Building C object
wifo/sfp-plugin/CMakeFiles/sfp-plugin.dir/src/sfp-plugin.o
In file included
from 
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:31:
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/include/sfp-plugin/sfp-plugin.h:143:
 attention : useless storage class specifier in empty declaration
Dans le fichier inclus à partir
de 
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:44:
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/phapi-util/include/phapi-util/mystdio.h:31:27:
 attention : pas de retour chariot à la fin du fichier
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:
 In function ‘sfp_set_plugin_callbacks’:
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:189:
 attention : assignment discards qualifiers from pointer target type
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:
 In function ‘create_sfp_session_info’:
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:508:
 attention : assignment from incompatible pointer type
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-plugin.c:1733:12:
 attention : pas de retour chariot à la fin du fichier
[ 52%] Building C object
wifo/sfp-plugin/CMakeFiles/sfp-plugin.dir/src/sfp-transfer.o
In file included
from 
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-transfer.c:21:
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/include/sfp-plugin/sfp-plugin.h:143:
 attention : useless storage class specifier in empty declaration
Dans le fichier inclus à partir
de 
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/sfp-plugin/src/sfp-transfer.c:24:
/home/didier/temp/openwengo-2.0/wengophone-2.0/wifo/phapi-util/include/phapi-util/mystdio.h:31:27:
 attention : pas de retour chariot à la fin du fichier
Linking C shared library libsfp-plugin.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: 
/home/didier/temp/openwengo-2.0/wifo/phapi-util/libphapi-util.a(util.o): 
relocation R_X86_64_32 against `a local symbol' can not be used when making a 
shared object; recompile with -fPIC
/home/didier/temp/openwengo-2.0/wifo/phapi-util/libphapi-util.a: ne peut
lire les symboles: Mauvaise valeur
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [wifo/sfp-plugin/libsfp-plugin.so] Erreur 1
make[1]: *** [wifo/sfp-plugin/CMakeFiles/sfp-plugin.dir/all] Erreur 2
make: *** [all] Erreur 2


The library phamrplugin.so (previously not built with scons) was already
compilated at this point.

For the trunk the cmake script is broken and that prevent me to test
anything at all this time :

-- **
-- ** PROJECT_NAME=phamrplugin
-- ** phamrplugin_PROJECT_TYPE=Plugin
-- ** phamrplugin_PUBLIC_INCLUDE_DIRS=
-- **
phamrplugin_PRIVATE_INCLUDE_DIRS=/home/didier/temp/openwengo-latest/trunk/wifo/phapi/amrwb;/home/didier/temp/openwengo-latest/trunk/wifo/phapi/amrnb
-- ** phamrplugin_PUBLIC_LIBRARIES=amrwb;amrnb
-- ** phamrplugin_PRIVATE_LIBRARIES=amrwb;amrnb
-- ** phamrplugin_PUBLIC_LIBRARY_DIRS=
-- ** phamrplugin_PRIVATE_LIBRARY_DIRS=
-- ** phamrplugin_PUBLIC_DEFINITIONS=-DPHAMRPLUGIN_DLL
-- **
phamrplugin_PRIVATE_DEFINITIONS=-DPH_SPEEXWB_REPLACES_G726WB;-DPHAMRPLUGIN_DLL;-DBUILD_PHAMRPLUGIN_DLL
-- ** phamrplugin_PRIVATE_COMPILE_FLAGS=-funroll-loops
-- ** phamrplugin_PUBLIC_LINK_FLAGS=
-- ** phamrplugin_PRIVATE_LINK_FLAGS=
-- ** phamrplugin_BUILD_VERSION=
-- ** phamrplugin_API_VERSION=
-- **
CMake Error: Error in cmake code at
Path to a file.:17:
MESSAGE phspeexplugin: speex_INCLUDE_DIRS and speex_INCLUDE_DIR empty
Current CMake
stack: 
/home/didier/temp/openwengo-latest/trunk/wifo/phapi/phspeexplugin/CMakeLists.txt
-- Configuring done


With this errors I can't test further the programm on my amd64 box. Can
you tell me what version/revision I can use for a deeper testing
please ?

Regards.

Didier Link

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

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

Reply via email to