2008-01-02 16:25:47 Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49195 Trying to build linphone-2.0.0:
Making all in build
Making all in win32native
Making all in win32-novideo
Making all in wince
Making all in include
Making all in mediastreamer2
Making all in tests
mkdir .libs
bfin-linux-uclibc-gcc -I../../../linphone-2.0.0/mediastreamer2 -I../../../linphone-2.0.0/mediastreamer2/../oRTP/include -DORTP_INET6 -pipe -Wall -O2 -g -mcpu=bf537-0.2 -fno-strict-aliasing -ffast-math -mfast-fp -Wall -O2 -g -pthread -D_REENTRANT -rdynamic -mcpu=bf537-0.2 -o mediastream mediastream.o -pthread ../src/.libs/libmediastreamer.a /home/cameron/src/blackfin/svn/uClinux-dist/user/blkfin-apps/linphone/build-linphone-2.0.0/oRTP/src/.libs/libortp.a -L/usr/local/lib ../../oRTP/src/.libs/libortp.a -lasound /usr/local/lib/libspeex.so -lm -lpthread -lrt -ldl
/usr/local/lib/libspeex.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[9]: *** [mediastream] Error 1
It looks like mediastreamer is trying to link against libspeex on my host instead of in the uClinux distribution.
QuoteReplyEditDelete
2008-01-02 17:24:40 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49197 for whatever reason, your link line wrongly has -L/usr/local/lib ... works fine for me
look in the Makefile to see where it's coming from
QuoteReplyEditDelete
2008-01-02 18:36:06 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49200 Grepped the path from blkfin-apps/linphone/build-linphone-2.0.1 (I grabbed latest SVN). Output is attached. It looks like configure is not being run with the correct paths, maybe.
path.txt
QuoteReplyEditDelete
2008-01-02 19:09:03 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49201 for whatever reason, speex was not detected correctly on your system
post the config.log in build-linphone-2.0.1/ ... it should be finding speex in the staging directory, not in your /usr/local
QuoteReplyEditDelete
2008-01-03 10:35:51 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49213 Here's the log.
It's definitely finding speex in the wrong place.
config.log
QuoteReplyEditDelete
2008-01-03 11:09:41 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49214 for verification, please post your staging/usr/lib/pkgconfig/speex.pc file
the correct pkg-config script was found (the bfin wrapper which forces the right paths)
QuoteReplyEditDelete
2008-01-03 12:21:11 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49217 'prefix' looks good...
speex.pc
QuoteReplyEditDelete
2008-01-03 12:51:04 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49220 the question though is whether that .pc is the one that was used when linphone configured
look at tools/*-pkg-config and make sure they're all symlinks (except for staging-pkg-config of course)
then try doing `make user/blkfin-apps/linphone_clean` to force a reconfigure of linphone
QuoteReplyEditDelete
2008-01-03 16:25:12 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49232 cameron@camlinux:~/src/blackfin/svn/uClinux-dist/tools$ ls -al *-pkg-config
lrwxrwxrwx 1 cameron users 18 2007-10-18 10:28 bfin-linux-uclibc-pkg-config -> staging-pkg-config*
-rwxr-xr-x 1 cameron users 627 2007-10-11 10:27 staging-pkg-config*
cameron@camlinux:~/src/blackfin/svn/uClinux-dist/tools$
I'll try the clean.
QuoteReplyEditDelete
2008-01-03 18:10:33 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49244 I still get the same error if I do a clean before I re-build.
QuoteReplyEditDelete
2008-01-03 19:33:11 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49248 i just committed some changes to the pkg-config wrapper to detect common error cases and dump information
please try this in the top level uclinux-dist:
STAGEDIR=$PWD/staging ./tools/staging-pkg-config --libs speex
STAGEDIR=$PWD/staging ./tools/staging-pkg-config --cflags speex
make sure it prints out the correct things
then try the linphone clean/build again
QuoteReplyEditDelete
2008-01-04 11:21:23 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49261 cameron@camlinux:~/src/blackfin/svn/uClinux-dist$ STAGEDIR=$PWD/staging ./tools/staging-pkg-config --libs speex
-L/usr/local/lib -lspeex -lm
cameron@camlinux:~/src/blackfin/svn/uClinux-dist$ STAGEDIR=$PWD/staging ./tools/staging-pkg-config --cflags speex
-I/usr/local/include
Still seems goofed...what I don't get is that I can build using checkout 5820 (I know, it's rather old but it's our 'baseline') with no problems.
QuoteReplyEditDelete
2008-01-04 11:32:10 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49263 that should have spit out errors if you were using the latest staging-pkg-config ...
please run:
export STAGEDIR=$PWD/staging
./tools/staging-pkg-config --debug --libs speex
bash -x ./tools/staging-pkg-config --debug --libs speex
QuoteReplyEditDelete
2008-01-04 11:37:48 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49264 Somehow I missed the message about my SVN update failing.
I re-run and get:
cameron@camlinux:~/src/blackfin/svn/uClinux-dist$ STAGEDIR=$PWD/staging ./tools/staging-pkg-config --cflags speex
-I/home/cameron/src/blackfin/svn/uClinux-dist/staging/usr/include
cameron@camlinux:~/src/blackfin/svn/uClinux-dist$ STAGEDIR=$PWD/staging ./tools/staging-pkg-config --libs speex
-L/home/cameron/src/blackfin/svn/uClinux-dist/staging/usr/lib -lspeex -lm
I'll re-clean and re-build and let you know.
QuoteReplyEditDelete
2008-01-04 12:17:37 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49266 I can get past the speex issue now, but compile fails regarding GTK. I would have thought that would have been disabled.
gtk.txt
QuoteReplyEditDelete
2008-01-04 12:50:06 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49267 it would only attempt gtk build if gtk was detected via pkg-config and it should not have been detected as no gtk exists in the staging directory
consult the config.log again to make sure gtk was *not* detected
QuoteReplyEditDelete
2008-01-04 13:18:23 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49269 configure:24055: checking for LIBGTK
configure:24063: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 gthread-2.0"
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
configure:24066: $? = 0
configure:24081: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 gthread-2.0"
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
configure:24084: $? = 0
configure:24120: result: yes
| /* confdefs.h. */
...
| #define HAVE_GTK 1
config.status:779: creating gtk/Makefile
ac_cv_env_LIBGTK_CFLAGS_set=
ac_cv_env_LIBGTK_CFLAGS_value=
ac_cv_env_LIBGTK_LIBS_set=
ac_cv_env_LIBGTK_LIBS_value=
pkg_cv_LIBGTK_CFLAGS=
pkg_cv_LIBGTK_LIBS=
BUILD_GTK_FALSE='#'
BUILD_GTK_TRUE=''
LIBGTK_CFLAGS=''
LIBGTK_LIBS=''
The only confdefs.h I can find is
uClinux-dist/user/dhcpcd-new/confdefs.h
which makes no references to gtk.
config.log
QuoteReplyEditDelete
2008-01-04 13:55:09 Re: Build Error with SVN Checkout 5926
Mike Frysinger (UNITED STATES)
Message: 49273 svn up the staging-pkg-config script again ... the last change was not properly passing up the exit status of pkg-config
QuoteReplyEditDelete
2008-01-07 13:45:50 Re: Build Error with SVN Checkout 5926
Cameron Barfield (UNITED STATES)
Message: 49330 Great, it builds now!
Thanks.