BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001182 [buildroot] Architecture Specific minor always 01-28-07 05:53 02-12-07 05:42
Reporter jcoppens View Status public  
Assigned To buildroot
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0001182: MTD: Missing definition of jint_16/jint_32 svn (17567)
Description Definition of jint_16 and _32 is missing in flash_eraseall.c.
(See error message below)

I tried to add #include "jffs2.h", but that produces duplicate
definitions.
(second part - below)
Additional Information /usr/local/src/internet/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc -I/usr/local/src/internet/buildroot/toolchain_build_mipsel/linux/include -I/usr/local/src/internet/buildroot/build_mipsel/mtd_orig/include -Os -pipe -g -c -o flash_eraseall.o flash_eraseall.c -g -Wp,-MD,.flash_eraseall.c.dep
flash_eraseall.c: In function 'main':
flash_eraseall.c:84: error: 'jint16_t' undeclared (first use in this function)
flash_eraseall.c:84: error: (Each undeclared identifier is reported only once
flash_eraseall.c:84: error: for each function it appears in.)
flash_eraseall.c:84: error: expected ')' before '{' token
flash_eraseall.c:85: error: expected ')' before '{' token
flash_eraseall.c:87: error: 'jint32_t' undeclared (first use in this function)
flash_eraseall.c:87: error: expected ')' before '{' token
flash_eraseall.c:124: error: expected ')' before '{' token
flash_eraseall.c:126: error: expected ')' before '{' token
make[1]: *** [flash_eraseall.o] Error 1
make[1]: Leaving directory `/usr/local/src/internet/buildroot/build_mipsel/mtd_orig/util'

addding #include "jffs2.h":

/usr/local/src/internet/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-uclibc-gcc -I/usr/local/src/internet/buildroot/toolchain_build_mipsel/linux/include -I/usr/local/src/internet/buildroot/build_mipsel/mtd_orig/include -Os -pipe -g -c -o flash_eraseall.o flash_eraseall.c -g -Wp,-MD,.flash_eraseall.c.dep
In file included from /usr/local/src/internet/buildroot/build_mipsel/mtd_orig/include/mtd/jffs2-user.h:11,
                 from flash_eraseall.c:44:
/usr/local/src/internet/buildroot/toolchain_build_mipsel/linux/include/linux/jffs2.h:47:1: warning: "KSAMTIB_CIGAM_2SFFJ" redefined
In file included from flash_eraseall.c:42:
jffs3.h:27:1: warning: this is the location of the previous definition
flash_eraseall.c: In function 'main':
flash_eraseall.c:85: error: incompatible types in assignment
flash_eraseall.c:86: error: incompatible types in assignment
flash_eraseall.c:88: error: incompatible types in assignment
flash_eraseall.c:125: error: incompatible types in assignment
flash_eraseall.c:127: error: incompatible types in assignment
make[1]: *** [flash_eraseall.o] Error 1
make[1]: Leaving directory `/usr/local/src/internet/buildroot/build_mipsel/mtd_orig/util'
Attached Files

- Relationships

- Notes
(0002065)
jcoppens
01-28-07 20:18

Sorry, that was of course jff3.h I tried to add (not jff2.h as commented above).
Just a typo - the problem is still there.
 
(0002071)
bagland
01-30-07 04:55

Removing an include path fixes the problem for me (against rev 17540):

Index: package/mtd/mtd.mk
===================================================================
--- package/mtd/mtd.mk (revision 17540)
+++ package/mtd/mtd.mk (working copy)
@@ -116,7 +116,7 @@
 MTD_BUILD_TARGETS := $(addprefix $(MTD_DIR)/util/, $(MTD_TARGETS_y))
 
 $(MTD_BUILD_TARGETS): $(MTD_DIR)/.unpacked
- $(MAKE) CC=$(TARGET_CC) CFLAGS="-I$(LINUX_HEADERS_DIR)/include -I$(MTD_DIR)/include $(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" LINUXDIR=$(LINUX_DIR) -C $(MTD_DIR)/util
+ $(MAKE) CC=$(TARGET_CC) CFLAGS="-I$(MTD_DIR)/include $(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" LINUXDIR=$(LINUX_DIR) -C $(MTD_DIR)/util
 
 MTD_TARGETS := $(addprefix $(TARGET_DIR)/usr/sbin/, $(MTD_TARGETS_y))

Rgds,
Benjamin
 
(0002077)
jcoppens
01-30-07 12:34

Another issue popped up, and I'm not sure yet this patch solved the problem.

(http://busybox.net/bugs/view.php?id=1185) [^]

Thanks
John
(will report if I get past the other problem)
 
(0002142)
bernhardf
02-09-07 06:19

Fixed in r17839. Thanks for the report.
 

- Issue History
Date Modified Username Field Change
01-28-07 05:53 jcoppens New Issue
01-28-07 05:53 jcoppens Status new => assigned
01-28-07 05:53 jcoppens Assigned To  => uClibc
01-28-07 20:18 jcoppens Note Added: 0002065
01-30-07 04:55 bagland Note Added: 0002071
01-30-07 12:34 jcoppens Note Added: 0002077
02-04-07 08:44 bernhardf Summary Missing definition of jint_16/jint_32 svn (17567) => MTD: Missing definition of jint_16/jint_32 svn (17567)
02-09-07 06:19 bernhardf Status assigned => closed
02-09-07 06:19 bernhardf Note Added: 0002142
02-09-07 06:19 bernhardf Resolution open => fixed
02-12-07 05:42 vapier Status closed => assigned
02-12-07 05:42 vapier Assigned To uClibc => buildroot


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker