RPM Community Forums

Mailing List Message of <rpm-devel>

Build failures with rpm-5.2.0

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 06 May 2009 - 20:56:42 CEST
Message-id: <38C27D23-7A5D-46E6-9188-888538C8BA30@mac.com>
There's this build failure with embedded javascript
that's not yet handled in rpm/js/src/Makefile.am:

In file included from jsapi.c:49:
jstypes.h:249:66: error: jsautocfg.h: No such file or directory
jstypes.h:267:3: error: #error No suitable type for JSInt8/JSUint8
jstypes.h:280:3: error: #error No suitable type for JSInt16/JSUint16
jstypes.h:300:3: error: #error No suitable type for JSInt32/JSUint32
In file included from jsapi.c:49:

The issue is that 2 programs need to be built to generate
2 include files before libjs_la_SOURCES are built.

I've tried a couple of approaches without success so far,
the latest being

[jbj@fedora10 wdj52]$ cvs diff js/src/Makefile.am
Index: js/src/Makefile.am
===================================================================
RCS file: /v/rpm/cvs/js/src/Makefile.am,v
retrieving revision 1.1
diff -u -b -B -w -p -r1.1 Makefile.am
--- js/src/Makefile.am	2 May 2009 20:06:29 -0000	1.1
+++ js/src/Makefile.am	6 May 2009 18:54:00 -0000
@@ -37,6 +37,7 @@ libjs_la_SOURCES = \
  	prmjtime.c \
  	jsfile.c
  libjs_la_CFLAGS = -DXP_UNIX
+libjs_la_DEPENDENCIES = jsautocfg.h jsautokw.h

  jscpucfg_SOURCES = jscpucfg.c


Meanwhile, one has to do this workaround manually
	cd js/src
	make jsautocfg.h jsautokw.h

hth

73 de Jeff
Received on Wed May 6 20:57:06 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.