Opened 12 years ago

Closed 12 years ago

#35909 closed defect (worksforme)

emacs-app @24.2 build error under Mountain Lion (10.8)

Reported by: chalin@… Owned by: humem (humem)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: humem (humem)
Port: emacs-app

Description

I upgraded to Mountain Lion, uninstalled MacPorts, re-installed it. Attempts to build emacs-app @24.2 report an error; hence the build fails. Note that everything that emacs-app depends on was successfully built and installed. The first error reported is:

  image.c:8099:10: fatal error: 'librsvg/rsvg.h' file not found
  #include <librsvg/rsvg.h>

The full emacs-app build log file is attached.

Attachments (1)

main.log (243.2 KB) - added by chalin@… 12 years ago.
emacs-app-build-log-main.log

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by chalin@…

Attachment: main.log added

emacs-app-build-log-main.log

comment:1 Changed 12 years ago by ci42

Cc: hum@… added
Keywords: mountainlion added
Owner: changed from macports-tickets@… to css@…
Port: emacs-app added

Works for me on Lion.

In the future please cc the maintainer and fill in the port field.

comment:2 Changed 12 years ago by humem (humem)

Owner: changed from css@… to hum@…
Status: newassigned

I have built the port successfully on Mountain Lion. I wonder the configuration phase was skipped during your build according to your main log file. Could you try to clean and re-built the port again? In addition, if you deactivate librsvg, then rsvg.h will be not included.

comment:3 in reply to:  2 ; Changed 12 years ago by chalin@…

Replying to hum@…:

... Could you try to clean and re-built the port again? In addition, if you deactivate librsvg, then rsvg.h will be not included.

Here is what I have tried:

  • I uninstalled and then re-installed MacPorts; then attempted to install emacs-app and I get the same error.
  • I then tried cleaning all (vile) ports, then attempted to install emacs-app: same build error.
  • Attempting to deactivate libsvg reported that it was not active (could it be that the dependencies or not being properly computed?).
  • So I installed libsvg, then attempted to build emacs-app: same build error.
  • Deactivated libsvg. Attempt to build emacs-app: same build error.

comment:4 in reply to:  3 Changed 12 years ago by humem (humem)

Replying to chalin@…:

  • I then tried cleaning all (vile) ports, then attempted to install emacs-app: same build error.

If librsvg is installed, I suppose you will find the following output in the configure phase:

:info:configure checking for librsvg-2.0 >= 2.11.0... yes
:info:configure checking RSVG_CFLAGS... -D_REENTRANT -I/opt/local/include/librsvg-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/cairo -I/opt/local/include/libpng14 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2  
:info:configure checking RSVG_LIBS... -L/opt/local/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lglib-2.0 -lintl  

How about doing the following:

$ sudo port uninstall emacs-app
$ sudo port clean emacs-app
$ sudo port deactivate installed
$ sudo port -v install emacs-app

comment:5 Changed 12 years ago by chalin@…

Thanks for the further suggestions. I ended up trying this first and it worked:

  • Un- and re-install MacPorts.
  • Install librsvg.
  • Install emacs-app.

I suppose that the original problem was then due to an inaccurate computation of dependencies (or are dependent ports identified manually)?

comment:6 in reply to:  5 Changed 12 years ago by humem (humem)

Resolution: worksforme
Status: assignedclosed

I suppose that the original problem was then due to an inaccurate computation of dependencies (or are dependent ports identified manually)?

Actually, I have no idea what caused your problem. Anyway, please feel free to report any problems in the future. Thanks.

Note: See TracTickets for help on using tickets.