Steve Youngs <youngs(a)xemacs.org> writes:
 |--==> "SY" == Steve Youngs <youngs(a)xemacs.org>
writes:
 
 |--==> "SY" == Steve Youngs <youngs(a)xemacs.org> writes:
 |--==> "VS" == Vin Shelton <acs(a)xemacs.org> writes:
   VS> It turns out that it works if you build with a mule-enabled XEmacs.  I
   VS> don't think that's a viable solution, though.
 
   SY> OK, I'll install a non-Mule XEmacs and see if I can't track it down.
   SY> Have you had any luck? (I don't want to duplicate effort).
 
 Found the problem.  There was a '(' in a string that needed to be
 escaped.  Patch on it's way.
 
 BTW, Vin, thanks very much for bringing this to my attention. 
I'm afraid some problem is still there:
xemacs -no-autoloads -batch  -l /opt/build/xemacs-packages-2001-12-22/package-compile.el
-- mail-lib xemacs-devel xemacs-base cc-mode ps-print-nomule fsf-compat edit-utils ediff
emerge efs vc speedbar dired -- php-mode.el
Loading /usr/local/xemacs/lib/xemacs-21.4.6/lisp/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/dired/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/speedbar/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/vc/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/efs/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/emerge/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/ediff/auto-autoloads...
Loading
/opt/build/xemacs-packages-2001-12-22/xemacs-packages/edit-utils/auto-autoloads...
Loading
/opt/build/xemacs-packages-2001-12-22/xemacs-packages/fsf-compat/auto-autoloads...
Loading
/opt/build/xemacs-packages-2001-12-22/xemacs-packages/ps-print-nomule/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/cc-mode/auto-autoloads...
Loading
/opt/build/xemacs-packages-2001-12-22/xemacs-packages/xemacs-base/auto-autoloads...
Loading
/opt/build/xemacs-packages-2001-12-22/xemacs-packages/xemacs-devel/auto-autoloads...
Loading /opt/build/xemacs-packages-2001-12-22/xemacs-packages/mail-lib/auto-autoloads...
Compiling /opt/build/xemacs-packages-2001-12-22/xemacs-packages/prog-modes/php-mode.el...
While compiling php-mode in file
/opt/build/xemacs-packages-2001-12-22/xemacs-packages/prog-modes/php-mode.el:
  ** reference to free variable cc-imenu-php-generic-expression
While compiling toplevel forms:
  ** reference to free variable php-mode-map
  ** reference to free variable php-mode-abbrev-table
  !! End of file or stream ((#<buffer " *Compiler Input*">))  
backtrace(nil t)
  # bind (error-info)
  byte-compile-report-error((end-of-file #<buffer " *Compiler Input*">))
  # bind (error-info)
  #<compiled-function (error-info) "...(4)" [error-info
byte-compile-report-error] 2>((end-of-file #<buffer " *Compiler
Input*">))
  read(#<buffer " *Compiler Input*">)
  # (unwind-protect ...)
  #<compiled-function nil "...(43)" [byte-compile-unresolved-functions
byte-compile-inbuffer 1 " 	\n" nil looking-at ";" byte-compile-file-form read byte-compile-flush-pending
byte-compile-warn-about-unresolved-functions] 3>()
  # (unwind-protect ...)
  call-with-condition-handler(#<compiled-function (error-info) "...(4)"
[error-info byte-compile-report-error] 2> #<compiled-function nil
"...(43)" [byte-compile-unresolved-functions byte-compile-inbuffer 1 " 	\n" nil looking-at ";" byte-compile-file-form read byte-compile-flush-pending
byte-compile-warn-about-unresolved-functions] 3>)
  # (unwind-protect ...)
  # bind (byte-compile-warnings-beginning byte-compile-point-max-prev
byte-compile-log-buffer byte-compile-macro-environment byte-compile-function-environment
byte-compile-autoload-environment byte-compile-unresolved-functions
byte-compile-bound-variables byte-compile-free-references byte-compile-free-assignments
byte-compile-verbose byte-optimize byte-compile-emacs19-compatibility byte-compile-dynamic
byte-compile-dynamic-docstrings byte-compile-warnings byte-compile-file-domain
byte-compile-outbuffer float-output-format case-fold-search print-length print-level
byte-compile-constants byte-compile-variables byte-compile-tag-number byte-compile-depth
byte-compile-maxdepth byte-compile-output eval filename byte-compile-inbuffer)
  byte-compile-from-buffer(#<buffer " *Compiler Input*">
"/opt/build/xemacs-packages-2001-12-22/xemacs-packages/prog-modes/php-mode.el")
  # bind (byte-compile-current-file target-file input-buffer output-buffer
byte-compile-dest-file load filename)
  byte-compile-file("php-mode.el")
  byte-code("..." [file byte-compile-file t] 2)
  # (condition-case ... . ((error (byte-code
"ÂÃ!Â!ÂÄ!ÅÆ!«Æ	Ç\"ªÂ	@ÈN®	@!ÉÊ	A\"ÂË!Ç" ... 3))))
  # bind (file)
  batch-byte-compile-1("php-mode.el")
  # bind (error file-to-process)
  batch-byte-compile-one-file()
  # bind (error)
  batch-byte-compile()
  # bind (current-load-list)
  # (unwind-protect ...)
  # bind (load-file-name)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  load-internal("/opt/build/xemacs-packages-2001-12-22/package-compile.el" nil t
nil nil nil)
  # bind (nosuffix nomessage noerror file)
  load("/opt/build/xemacs-packages-2001-12-22/package-compile.el" nil t)
  # bind (file arg)
  command-line-do-load("-l")
  # bind (dir file-count line end-of-options file-p arg tem)
  command-line-1()
  # bind (command-line-args-left)
  command-line()
  # (unwind-protect ...)
  normal-top-level()
  # (condition-case ... . error)
  # (catch top-level ...)
>Error occurred processing php-mode.el:  
End of file or
stream: #<buffer " *Compiler Input*">
Done
make[2]: *** [php-mode.elc] Error 1
make[2]: Leaving directory
`/opt/build/xemacs-packages-2001-12-22/xemacs-packages/prog-modes'
make[1]: *** [prog-modes/bindist.target] Error 2
make[1]: Leaving directory `/opt/build/xemacs-packages-2001-12-22/xemacs-packages'
make: *** [xemacs-packages/bindist.target] Error 2
This is in a 21.4.6 non-mule XEmacs, but 21.4.6 with Mule gets the
same error.  Interestingly enough, if I build the entire package
hierarchy with a mule-enabled XEmacs, I can build the packages
successfully.  One of the autoloads is messed up in some way, I
guess.
I'll try to investigate further as I have time.
  - vin