#1309 closed defect (duplicate)
atk port won't install unless glib2 has already been installed
Reported by: | bugzilla.opendarwin.org@… | Owned by: | mij@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
Change History (4)
comment:1 Changed 21 years ago by bugzilla.opendarwin.org@…
comment:2 Changed 21 years ago by kalou@…
Additionnaly,
I have glib 2.2.3, and ./configure script detects this, but
fails to continue compilation:
* 'pkg-config --modversion glib-2.0' returned 2.2.1, but GLIB (2.2.3) * was found! If pkg-config was correct, then it is best * to remove the old version of GLib. You may also be able to fix the error * by modifying your LD_LIBRARY_PATH enviroment variable, or by editing * /etc/ld.so.conf. Make sure you have run ldconfig if that is * required on your system. * If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH * to point to the correct configuration files no configure: error: * GLIB 2.0.0 or better is required. The latest version of * GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed * but not in the same location as pkg-config add the location of the file * glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
Error: The following dependencies failed to build: eel gail gnome-session gnome-panel libwnck gnome-themes gtk-engines2 gtk2 atk pango Xft2 gnome-desktop libgnomeui gnome-icon-theme libbonoboui libgnomecanvas libglade2 libgnome gnome-vfs gnome-mime-data gconf libbonobo orbit2 popt libxslt docbook-xml libart_lgpl
comment:3 Changed 21 years ago by kalou@…
removing -L/opt/local/lib from LDFLAGS in shell command
"cd "/opt/darwinports-cvs/dports/devel/atk/work/atk-1.4.1" && LDFLAGS="-L/opt/local/lib -
no-undefined" CPPFLAGS="-I/opt/local/include -no-cpp-precomp" CFLAGS="-O3 -funroll-loops -fstrict-aliasing" ./configure --prefix=/opt/local --disable-gtk-doc"
fixes the compilation problem for atk here.
configure script probably founds my fink installed glib2:
bash-2.05a$ dpkg -l | grep glib2 ii glib2 2.2.1-3 Handy library of utility functions ii glib2-dev 2.2.1-3 Handy library of utility functions ii glib2-shlibs 2.2.1-3 Handy library of utility functions
Hope this helps, stopping comments, as they don't seems to be directly related to the bug report.
Feel free to contact me, I don't know much yet about darwinports, but learning :)
comment:4 Changed 21 years ago by toby@…
Resolution: | → duplicate |
---|---|
Status: | new → closed |
* This bug has been marked as a duplicate of 1667 *
there appears to be some sort of dependency problem with the atk port. === [beejsTiBook:opendarwin.org/darwinports/base] beej% sudo port install ethereal Portfile changed since last build; discarding previous state. ---> Fetching libpng ---> Attempting to fetch libpng-1.2.5.tar.bz2 from http://us.dl.sourceforge.net/libpng ---> Verifying checksum for libpng ---> Extracting libpng ---> Configuring libpng ---> Building libpng with target all ---> Staging libpng into destroot ---> Installing libpng ---> Fetching libungif ---> Attempting to fetch libungif-4.1.0b1.tar.gz from ftp://ftp.ayamura.org/pub/graphics/ ---> Verifying checksum for libungif ---> Extracting libungif ---> Configuring libungif ---> Building libungif with target all ---> Staging libungif into destroot ---> Installing libungif ---> Fetching atk ---> Attempting to fetch atk-1.4.1.tar.bz2 from ftp://ftp.gnome.org/pub/gnome/sources/atk/1.4/ ---> Verifying checksum for atk ---> Extracting atk ---> Configuring atk Error: Target com.apple.configure returned: configure failure: shell command "cd "/Users/Shared/software/opendarwin.org/darwinports/dports/devel/atk/work/atk-1.4.1" && LDFLAGS="-L/opt/local/lib -no-undefined" CPPFLAGS="-I/opt/local/include -no-cpp-precomp" CFLAGS="-O3 -funroll-loops -fstrict-aliasing" ./configure --prefix=/opt/local --disable-gtk-doc" returned error 1 Command output: checking whether stripping libraries is possible... yes checking dynamic linker characteristics... darwin7.0.0 dyld checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... darwin7.0.0 dyld appending configuration tag "F77" to libtool checking for Win32... no checking for aclocal flags... checking for pkg-config... /opt/local/bin/pkg-config checking for GLIB - version >= 2.0.0... no * Could not run GLIB test program, checking why... * The test program failed to compile or link. See the file config.log for the * exact error that occured. This usually means GLIB is incorrectly installed. configure: error: * GLIB 2.0.0 or better is required. The latest version of * GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed * but not in the same location as pkg-config add the location of the file * glib-2.0.pc to the environment variable PKG_CONFIG_PATH. Error: The following dependencies failed to build: gtk2 atk pango Xft2 fontconfig freetype expat xrender render === a manual "sudo install glib2" got me up and running again. i suppose this means that port is having trouble figuring out dependencies? i see the following line in dports/devel/atk/Portfile: -- depends_lib lib:libglib.2:glib2 --