Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>help with installing py-gnome (darwinports)

help with installing py-gnome (darwinports)

chefkww
05-10-2005, 10:03 PM
Help this newcomer. I am trying to install the port py-gnome thru darwinports everthing was going fine until it got to port libzvt.
This error message was given.

---> Building libzvt with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_libzvt/work/libzvt-2.0.1" && make all" returned error 2
Command output: make all-recursive
Making all in libzvt
/bin/sh ../libtool --mode=link gcc -g -O2 -o zterm zterm.o libzvt-2.0.la -L/opt/local/lib -lglib-2.0 -lintl -liconv -lgmodule-2.0 -lgtk-x11-2.0 -lart_lgpl_2
gcc -g -O2 -o .libs/zterm zterm.o -L./.libs -lzvt-2.0 -L/opt/local/lib -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lc -lgtk-x11-2.0 -lart_lgpl_2 -lm
ld: warning prebinding disabled because dependent library: /opt/local/lib/libzvt-2.0.0.dylib is not prebound
ld: zterm.o illegal reference to symbol: _g_signal_connect_data defined in indirectly referenced dynamic library /opt/local/lib/libgobject-2.0.0.dylib
ld: zterm.o illegal reference to symbol: _gdk_window_get_pointer defined in indirectly referenced dynamic library /opt/local/lib/libgdk-x11-2.0.0.dylib
ld: warning multiple definitions of symbol _locale_charset
/opt/local/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/opt/local/lib/libintl.dylib(localcharset.o) definition of _locale_charset
ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _locale_charset used from dynamic library /opt/local/lib/libiconv.dylib(localcharset.o) not from earlier dynamic library /opt/local/lib/libintl.3.dylib(localcharset.o)
make[2]: *** [zterm] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

Error: The following dependencies failed to build: libzvt nautilus eel librsvg metacity gnome-applets libexif py-gtk2

I have looked everywhere online for similar situations in forums, but can't find really anything to help. Can anyone help?
I have a IMac G5 1.8 / 512 RAM

Thank you.

anaxamander
05-11-2005, 05:58 AM
Most gtk2 programs now fail to compile under 10.3 and 10.4 with darwinports - somebody must have screwed up. You are not alone.

Your compile of zterm is calling for symbols from libgobject and libgdk, and they aren't being included in the linker flags. I don't have libzvt installed, so this may need refinement. Your errors were:

ld: zterm.o illegal reference to symbol: _g_signal_connect_data defined in indirectly referenced dynamic library /opt/local/lib/libgobject-2.0.0.dylib
ld: zterm.o illegal reference to symbol: _gdk_window_get_pointer defined in indirectly referenced dynamic library /opt/local/lib/libgdk-x11-2.0.0.dylib

You can add:

LDFLAGS="-L/opt/local/lib -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lc -lgtk-x11-2.0 -lart_lgpl_2 -lm -lgobject-2.0 -lgdk-x11-2.0"

to the configure.env line in the libzvt portfile. So the configure.env line would look like:

configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" LDFLAGS="-L/opt/local/lib -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lc -lgtk-x11-2.0 -lart_lgpl_2 -lm -lgobject-2.0 -lgdk-x11-2.0"

That might not include all the libraries needed - you may need to add more as other things compile. You get the name of the library from looking that the library name (say libgobject-2.0.0.dylib) and changing the lib in front to "-l" and stripping off ".dylib" and some of the numbers. Which numbers depends. Look in your /opt/local/lib folder to see what you have there. You want to be a little more generic because when it come time to upgrade a few months down the line, you don't want to be linked against an ultra-specific version of the library.

Note: I'm a bit more brutish in fixing these problems, because I forget, but you may have a good number of portfiles to change. Integrating these LDFLAGS with portfiles that have existing LDFLAGS can get annoying. It might be best to set up a localports folder, edit /opt/local/etc/ports/sources.conf and adding your localports folder before the standard dports folder as described in the README file; then copy the py-gtk folder/portfile to your localports folder and issue a portindex command. I see they already have you on the "buried folder plan". Because why? It builds better 10 folders down? Apparently not... Thats like 93 characters in a folder name that they created themselves! Gee, I think their high colonic treatments are washing out some gray matter along the way. A touch too deep & thorough, I do opine.

chefkww
05-11-2005, 04:22 PM
Thanks that worked, but other problems now arose with a different port.


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

How to set environment variables and path in 10.4?
problem installing Fink
pkg-config & PKG_CONFIG_PATH
Applescript: Hide Process
Mozilla install from dports fails
ssh - don't want to use password
Escaping quotes in Tiger

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics