public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Rodrigo Moya <rmoya@tsai.es>
To: mtd@infradead.org
Subject: problems compiling
Date: Tue, 27 Jun 2000 16:23:18 CEST	[thread overview]
Message-ID: <E136wFv-0002er-00@infradead.org> (raw)



Hi all!

I just updated my local copy of mtd from CVS (after a long time without
doing so), and now, I get the following errors when compiling:

make[5]: Circular /usr/src/linux-2.2.12/include/linux/compatmac.h <-
/usr/src/linux-2.2.12/include/linux/compatmac.h dependency dropped.
gcc -D__KERNEL__ -I/usr/src/linux-2.2.12/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-m386 -DCPU=386   -DEXPORT_SYMTAB -c mtdcore.c
mtdcore.c:77: warning: type defaults to `int' in declaration of
`DECLARE_MUTEX'
mtdcore.c:77: warning: parameter names (without types) in function
declaration
mtdcore.c: In function `add_mtd_device':
mtdcore.c:88: `mtd_table_mutex' undeclared (first use in this function)
mtdcore.c:88: (Each undeclared identifier is reported only once
mtdcore.c:88: for each function it appears in.)
mtdcore.c: In function `del_mtd_device':
mtdcore.c:117: `mtd_table_mutex' undeclared (first use in this function)
mtdcore.c: In function `register_mtd_user':
mtdcore.c:145: `mtd_table_mutex' undeclared (first use in this function)
mtdcore.c: In function `unregister_mtd_user':
mtdcore.c:167: `mtd_table_mutex' undeclared (first use in this function)
mtdcore.c: In function `__get_mtd_device':
mtdcore.c:203: `mtd_table_mutex' undeclared (first use in this function)
mtdcore.c: In function `mtd_read_proc':
mtdcore.c:256: `mtd_table_mutex' undeclared (first use in this function)
mtdcore.c: At top level:
mtdcore.c:77: warning: `DECLARE_MUTEX' declared `static' but never defined
make[5]: *** [mtdcore.o] Error 1
make[5]: Leaving directory `/usr/src/linux-2.2.12/drivers/block/mtd'
make[4]: *** [first_rule] Error 2
make[4]: Leaving directory `/usr/src/linux-2.2.12/drivers/block/mtd'
make[3]: *** [_subdir_mtd] Error 2
make[3]: Leaving directory `/usr/src/linux-2.2.12/drivers/block'
make[2]: *** [_subdir_block] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.12/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.12'

Looking at the sources, I've seen that the DECLARE_MUTEX is declared in the
sysdep-2.2.h file, but into a:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)
...
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
...
#endif
#endif

I've been looking at the kernel sources to see which LINUX_VERSION_CODE was
defined, but haven't found nothing I could understand, so please help me.
It seems to me that an incorrect LINUX_VERSION_CODE is being defined, so
the compilation never reaches the line where the DECLARE_MUTEX is defined.

I'm using kernel 2.2.12 (the one shipped with RH 6.1)

Thanks


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

             reply	other threads:[~2000-06-27 14:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-27 14:23 Rodrigo Moya [this message]
2000-06-27 14:29 ` problems compiling David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2000-04-13 14:01 Rodrigo Moya
2000-04-13 14:12 ` David Woodhouse
     [not found] <38F5ADF6.30B89174@tsai.es>
2000-04-12 19:38 ` Rodrigo Moya
2000-04-13  8:25   ` David Woodhouse
     [not found]     ` <17190.955625589@devel2.axiom.internal>
2000-04-13 11:36       ` Rodrigo Moya
2000-04-12 14:16 Rodrigo Moya
2000-04-12 14:31 ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E136wFv-0002er-00@infradead.org \
    --to=rmoya@tsai.es \
    --cc=mtd@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox