From mboxrd@z Thu Jan  1 00:00:00 1970
From: Nick Dokos <nicholas.dokos@hp.com>
Subject: Re: Compilation problem
Date: Mon, 10 Sep 2012 15:52:48 -0400
Message-ID: <5986.1347306768@alphaville.americas.hpqcorp.net>
References: <m2pq5u2h8h.fsf@top.irisa.fr>
Reply-To: nicholas.dokos@hp.com
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:60993)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nicholas.dokos@hp.com>) id 1TBA2T-0003eC-Cw
	for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 15:53:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nicholas.dokos@hp.com>) id 1TBA2P-00057d-4E
	for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 15:52:57 -0400
Received: from g4t0015.houston.hp.com ([15.201.24.18]:16287)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nicholas.dokos@hp.com>) id 1TBA2O-00057T-TO
	for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 15:52:53 -0400
In-Reply-To: Message from Alan Schmitt <alan.schmitt@polytechnique.org>
	of "Mon, 10 Sep 2012 14:29:50 +0200." <m2pq5u2h8h.fsf@top.irisa.fr>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>

Alan Schmitt <alan.schmitt@polytechnique.org> wrote:

> Hello,
> 
> I cannot compile the current version of org-mode (from git): something
> fails during testing:
> 
> make test-dirty
> install -m 755 -d /var/folders/68/fvntfrw92y50gkk_67rkhsfw0000gn/T//tmp-orgtest
> TMPDIR=/var/folders/68/fvntfrw92y50gkk_67rkhsfw0000gn/T//tmp-orgtest /Applications/Emacs.app/Contents/MacOS/Emacs -batch -Q  --eval '(add-to-list '"'"'load-path "./lisp")' --eval '(add-to-list '"'"'load-path "./testing")'  -l org-install.el -l testing/org-test.el --eval '(require '"'"'ob-awk)' --eval '(require '"'"'ob-C)' --eval '(require '"'"'ob-fortran)' --eval '(require '"'"'ob-maxima)' --eval '(require '"'"'ob-lilypond)' --eval '(require '"'"'ob-octave)' --eval '(require '"'"'ob-python)' --eval '(require '"'"'ob-sh)'  --eval '(setq org-confirm-babel-evaluate nil)' -f org-test-run-batch-tests
> Symbol's function definition is void: org-export-define-backend
> make[1]: *** [test-dirty] Error 255
> 
> Here is my local.mk
> 
> EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs
> prefix=/Users/schmitta/.emacs.d/vendor
> SUDO =
> ORG_ADD_CONTRIB=org-checklist org-export org-e-*
> up2::
> 
> Is this a (known) bug?
> 

I can reproduce this. AFAIK, it's new - I stripped down the command line above and kept
getting the error until the -l org-install.el, so it's clearly something in org-install.el.
I modified the function org-make-org-install in org-fixup.el to add

(eval-when-compile (require 'org-export))

at the top of org-install.el and that did make the error go away, but Achim has the
last word on whether that's a good solution or not (probably needs to be conditional
on ORG_ADD_CONTRIB).

Even with that, ``make test'' failed later on with

,----
| ...
| OVERVIEW
| OVERVIEW
| Symbol's function definition is void: org-id-update-id-locations
| make: *** [test] Error 255
`----

I haven't chased that one down.

Nick