[MacPorts] #44039: gnome-libs doesn't find Berkeley DB during configure
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Keywords: gnome-libs, Berkeley DB | Port: gnome-libs -------------------------------------+-------------------------------- Tried to install gnome-libs on MBP running 10.9.3. Installation fails during configuration due to being unable to find db.h (Berekeley db). Command-line tools are correctly installed and /usr/include/db.h is present. Problem also occurs on a system running 10.7.5, but not on a G4 running 10.5.8. (Compilation fails on 10.5.8 due to code not being updated for libpng >= 1.4.) -- Ticket URL: <https://trac.macports.org/ticket/44039> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Changes (by jmr@…): * keywords: gnome-libs, Berkeley DB => Comment: Please attach the config.log. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by jruschme@…): That makes more sense... it's trying to use /lib/cpp (which doesn't exist) for the test. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by jmr@…): Clang is warning about an unused argument, and configure seems to be interpreting any output to stderr as failure. Try removing the line {{{ configure.cppflags-append "-L${prefix}/lib” }}} from the portfile. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by devans@…): Attach is a patch to fix the configuration issues, works for me on 10.8. However, build now fails (not surprisingly) due to API problems with current version on libpng. Attaching log for failed build. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by devans@…): Attached patch revised to include additional dependencies and libpng API fixes. Build now fails with db46 API issues. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by devans@…): Looks like it wants db185 compatibility mode. This means that db46 needs to be rebuilt with --enable-compat185 option. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by devans@…): Patch attached that adds a +compat185 variant to db46. To install db46 with db185 compatibility mode (after applying this patch) use {{{ sudo port install db46 +compat185 }}} This fixes the db46 API issues but fails again during linking due to a missing -ldb {{{ /usr/bin/clang -pipe -Os -fstrict-aliasing -funroll-loops -arch x86_64 -Wall -Wunused -Wl,-headerpad_max_install_names -arch x86_64 -o .libs /gnome-dump-metadata gnome-dump.o -Wl,-framework -Wl,CoreAudio -L/opt/local/lib -L/opt/local/lib/db46 -L./.libs -lgnome -L../support/.libs -lgnomesupport -lesd -lglib -lintl -lz -lm Undefined symbols for architecture x86_64: "___db185_open", referenced from: _main in gnome-dump.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by devans@…): gnome-libs patch updated with fix for link error. Now more libpng API issues. Are we having fun yet? Will get back to this later today. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by devans@…): Patch updated with addition libpng fixes, missing dependency and adds check for db46 +compatdb185 variant before configuration. Fix to add this variant to db46 committed in r121187. With these final changes gnome-info builds for me. Note that gnome-libs does not provide a pkg-config file so you make have to include some or all of the following include paths to get your project to build {{{ configure.cppflags-append -I${prefix}/include/gnome-1.0 \ -I${prefix}/lib/gnome-libs/include \ -I${prefix}/include/gtk-1.2 \ -I${prefix}/include/glib-1.2 \ -I${prefix}/lib/glib/include }}} Please test with your app and let me know if this works for you or there are still some problems. If it does work, I'll commit the changes to the port. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+-------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+-------------------------------- Comment (by egall@…):
(Compilation fails on 10.5.8 due to code not being updated for libpng >= 1.4.)
I think that this might be the one I ran into on 10.6.8, which I fixed in my local gnome-libs Portfile by hacking the `autoheader`-generated config header. Then again I made some other changes as well, so it might have been something else, I forget... -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+---------------------- Reporter: jruschme@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+---------------------- Changes (by devans@…): * owner: macports-tickets@… => devans@… * status: new => assigned Comment: Replying to [comment:10 egall@…]:
(Compilation fails on 10.5.8 due to code not being updated for libpng = 1.4.)
I think that this might be the one I ran into on 10.6.8, which I fixed in my local gnome-libs Portfile by hacking the `autoheader`-generated config header. Then again I made some other changes as well, so it might have been something else, I forget...
Not sure I understand your comment. The patches attached (but not committed yet) fix the issue of libpng >= 1.4. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+---------------------- Reporter: jruschme@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: gnome-libs | -------------------------+---------------------- Comment (by egall@…): Replying to [comment:12 devans@…]:
Replying to [comment:10 egall@…]:
(Compilation fails on 10.5.8 due to code not being updated for libpng >= 1.4.)
I think that this might be the one I ran into on 10.6.8, which I fixed in my local gnome-libs Portfile by hacking the `autoheader`-generated config header. Then again I made some other changes as well, so it might have been something else, I forget...
Not sure I understand your comment. The patches attached (but not committed yet) fix the issue of libpng >= 1.4.
Sorry, I was just responding to the OP; I hadn't read the posts in between yet... anyways, I see them now, so sorry for the noise... -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#44039: gnome-libs doesn't find Berkeley DB during configure -------------------------+---------------------- Reporter: jruschme@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: gnome-libs | -------------------------+---------------------- Changes (by devans@…): * status: assigned => closed * version: 2.3.0 => * resolution: => fixed Comment: Build fixes committed in r121425. -- Ticket URL: <https://trac.macports.org/ticket/44039#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts