-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 7/16/10 12:24 PM, Massimo Coppola wrote:
> Issue while compiling pidgin --> libgupnp-igd maybe due to python
> path/libraries
>
> --------- problem
>
> On a stable installation on top of MacOSX 10.5.8 (macbook pro intel 64bit), I
> enabled unstable distro in order to compile pidging 2.7.1 in unstable;
> already
If you enabled unstable, you're on unstable. The fact that you had been
on stable before only really means that you might want to update
_everything_ in pidgin's dependency chain.
> had similar experiences, I ran fink selfupdate and whatever needed (IMHO),
> via
> latest fink-commander (5.5).
Fink Commander's version is completely immaterial--it runs the
command-line tools.
After new packages show up in unstable column of
> the list:
>
> pidgin compilation fails on libgupnp-id (reports about 50 dependencies in
> unstable)
>
pidgin isn't relevant. The only thing that matters is that libgupnp-igd
is failing--the fact that you want pidgin eventually doesn't change the
build.
> libgupnp-dev and libgupnp-shlibs are already installed (and no others from
> the
> same group of libgupnp )
>
completely separate packages.
> when trying to compile libgupnp-igd_0.1.6-5 , it leads to the following error
>
> >>>>>>>>>>
>
> /bin/sh ../libtool --tag=CC --mode=link gcc -Os -DNO_IMPORT_PYGOBJECT
> `python-config --libs` -module -avoid-version -L/sw/lib/python2.6/config
> -L/sw/lib -o igd.la -rpath /sw/lib/python2.7/site-packages/gupnp/
> pygupnp-igd-module.lo pygupnp-igd.lo -L/sw/lib -lgobject-2.0 -lglib-2.0
> -lintl
> ../libgupnp-igd/libgupnp-igd-1.0.la
That looks really bad. It's mixing python26 and python27 stuff.
> libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o .libs/igd.so -bundle
> .libs/pygupnp-igd-module.o .libs/pygupnp-igd.o -ldl -lpython2.7
> -L/sw/lib/python2.6/config -L/sw/lib
> ../libgupnp-igd/.libs/libgupnp-igd-1.0.dylib /sw/lib/libgupnp-1.0.dylib
> /sw/lib/libgssdp-1.0.dylib /sw/lib/libxml2.dylib /sw/lib/libsoup-2.4.dylib
> /sw/lib/libgio-2.0.dylib /sw/lib/libgobject-2.0.dylib
> /sw/lib/libgmodule-2.0.dylib /sw/lib/libgthread-2.0.dylib
> /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib -Wl,-framework
> -Wl,CoreFoundation
> ld: library not found for -lpython2.7
> collect2: ld returned 1 exit status
> make[3]: *** [igd.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> ### execution of make failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-libgupnp-igd-0.1.6-5
> (Reading database ... 95128 files and directories currently installed.)
> Removing fink-buildlock-libgupnp-igd-0.1.6-5 ...
> Failed: phase compiling: libgupnp-igd-0.1.6-5 failed
>
>
> >>>>>>>>>>
>
> However, python 2.7 was correctly installed during previous compilation
> attempt
> (python, python27 and its shlibs). Other versions of python are reported as
> installed as well.
>
> On retry, about 40 packages have been installed on first compilation attempt,
> the missing ones are:
>
> farsight2 farsight2-shlibs libgupnp-igd libgupnp-igd-shlibs libnice
> libnice-shlibs libpurple-shlibs pidgin-shlibs
>
>
> Any idea of what to check for ?
> Thanks
>
> Massimo Coppola
>
>
>
The package appears to try to pick up the first 'python' in the PATH.
If you have fink's 'python' pointing to python2.7, which is your case,
you get:
@@ -196,11 +196,11 @@
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... /sw/bin/gtkdoc-check
checking for GTest... yes
- -checking for python... /sw/bin/python
- -checking for python version... 2.7
+checking for python... /usr/bin/python
+checking for python version... 2.5
checking for python platform... darwin
- -checking for python script directory...
${prefix}/lib/python2.7/site-packages
- -checking for python extension module directory...
${exec_prefix}/lib/python2.7/site-packages
+checking for python script directory... /Library/Python/2.5/site-packages
+checking for python extension module directory...
/Library/Python/2.5/site-packages
checking for headers required to compile python extensions... found
checking for PYGUPNP_IGD... yes
checking for PYCODEGEN... yes
@@ -264,36 +264,156 @@
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies.
make all-am
- -/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
- -I.. -I. -I.. -DDATADIR=\""/sw/share"\" -I/sw/include/pygtk-2.0
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/python2.7 -I/sw/include/python2.7 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/gupnp-1.0
- -I/sw/include/gssdp-1.0 -I/sw/include/libxml2 -I/sw/include
- -I/sw/include/libsoup-2.4 -I/sw/include -Os -DNO_IMPORT_PYGOBJECT -c
- -o pygupnp-igd-module.lo pygupnp-igd-module.c
- -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/python2.7
- -I/sw/include/python2.7 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/gupnp-1.0
- -I/sw/include/gssdp-1.0 -I/sw/include/libxml2 -I/sw/include
- -I/sw/include/libsoup-2.4 -I/sw/include -Os -DNO_IMPORT_PYGOBJECT -c
pygupnp-igd-module.c -fno-common -DPIC -o .libs/pygupnp-igd-module.o
- -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/python2.7
- -I/sw/include/python2.7 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/gupnp-1.0
- -I/sw/include/gssdp-1.0 -I/sw/include/libxml2 -I/sw/include
- -I/sw/include/libsoup-2.4 -I/sw/include -Os -DNO_IMPORT_PYGOBJECT -c
pygupnp-igd-module.c -o pygupnp-igd-module.o >/dev/null 2>&1
- -/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
- -I.. -I. -I.. -DDATADIR=\""/sw/share"\" -I/sw/include/pygtk-2.0
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/python2.7 -I/sw/include/python2.7 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/gupnp-1.0
- -I/sw/include/gssdp-1.0 -I/sw/include/libxml2 -I/sw/include
- -I/sw/include/libsoup-2.4 -I/sw/include -Os -DNO_IMPORT_PYGOBJECT -c
- -o pygupnp-igd.lo pygupnp-igd.c
- -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/python2.7
- -I/sw/include/python2.7 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/gupnp-1.0
- -I/sw/include/gssdp-1.0 -I/sw/include/libxml2 -I/sw/include
- -I/sw/include/libsoup-2.4 -I/sw/include -Os -DNO_IMPORT_PYGOBJECT -c
pygupnp-igd.c -fno-common -DPIC -o .libs/pygupnp-igd.o
- -libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/python2.7
- -I/sw/include/python2.7 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include -I/sw/include/gupnp-1.0
- -I/sw/include/gssdp-1.0 -I/sw/include/libxml2 -I/sw/include
- -I/sw/include/libsoup-2.4 -I/sw/include -Os -DNO_IMPORT_PYGOBJECT -c
pygupnp-igd.c -o pygupnp-igd.o >/dev/null 2>&1
- -/bin/sh ../libtool --tag=CC --mode=link gcc -Os
- -DNO_IMPORT_PYGOBJECT `python-config --libs` -module -avoid-version
- -L/sw/lib/python2.6/config -L/sw/lib -o igd.la -rpath
/sw/lib/python2.7/site-packages/gupnp/ pygupnp-igd-module.lo
pygupnp-igd.lo -L/sw/lib -lgobject-2.0 -lglib-2.0 -lintl
../libgupnp-igd/libgupnp-igd-1.0.la
- -libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o .libs/igd.so
- -bundle .libs/pygupnp-igd-module.o .libs/pygupnp-igd.o -ldl
- -lpython2.7 -L/sw/lib/python2.6/config -L/sw/lib
../libgupnp-igd/.libs/libgupnp-igd-1.0.dylib /sw/lib/libgupnp-1.0.dylib
/sw/lib/libgssdp-1.0.dylib /sw/lib/libxml2.dylib
/sw/lib/libsoup-2.4.dylib /sw/lib/libgio-2.0.dylib
/sw/lib/libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib
/sw/lib/libgthread-2.0.dylib /sw/lib/libglib-2.0.dylib
/sw/lib/libintl.dylib -Wl,-framework -Wl,CoreFoundation
- -ld: library not found for -lpython2.7
- -collect2: ld returned 1 exit status
- -make[3]: *** [igd.la] Error 1
- -make[2]: *** [all] Error 2
- -make[1]: *** [all-recursive] Error 1
- -make: *** [all] Error 2
- -### execution of make failed, exit code 2
If the system's python is 'python', you get:
+/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
- -I.. -I. -I.. -DDATADIR=\""/sw/share"\" -I/sw/include/pygtk-2.0
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/gupnp-1.0 -I/sw/include/gssdp-1.0 -I/sw/include/libxml2
- -I/sw/include -I/sw/include/libsoup-2.4 -I/sw/include -Os
- -DNO_IMPORT_PYGOBJECT -c -o pygupnp-igd-module.lo pygupnp-igd-module.c
+libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/gupnp-1.0 -I/sw/include/gssdp-1.0 -I/sw/include/libxml2
- -I/sw/include -I/sw/include/libsoup-2.4 -I/sw/include -Os
- -DNO_IMPORT_PYGOBJECT -c pygupnp-igd-module.c -fno-common -DPIC -o
.libs/pygupnp-igd-module.o
+libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/gupnp-1.0 -I/sw/include/gssdp-1.0 -I/sw/include/libxml2
- -I/sw/include -I/sw/include/libsoup-2.4 -I/sw/include -Os
- -DNO_IMPORT_PYGOBJECT -c pygupnp-igd-module.c -o pygupnp-igd-module.o
>/dev/null 2>&1
+/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
- -I.. -I. -I.. -DDATADIR=\""/sw/share"\" -I/sw/include/pygtk-2.0
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/gupnp-1.0 -I/sw/include/gssdp-1.0 -I/sw/include/libxml2
- -I/sw/include -I/sw/include/libsoup-2.4 -I/sw/include -Os
- -DNO_IMPORT_PYGOBJECT -c -o pygupnp-igd.lo pygupnp-igd.c
+libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/gupnp-1.0 -I/sw/include/gssdp-1.0 -I/sw/include/libxml2
- -I/sw/include -I/sw/include/libsoup-2.4 -I/sw/include -Os
- -DNO_IMPORT_PYGOBJECT -c pygupnp-igd.c -fno-common -DPIC -o
.libs/pygupnp-igd.o
+libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..
- -DDATADIR=\"/sw/share\" -I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
- -I/sw/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
- -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
- -I/sw/include/gupnp-1.0 -I/sw/include/gssdp-1.0 -I/sw/include/libxml2
- -I/sw/include -I/sw/include/libsoup-2.4 -I/sw/include -Os
- -DNO_IMPORT_PYGOBJECT -c pygupnp-igd.c -o pygupnp-igd.o >/dev/null 2>&1
+/bin/sh ../libtool --tag=CC --mode=link gcc -Os
- -DNO_IMPORT_PYGOBJECT `python-config --libs` -module -avoid-version
- -L/sw/lib/python2.6/config -L/sw/lib -o igd.la -rpath
/Library/Python/2.5/site-packages/gupnp/ pygupnp-igd-module.lo
pygupnp-igd.lo -L/sw/lib -lgobject-2.0 -lglib-2.0 -lintl
../libgupnp-igd/libgupnp-igd-1.0.la
+libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o .libs/igd.so
- -bundle .libs/pygupnp-igd-module.o .libs/pygupnp-igd.o -ldl
- -lpython2.5 -L/sw/lib/python2.6/config -L/sw/lib
../libgupnp-igd/.libs/libgupnp-igd-1.0.dylib /sw/lib/libgupnp-1.0.dylib
/sw/lib/libgssdp-1.0.dylib /sw/lib/libxml2.dylib
/sw/lib/libsoup-2.4.dylib /sw/lib/libgio-2.0.dylib
/sw/lib/libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib
/sw/lib/libgthread-2.0.dylib /sw/lib/libglib-2.0.dylib
/sw/lib/libintl.dylib
I'm not sure whether mixing Fink's and Apple's python stuff is a good
idea or not. A user workaround for Massimo would be to do the following:
fink install python-1:2.6.5-3
which will make 'python' point to python2.6. For the maintainer: I
wouldn't necessarily suggest a strictly versioned dependency on
"python", because that may lead to grief later.
- --
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxBuR8ACgkQB8UpO3rKjQ/KnACfZq9X508y7h3pjw1Jo69mMmVo
mBYAnjNawQgnKXZhQoJyPTcnYHvQUduW
=O4nM
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users