Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2000 22:42:17 -0600 (MDT)
From:      Joe Loughry <loughry@uswest.net>
To:        freebsd-hackers@freebsd.org
Subject:   Warning: Object directory not changed from original
Message-ID:  <200004030442.WAA00550@miranda.dnvr.uswest.net>

next in thread | raw e-mail | index | archive | help
I am writing a new graphical screen saver, based on an existing one
(rain_saver.c) in 3.4-STABLE.  The system is freshly CVSupped to
RELENG_3 using src-all.

I found the list of modules in /usr/src/sys/modules/syscons/Makefile
and updated that.  But the new program won't compile cleanly.  Even
when the new program (test_saver.c) is simply a copy of rain_saver.c
with "test" substituted for "rain" throughout, I still get the same
warning, and it leaves a mess in the build directory.  All of the
other screen savers compile cleanly.  What's wrong?  (By the way, the
resulting test_saver.ko installs and runs fine; it just won't build
cleanly.)

Script started on Tue Mar 28 22:59:01 2000
miranda# pwd
/usr/src/sys/modules/syscons/test
miranda# make clean
rm -f setdef0.c setdef1.c setdefs.h setdef0.o setdef1.o test_saver.ko test_saver.o @ machine lkm_verify_tmp symb.tmp tmp.o
miranda# ls -al
total 8
drwxr-xr-x   2 root  wheel   512 Mar 28 22:59 .
drwxr-xr-x  16 root  wheel   512 Mar 28 22:30 ..
-rw-r--r--   1 root  wheel   215 Mar 28 22:31 Makefile
-rw-r--r--   1 root  wheel  3475 Mar 28 22:32 test_saver.c
-rw-r--r--   1 root  wheel    43 Mar 28 22:59 typescript
miranda# make
Warning: Object directory not changed from original /usr/src/sys/modules/syscons/test
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
cc -O -pipe -I/usr/src/sys/modules/syscons/test/..  -DKERNEL -Wall -pedantic -DKLD_MODULE -nostdinc -I- -I/usr/src/sys/modules/syscons/test/.. -I/usr/src/sys/modules/syscons/test -I/usr/src/sys/modules/syscons/test/@ -c test_saver.c
gensetdefs test_saver.o
cc -O -pipe -I/usr/src/sys/modules/syscons/test/..  -DKERNEL -Wall -pedantic -DKLD_MODULE -nostdinc -I- -I/usr/src/sys/modules/syscons/test/.. -I/usr/src/sys/modules/syscons/test -I/usr/src/sys/modules/syscons/test/@ -c setdef0.c
cc -O -pipe -I/usr/src/sys/modules/syscons/test/..  -DKERNEL -Wall -pedantic -DKLD_MODULE -nostdinc -I- -I/usr/src/sys/modules/syscons/test/.. -I/usr/src/sys/modules/syscons/test -I/usr/src/sys/modules/syscons/test/@ -c setdef1.c
ld -Bshareable  -o test_saver.ko setdef0.o test_saver.o setdef1.o  
miranda# pwd
/usr/src/sys/modules/syscons/test
miranda# ls -al
total 21
drwxr-xr-x   2 root  wheel   512 Mar 28 22:59 .
drwxr-xr-x  16 root  wheel   512 Mar 28 22:30 ..
lrwxr-xr-x   1 root  wheel    12 Mar 28 22:59 @ -> /usr/src/sys
-rw-r--r--   1 root  wheel   215 Mar 28 22:31 Makefile
lrwxr-xr-x   1 root  wheel    25 Mar 28 22:59 machine -> /usr/src/sys/i386/include
-rw-r--r--   1 root  wheel   360 Mar 28 22:59 setdef0.c
-rw-r--r--   1 root  wheel   770 Mar 28 22:59 setdef0.o
-rw-r--r--   1 root  wheel   235 Mar 28 22:59 setdef1.c
-rw-r--r--   1 root  wheel   742 Mar 28 22:59 setdef1.o
-rw-r--r--   1 root  wheel    28 Mar 28 22:59 setdefs.h
-rw-r--r--   1 root  wheel  3475 Mar 28 22:32 test_saver.c
-rwxr-xr-x   1 root  wheel  4163 Mar 28 22:59 test_saver.ko
-rw-r--r--   1 root  wheel  2608 Mar 28 22:59 test_saver.o
-rw-r--r--   1 root  wheel    43 Mar 28 22:59 typescript
miranda# make install
install -c -o root -g wheel -m 555   test_saver.ko /modules
miranda# ls -l /modules/test_saver.ko
-r-xr-xr-x  1 root  wheel  4163 Mar 28 22:59 /modules/test_saver.ko
miranda# kldstat
Id Refs Address    Size     Name
 1    3 0xc0100000 1562d4   kernel
 2    1 0xc078e000 6000     procfs.ko
 7    1 0xc08ef000 2000     test_saver.ko
miranda# exit
Script done on Tue Mar 28 22:59:55 2000


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004030442.WAA00550>