Opened 12 years ago

Closed 12 years ago

#36302 closed defect (invalid)

gtkmm: cannot find the library `/opt/local/lib/libXrender.la' or unhandled argument `/opt/local/lib/libXrender.la'

Reported by: lau.hu.b@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: gtkmm

Description

I installed MacPorts on my machine (Lion 10.7.5).

I use MacPorts to install Inkscape but this fail because of gtkmm build error.

After cleaning up, I ran:

sudo port -v install gtkmm

And the log gave:

--->  Computing dependencies for gtkmm.--->  Building gtkmmmake: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2'
/usr/bin/make  all-recursive
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2'
Making all in tools
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2/tools'
/bin/sh ../libtool  --tag=CXX   --mode=link /usr/bin/clang++ -Wall -pipe -O2 -arch x86_64 -no-undefined -avoid-version -L/opt/local/lib -arch x86_64 -o extra_defs_gen/generate_extra_defs extra_defs_gen/generate_defs_gtk.o -framework Cocoa -L/opt/local/lib -latkmm-1.6 -lgiomm-2.4 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgtk-quartz-2.0 -lgdk-quartz-2.0 -latk-1.0 -lpangocairo-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lcairo -lgobject-2.0 -lglib-2.0 -lintl   -lglibmm_generate_extra_defs-2.4 
libtool: link: cannot find the library `/opt/local/lib/libXrender.la' or unhandled argument `/opt/local/lib/libXrender.la'
make[2]: *** [extra_defs_gen/generate_extra_defs] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/work/gtkmm-2.24.2" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: org.macports.build for port gtkmm returned: command execution failed
Warning: targets not executed for gtkmm: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port gtkmm for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_gtkmm/gtkmm/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gtkmm failed

Apparently, this is the libtool that is not installed although it seems to be correctly installed (I installed it previously to gtkmm).

My MacPorts version is up-to-date (I installed it yesterday and performed today an update).

Attachments (1)

main.log (1.4 KB) - added by lau.hu.b@… 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: gtkmm removed
Owner: changed from macports-tickets@… to devans@…
Port: gtkmm added
Summary: gtkmm does not compilegtkmm: cannot find the library `/opt/local/lib/libXrender.la' or unhandled argument `/opt/local/lib/libXrender.la'

This was not a clean attempt. Please "sudo port clean gtkmm" and then try again, and attach the main.log if it fails again.

Changed 12 years ago by lau.hu.b@…

Attachment: main.log added

comment:2 Changed 12 years ago by lau.hu.b@…

Thanks for your answer

OK, the error is the same after a clean or after I re-run the installation. I attached the main.log file

My XCode version is 4.5

comment:3 Changed 12 years ago by lau.hu.b@…

Please, if anybody can help...

comment:4 Changed 12 years ago by jmroot (Joshua Root)

You haven't attached a complete main.log for gtkmm. The log you attached just shows you trying to uninstall libtool.

Do you in fact have /opt/local/lib/libXrender.la? It should be provided by the xrender port, which is a dependency of gtkmm.

comment:5 Changed 12 years ago by lau.hu.b@…

Sorry, I actually uninstalled all MacPorts then re-install it. This solved this issue. You can close it.

Thank you

comment:6 Changed 12 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.