Re: Compiling kernel with gcc43 [SOLVED]

2010-04-02 Thread Mario Lobo
On Thursday 01 April 2010 16:53:36 Pegasus Mc Cleaft wrote:
 On Thursday 01 April 2010 15:27:41 Oliver Fromme wrote:
  Mario Lobo l...@bsd.com.br wrote:
[...]
It's compiling right now.
   
I'll post my findings and impressions on results and performance right
after the next reboot.
 
  So, how is it going?  Any benchmarks yet?  I'm curious
  if the new gcc version will really make a significant
  difference.
 
   I would love to see the /etc/make.conf,  /etc/src.conf and
 /etc/libmap.conf files that were used for the build. I have tried compiling
  in VBox a current kernel and world, but it usually just bombs out for me.
  I would like to give this a go as well.
 
 Peg
 

Well, to tell the truth I wasn't that thrilled with the results. I didn't 
benchmark anything by my impressions were that at least disk access was a bit 
slower not only during booting but it was more noticeable to me particularly  
on a burning DVD session. Of course this is ultra abstract. 

In all previous experiences I had in burning CD/DVD with k3b, I recollect that 
during burning, the software buffer and device buffer gouges were always 100%, 
with the software buffer gouge dropping down occasionally to 89/92%.

After recompiling the kernel with gcc43, the software buffer was always empty 
and the device buffer rarely reached 40/50%. I think (if not mistaken) this 
means that the device is asking where is my data?? and the OS is not 
providing it fast enough.

I could not get world to build with gcc43 so I gave that up. Then I moved on 
to VirtualBox. I managed to have it compiled and running. After long trial and 
error sessions, I could pin point what was breaking compilation and fixed it. 
Here are the steps:

--

Compiling vbox/vbox-devel with gcc43

1) /usr/include/cam/cam.h needed #include stdio.h for FILE define, 
complained by: 

 
work/VirtualBox-3.1.51.r27657_OSE/src/VBox/Main/freebsd/HostHardwareFreeBSD.cpp:47:
 /usr/include/cam/cam.h:246: error: 'FILE' has not been declared

2)/usr/ports/emulators/virtualbox-
ose/work/VirtualBox-3.1.6_OSE/src/VBox/Main/generic/NetIf-generic.cpp 
  needed #include stdio.h because of popen() (this step is ONLY for 
virtualbox-ose)

3)/usr/ports/emulators/virtualbox-ose(-
devel)/work/VirtualBox-3.1.6_OSE/src/VBox/Main/freebsd/NetIf-freebsd.cpp 
  needed #include stdlib.h because of malloc()/free()

4) Config.kmk needed some tweaks:

  a) line 1750 - $(APPEND) '$@' 'VBOX_GCC_mtune-generic ?= $(call 
VBOX_GCC_CHECK_CC,-mtune=amdfam10 -D__FreeBSD_cc_version=0,)' 
 to use instructions closer to Phenom and avoid cc complains.
  b) took out all references to -fformat-extensions and -fno_format-
extensions
  c) Preceeded all relevant locations of /usr/lib \ with 
/usr/local/lib/gcc43 \ so kbuild searched there for libraries first.
(except TEMPLATE_VBOXQT4GUIEXE_LIBPATH !)

  d) You can use the same Config.kmk for building kmods as well

5) took out -fformat-extensions from src/sys/conf/kern.mk

And I left /etc/libmap.conf 

libgcc_s.so.1   gcc43/libgcc_s.so.1
libgomp.so.1gcc43/libgomp.so.1
libobjc.so.3gcc43/libobjc.so.2
libssp.so.0 gcc43/libssp.so.0
libstdc++.so.6  gcc43/libstdc++.so.6

/etc/make.conf 

CC=/usr/local/bin/gcc43
CXX=/usr/local/bin/g++43
CPP=/usr/local/bin/cpp43
CFLAGS+=-mssse3 -D__FreeBSD_cc_version=0
CXXFLAGS+=-D__FreeBSD_cc_version=0
CPUTYPE=amdfam10
#MAKEOPTS+= -j4


and /etc/src.conf

NO_WERROR=
WERROR=


--

New problems started to come when I tried to extend this to other ports, 
breaking a lot of them, to point of making me revert everything back to what 
it was. In fact I am still in this process right now, and reving a lot of 
problems to rebuild kde4.

This is it for now, guys. If you find anything new, please post.

Best of luck,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED] -ADDENDUM

2010-04-02 Thread Mario Lobo
Well, to tell the truth I wasn't that thrilled with the results. I didn't 

[snip]
--

Compiling vbox/vbox-devel with gcc43

1) /usr/include/cam/cam.h needed #include stdio.h for FILE define, 
complained by: 

[snip]

and /etc/src.conf

NO_WERROR=
WERROR=


--

New problems started to come when I tried to extend this to other ports, 

[snip]


You have to:

1) make patch
2) apply the mods
3) make


Best of luck, again

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Oliver Fromme
Mario Lobo l...@bsd.com.br wrote:
  [...]
  It's compiling right now.
  
  I'll post my findings and impressions on results and performance right after 
  the next reboot.

So, how is it going?  Any benchmarks yet?  I'm curious
if the new gcc version will really make a significant
difference.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things.
-- Doug Gwyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Pegasus Mc Cleaft
On Thursday 01 April 2010 15:27:41 Oliver Fromme wrote:
 Mario Lobo l...@bsd.com.br wrote:
   [...]
   It's compiling right now.
  
   I'll post my findings and impressions on results and performance right
   after the next reboot.
 
 So, how is it going?  Any benchmarks yet?  I'm curious
 if the new gcc version will really make a significant
 difference.

I would love to see the /etc/make.conf,  /etc/src.conf and 
/etc/libmap.conf files that were used for the build. I have tried compiling in 
VBox a current kernel and world, but it usually just bombs out for me. I would 
like to give this a go as well. 

Peg
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Vlad Galu
On Thu, Apr 1, 2010 at 6:27 PM, Oliver Fromme o...@lurza.secnetix.de wrote:
 Mario Lobo l...@bsd.com.br wrote:
   [...]
   It's compiling right now.
  
   I'll post my findings and impressions on results and performance right 
 after
   the next reboot.

 So, how is it going?  Any benchmarks yet?  I'm curious
 if the new gcc version will really make a significant
 difference.


I'm not as worried about performance as I am about compatibilty.
Various software suites have started using newer GCCisms in their
code. One example I can give from the top of my head is Wt
(www.webtoolkit.eu), which compiles with 4.4, but not with 4.2. I
shamefully haven't dug any deeper to check which particular
syntactical construct offended 4.2.

Yes, one might say, after all it's the upstream developers who ought
to make sure their software compiles on FreeBSD, but some aditional
overhead on the shoulders of our port maintainers should be expected.

 Best regards
   Oliver

 --
 Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
 Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
 secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
 chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

 FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

 UNIX was not designed to stop you from doing stupid things,
 because that would also stop you from doing clever things.
        -- Doug Gwyn
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org




-- 
Good, fast  cheap. Pick any two.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Mario Lobo
2010/3/24 Mario Lobo l...@bsd.com.br

 Hi;

 I followed the instructions from
 http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

 to see if I can achieve some performance gain (8-STABLE r205630 amd64) and
 also get a more modern instruction set for my Phenom II (amdfam10), so I've
 done the following config settings:

 make.conf

 .if !empty(.CURDIR:M/usr/ports/*)  exists(/usr/local/bin/gcc43)
 CC=/usr/local/bin/gcc43
 CXX=/usr/local/bin/g++43
 CPP=/usr/local/bin/cpp43
 CFLAGS+=-mssse3
 CPUTYPE=amdfam10
 .endif

 libmap.conf

 libgcc_s.so.1   gcc43/libgcc_s.so.1
 libgomp.so.1gcc43/libgomp.so.1
 libobjc.so.3gcc43/libobjc.so.2
 libssp.so.0 gcc43/libssp.so.0
 libstdc++.so.6  gcc43/libstdc++.so.6


 buildworld goes on normally it seems, but when I tried to build the kernel,
 the first stop came from the option used by the kernel build -fformat-
 extensions, which is not accepted by gcc43, so I took it out of
 /usr/src/sys/conf/kern.mk, the ONLY place I found it.

 It seemed to solve the problem until gcc43 stopped because of the -Werror
 option, which is all over the place!. Funny that gcc42 (used by default)
 doesn't stop because of this option.

 Anyway,my question boils down to: Is there a way to build the kernel with
 gcc43, with minimal tweaking? Am i attempting something out of my league?

 Thanks,
 --
 Mario Lobo


Any suggestions/Comments?

Should I just dump the gcc43 idea and try this with clang/llvm?

I've seen http://wiki.freebsd.org/BuildingFreeBSDWithClang.

Anything else to watch out for when building world/kernel/ports?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Ryan Stone
If you just want to try it out you could disable -Werror for your own
build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
gcc developers are adding new warnings with every compiler release, so
until somebody takes the time to fix all of the new warnings you won't
be able to build the kernel with -Werror.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Mario Lobo
2010/3/25 Ryan Stone ryst...@gmail.com

 If you just want to try it out you could disable -Werror for your own
 build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
 gcc developers are adding new warnings with every compiler release, so
 until somebody takes the time to fix all of the new warnings you won't
 be able to build the kernel with -Werror.


All right !! Thanks for replying !

There are a lot of locations throughout the source code where -Werror is
enabled
How can I disable -Werror globally? via src.conf ? will it do it for
world/kernel?
will this damage the resulting kernel/world binaries?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Ryan Stone
-Wnoerror should disable it, but I don't know enough about the FreeBSD
build infrastructure to tell you where it needs to go.  Worst comes to
worst you can just delete all of the -Werrors.

Disabling -Werror will not cause any problems.  -Werror means treat
warnings as errors.  It's very useful for development but in your
case, where you're starting with a known good source tree with no
warnings with earlier compilers, it's not necessary to have the option
enabled.  If the warnings are pointing to legitimate bugs, those bugs
also exist in a kernel built by gcc 4.2, so your kernel can't be any
worse than what you already have.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Andrius Morkūnas

On Thu, 25 Mar 2010 18:24:10 +0200, Mario Lobo l...@bsd.com.br wrote:

Should I just dump the gcc43 idea and try this with clang/llvm?

I've seen http://wiki.freebsd.org/BuildingFreeBSDWithClang.

Anything else to watch out for when building world/kernel/ports?


ClangBSD had little to no runtime testing, so you should be careful
with it. I'm not saying it won't work, but make sure you have backups
in case something goes wrong.

Also, if you just want to build the kernel, you don't need ClangBSD,
you can just install llvm-devel from ports and use

make CC=/usr/local/bin/clang buildkernel

Some people ran or are running their systems with clang compiled kernel.
You should still be careful, and some things (like snd_hda on amd64)
are known to have problems.

--
Andrius
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Garrett Cooper
On Thu, Mar 25, 2010 at 10:18 AM, Mario Lobo l...@bsd.com.br wrote:
 2010/3/25 Ryan Stone ryst...@gmail.com

 If you just want to try it out you could disable -Werror for your own
 build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
 gcc developers are adding new warnings with every compiler release, so
 until somebody takes the time to fix all of the new warnings you won't
 be able to build the kernel with -Werror.


 All right !! Thanks for replying !

 There are a lot of locations throughout the source code where -Werror is
 enabled
 How can I disable -Werror globally? via src.conf ? will it do it for
 world/kernel?
 will this damage the resulting kernel/world binaries?

-Wno-error .
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Bruce Cran
On Thu, Mar 25, 2010 at 02:18:34PM -0300, Mario Lobo wrote:

 All right !! Thanks for replying !
 
 There are a lot of locations throughout the source code where -Werror is
 enabled
 How can I disable -Werror globally? via src.conf ? will it do it for
 world/kernel?
 will this damage the resulting kernel/world binaries?

You should be able to use NO_WERROR in src.conf to prevent -Werror 
being used.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43

2010-03-25 Thread Edward Tomasz Napierała
Wiadomość napisana przez Mario Lobo w dniu 2010-03-25, o godz. 17:24:
 2010/3/24 Mario Lobo l...@bsd.com.br
 
 Anyway,my question boils down to: Is there a way to build the kernel with
 gcc43, with minimal tweaking? Am i attempting something out of my league?

This is what I use to compile kernel on 9.0-CURRENT/amd64:

CC=/usr/local/bin/gcc44
CXX=   /usr/local/bin/g++44
CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
   -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
   -Wno-pointer-sign -D__FreeBSD_cc_version=0 \
   -Wno-unused-function -Wno-inline -Wno-format \
   -Wno-uninitialized -Wno-array-bounds -Wno-missing-prototypes

Note that this is GCC 4.4.4, installed from ports.  Also, this will not
compile the world - only the kernel.  Also, they were a few fixes to make
this work; they were not MFC-ed, iirc; removing -Werror altogether should
work around these problems.

--
If you cut off my head, what would I say?  Me and my head, or me and my body?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compiling kernel with gcc43 [SOLVED]

2010-03-25 Thread Mario Lobo
On Thursday 25 March 2010 19:12:09 Edward Tomasz Napierała wrote:
 Wiadomość napisana przez Mario Lobo w dniu 2010-03-25, o godz. 17:24:
  2010/3/24 Mario Lobo l...@bsd.com.br
 
  Anyway,my question boils down to: Is there a way to build the kernel
  with gcc43, with minimal tweaking? Am i attempting something out of my
  league?
 
 This is what I use to compile kernel on 9.0-CURRENT/amd64:
 
 CC=/usr/local/bin/gcc44
 CXX=   /usr/local/bin/g++44
 CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
  -Wno-pointer-sign -D__FreeBSD_cc_version=0 \
-Wno-unused-function -Wno-inline -Wno-format \
-Wno-uninitialized -Wno-array-bounds -Wno-missing-prototypes
 
 Note that this is GCC 4.4.4, installed from ports.  Also, this will not
 compile the world - only the kernel.  Also, they were a few fixes to make
 this work; they were not MFC-ed, iirc; removing -Werror altogether should
 work around these problems.
 
 --
 If you cut off my head, what would I say?  Me and my head, or me and my
  body?
 

Adding 

NO_WERROR=
WERROR=

to src.conf did it. It's compiling right now.

I'll post my findings and impressions on results and performance right after 
the next reboot.

Thanks for all the help and info, Guys !!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Compiling kernel with gcc43

2010-03-24 Thread Mario Lobo
Hi;

I followed the instructions from 
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

to see if I can achieve some performance gain (8-STABLE r205630 amd64) and 
also get a more modern instruction set for my Phenom II (amdfam10), so I've 
done the following config settings:

make.conf

.if !empty(.CURDIR:M/usr/ports/*)  exists(/usr/local/bin/gcc43)
CC=/usr/local/bin/gcc43
CXX=/usr/local/bin/g++43
CPP=/usr/local/bin/cpp43
CFLAGS+=-mssse3
CPUTYPE=amdfam10
.endif

libmap.conf

libgcc_s.so.1   gcc43/libgcc_s.so.1
libgomp.so.1gcc43/libgomp.so.1
libobjc.so.3gcc43/libobjc.so.2
libssp.so.0 gcc43/libssp.so.0
libstdc++.so.6  gcc43/libstdc++.so.6
 

buildworld goes on normally it seems, but when I tried to build the kernel, 
the first stop came from the option used by the kernel build -fformat-
extensions, which is not accepted by gcc43, so I took it out of 
/usr/src/sys/conf/kern.mk, the ONLY place I found it.

It seemed to solve the problem until gcc43 stopped because of the -Werror 
option, which is all over the place!. Funny that gcc42 (used by default) 
doesn't stop because of this option.

Anyway,my question boils down to: Is there a way to build the kernel with 
gcc43, with minimal tweaking? Am i attempting something out of my league?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Error compiling Kernel

2009-05-17 Thread Jose Luis Alarcon Sanchez
Hi Folks!.

I am trying to compile the Kernel, but it stop at this point:


cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -mno-align-long-strings 
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 
-ffreestanding -Werror  /usr/src/sys/dev/ath/if_ath.c -I/usr/src/sys/dev/ath
/usr/src/sys/dev/ath/if_ath.c: In function 'ath_rx_tap':
/usr/src/sys/dev/ath/if_ath.c:3414: error: 'const struct ath_rx_status' has no 
member named 'rs_flags'
/usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct ath_rx_status' has no 
member named 'rs_flags'
*** Error code 1

Stop in /usr/obj/usr/src/sys/MYKERNEL_NAME.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


What can i do with this?. Anybody see a way for fix it?.

Thanks very much, in advance.

Regards.

Jose.

-- 
Not Registered GNU/Hurd User.
Registered BSD User 51101.
Registered Linux User #213309.
Memories. You are talking about memories.
Rick Deckard. Blade Runner.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Error compiling Kernel

2009-05-17 Thread Glen Barber
Hi, Jose

On Sun, May 17, 2009 at 8:15 AM, Jose Luis Alarcon Sanchez
jlalar...@gawab.com wrote:
 Hi Folks!.

 I am trying to compile the Kernel, but it stop at this point:



When was your last c(v)sup?

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Error compiling Kernel

2009-05-17 Thread Bruce Cran
On Sun, 17 May 2009 14:15:32 +0200
Jose Luis Alarcon Sanchez jlalar...@gawab.com wrote:

 -I/usr/src/sys/dev/ath /usr/src/sys/dev/ath/if_ath.c: In function
 'ath_rx_tap': /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const
 struct ath_rx_status' has no member named
 'rs_flags' /usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct
 ath_rx_status' has no member named 'rs_flags' *** Error code 1
 
 Stop in /usr/obj/usr/src/sys/MYKERNEL_NAME.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.
 
 
 What can i do with this?. Anybody see a way for fix it?.

Try adding 

options AH_SUPPORT_AR5416

to your kernel configuration.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Error compiling Kernel

2009-05-17 Thread Glen Barber
On Sun, May 17, 2009 at 8:41 AM, Bruce Cran br...@cran.org.uk wrote:

[snip]


 Try adding

 options AH_SUPPORT_AR5416

 to your kernel configuration.


Should this be ATH_SUPPORT_AR5416?  (Just making sure it's not a typo.)

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Error compiling Kernel

2009-05-17 Thread Bruce Cran
On Sun, 17 May 2009 08:46:23 -0400
Glen Barber glen.j.bar...@gmail.com wrote:

 On Sun, May 17, 2009 at 8:41 AM, Bruce Cran br...@cran.org.uk wrote:
 
 [snip]
 
 
  Try adding
 
  options AH_SUPPORT_AR5416
 
  to your kernel configuration.
 
 
 Should this be ATH_SUPPORT_AR5416?  (Just making sure it's not a
 typo.)
 

Not according to GENERIC :)

 grep _SUPPORT /sys/i386/conf/GENERIC
options AH_SUPPORT_AR5416   # enable AR5416 tx/rx
descriptors

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Error compiling Kernel

2009-05-17 Thread Jose Luis Alarcon Sanchez
On Sun, 17 May 2009 13:41:28 +0100
Bruce Cran br...@cran.org.uk wrote:

 On Sun, 17 May 2009 14:15:32 +0200
 Jose Luis Alarcon Sanchez jlalar...@gawab.com wrote:
 
  -I/usr/src/sys/dev/ath /usr/src/sys/dev/ath/if_ath.c: In function
  'ath_rx_tap': /usr/src/sys/dev/ath/if_ath.c:3414: error: 'const
  struct ath_rx_status' has no member named
  'rs_flags' /usr/src/sys/dev/ath/if_ath.c:3416: error: 'const struct
  ath_rx_status' has no member named 'rs_flags' *** Error code 1
  
  Stop in /usr/obj/usr/src/sys/MYKERNEL_NAME.
  *** Error code 1
  
  Stop in /usr/src.
  *** Error code 1
  
  Stop in /usr/src.
  
  
  What can i do with this?. Anybody see a way for fix it?.
 
 Try adding 
 
 options AH_SUPPORT_AR5416
 

This was! :)

Thanks you very much, Bruce (and Glen too).

Regards.

Jose.

-- 
Not Registered GNU/Hurd User.
Registered BSD User 51101.
Registered Linux User #213309.
Memories. You are talking about memories.
Rick Deckard. Blade Runner.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: error compiling kernel

2008-10-01 Thread Dino Vliet


--- On Mon, 9/29/08, Frank Shute [EMAIL PROTECTED] wrote:
From: Frank Shute [EMAIL PROTECTED]
Subject: Re: error compiling kernel
To: Dino Vliet [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Date: Monday, September 29, 2008, 2:31 PM

On Sun, Sep 28, 2008 at 11:09:01PM -0700, Dino Vliet wrote:

 Hi all,
 
 In an effort to compile a new kernel on my amd64 system running
 freebsd 6.3 I get the following error message after the make
 buildkernel KERNCONF=MYKERNEL step.
 
 The error I get is:
 
 /usr/src/sys/dev/usb/udbp.c: 426: undefined reference to
'ng_parse_int32_type' udbp.o (.rodata +
0xc0):/usr/src/sys/dev/usb/udbp.c: 438: undefined reference to
'ng_parse_int32_type'
 
 *** Error code 1
 Stop in /usr/obj/usr/src/sys/MYKERNEL
 *** Error code 1
 Stop in /usr/src
 *** Error code 1
 Stop in /usr/src
 
 My kernel configuration called MYKERNEL looks like this:
 
 #
 # GENERIC -- Generic kernel configuration file for FreeBSD/amd64
 #
snip
 
 options   SCHED_ULE   # ULE scheduler
 #options  SCHED_4BSD  # 4BSD scheduler

snip

 What is causing this error?
 
 Brgds
 Dino
 devicefwe # Ethernet over FireWire (non-standard!)

Dino,

I don't know if it's possibly related but IIRC the SCHED_ULE scheduler
is deprecated for use in 6.* (I stand to be corrected!:) although I
believe it works with 7.*

So I suggest trying SCHED_4BSD and see if that works better.

As to the specific error, it looks like you might need:

options NETGRAPH

in your kernel conf. See: netgraph(4)

You might also want to use the tag: RELENG_6_4 for your source
supfile. I'm pretty sure there is a 6.4 branch now the BETA has come
out.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 


Hi Frank,

It worked!
Thanks for the tips. I've reenabled sched_bsd and added 
options NETGRAPH. The latter is strange though, because I managed 
to compile the p1 kernel in the past without it, so why would that
fail now?

Anyway, it worked so I can look at my other problems now.
This machine was disconnected from the internet a few months so I
had a very long package list that needed to be updated.

Thanks for your reply!

Dino



  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error compiling kernel

2008-10-01 Thread Frank Shute
On Wed, Oct 01, 2008 at 12:24:48AM -0700, Dino Vliet wrote:

 
 
 --- On Mon, 9/29/08, Frank Shute [EMAIL PROTECTED] wrote:
 
 On Sun, Sep 28, 2008 at 11:09:01PM -0700, Dino Vliet wrote:
 
  Hi all,
  
  In an effort to compile a new kernel on my amd64 system running
  freebsd 6.3 I get the following error message after the make
  buildkernel KERNCONF=MYKERNEL step.
  
  The error I get is:
  
  /usr/src/sys/dev/usb/udbp.c: 426: undefined reference to
 'ng_parse_int32_type' udbp.o (.rodata +
 0xc0):/usr/src/sys/dev/usb/udbp.c: 438: undefined reference to
 'ng_parse_int32_type'
  
  *** Error code 1
  Stop in /usr/obj/usr/src/sys/MYKERNEL
  *** Error code 1
  Stop in /usr/src
  *** Error code 1
  Stop in /usr/src
  
  My kernel configuration called MYKERNEL looks like this:
  
  #
  # GENERIC -- Generic kernel configuration file for FreeBSD/amd64
  #
 snip
  
  options SCHED_ULE   # ULE scheduler
  #optionsSCHED_4BSD  # 4BSD scheduler
 
 snip
 
  What is causing this error?
  
  Brgds
  Dino
  device  fwe # Ethernet over FireWire (non-standard!)
 
 Dino,
 
 I don't know if it's possibly related but IIRC the SCHED_ULE scheduler
 is deprecated for use in 6.* (I stand to be corrected!:) although I
 believe it works with 7.*
 
 So I suggest trying SCHED_4BSD and see if that works better.
 
 As to the specific error, it looks like you might need:
 
 options NETGRAPH
 
 in your kernel conf. See: netgraph(4)
 
 You might also want to use the tag: RELENG_6_4 for your source
 supfile. I'm pretty sure there is a 6.4 branch now the BETA has come
 out.
 
 Regards,
 
 -- 
 
  Frank 
 
 Hi Frank,
 
 It worked!

Excellent!

 Thanks for the tips. I've reenabled sched_bsd and added 
 options NETGRAPH. The latter is strange though, because I managed 
 to compile the p1 kernel in the past without it, so why would that
 fail now?

Not too sure but there must be something in your kernel conf that
requires netgraph (I don't use it).

To be on the safe side, it's always best to compile GENERIC unless
you're trying to screw the last drop of performance from your machine.

 
 Anyway, it worked so I can look at my other problems now.
 This machine was disconnected from the internet a few months so I
 had a very long package list that needed to be updated.

Take a good look at /usr/ports/UPDATING and work on updating the
ports/packages mentioned in there.

Then hit the ports with lots of dependencies with portupgrade. E.g:

# portupgrade -vrR firefox

(Assuming you're using it as a workstation  like Firefox).

Then I'd use the -a flag for portupgrade to hit the rest of the
ports/packages.

Use the -P flag if you want packages.

 
 Thanks for your reply!

No worries :) Glad to be of help.

 
 Dino
 

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


error compiling kernel

2008-09-29 Thread Dino Vliet
Hi all,

In an effort to compile a new kernel on my amd64 system running freebsd 6.3 I 
get the following error message after the make buildkernel KERNCONF=MYKERNEL 
step.

The error I get is:

/usr/src/sys/dev/usb/udbp.c: 426: undefined reference to 'ng_parse_int32_type' 
udbp.o (.rodata + 0xc0):/usr/src/sys/dev/usb/udbp.c: 438: undefined reference 
to 'ng_parse_int32_type'

*** Error code 1
Stop in /usr/obj/usr/src/sys/MYKERNEL
*** Error code 1
Stop in /usr/src
*** Error code 1
Stop in /usr/src

My kernel configuration called MYKERNEL looks like this:

#
# GENERIC -- Generic kernel configuration file for FreeBSD/amd64
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.439.2.6.2.1 2005/10/28 19:22:41 jhb 
Exp $

machine amd64
cpu HAMMER
ident   MYKERNEL

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints # Default places to look for devices.

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_ULE   # ULE scheduler
#optionsSCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options NTFS# NT File System
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Needed by COMPAT_LINUX32
options COMPAT_IA32 # Compatible with i386 binaries
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_LINUX32  # Compatible with i386 linux binaries 
#optionsSCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.

# Workarounds for some known-to-be-broken chipsets (nVidia nForce3-Pro150)
device  atpic   # 8259A compatability

# Linux 32-bit ABI support
options LINPROCFS   # Cannot be a module yet.
options EXT2FS  # Linux ext2 filesystem support

# Bus support.
device  acpi
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atapicam
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering


# atkbdc0 controls 

Re: error compiling kernel

2008-09-29 Thread Frank Shute
On Sun, Sep 28, 2008 at 11:09:01PM -0700, Dino Vliet wrote:

 Hi all,
 
 In an effort to compile a new kernel on my amd64 system running
 freebsd 6.3 I get the following error message after the make
 buildkernel KERNCONF=MYKERNEL step.
 
 The error I get is:
 
 /usr/src/sys/dev/usb/udbp.c: 426: undefined reference to 
 'ng_parse_int32_type' udbp.o (.rodata + 0xc0):/usr/src/sys/dev/usb/udbp.c: 
 438: undefined reference to 'ng_parse_int32_type'
 
 *** Error code 1
 Stop in /usr/obj/usr/src/sys/MYKERNEL
 *** Error code 1
 Stop in /usr/src
 *** Error code 1
 Stop in /usr/src
 
 My kernel configuration called MYKERNEL looks like this:
 
 #
 # GENERIC -- Generic kernel configuration file for FreeBSD/amd64
 #
snip
 
 options   SCHED_ULE   # ULE scheduler
 #options  SCHED_4BSD  # 4BSD scheduler

snip

 What is causing this error?
 
 Brgds
 Dino
 devicefwe # Ethernet over FireWire (non-standard!)

Dino,

I don't know if it's possibly related but IIRC the SCHED_ULE scheduler
is deprecated for use in 6.* (I stand to be corrected!:) although I
believe it works with 7.*

So I suggest trying SCHED_4BSD and see if that works better.

As to the specific error, it looks like you might need:

options NETGRAPH

in your kernel conf. See: netgraph(4)

You might also want to use the tag: RELENG_6_4 for your source
supfile. I'm pretty sure there is a 6.4 branch now the BETA has come
out.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with PAE

2008-01-21 Thread David Robillard
 Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
 PAE option. I've tried NO_MODULES in make.conf as well...

 se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
 /usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
 /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to 
 integer of different size
 *** Error code 1

 Stop in /usr/obj/usr/src/sys/WEBTENT.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.

 This is a custom kernel build with the QUOTA option, I take out the PAE
 option and all makes fine. I did a src-all update with RELENG_VER tag
 prior to building. I assume this is a driver issue compatible with PAE?

 Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
 Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
 not a hardware guy, I am a programmer.

 CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   
 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
 MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
   AMD Features=0x2010NX,LM
   Logical CPUs per core: 2

According to http://www.freebsd.org/platforms/amd64.html the Intel
Xeon (3000-sequence, 5000-sequence, and 7000-sequence) processors use
the Intel(R)64 architecture.
Therefore if your Intel Xeon is in the 3000-sequence, 5000-sequence or
7000-sequence, then you can use FreeBSD/amd64 and use the memory above
4Gb. IMHO it should be more simple and efficient than compiling a
kernel with PAE support.

HTH,

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with PAE

2008-01-21 Thread Pieter de Goeje
On Monday 21 January 2008, David Robillard wrote:
  Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
  PAE option. I've tried NO_MODULES in make.conf as well...
 
  se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
  /usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
  /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to
  integer of different size *** Error code 1
 
  Stop in /usr/obj/usr/src/sys/WEBTENT.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
 
  This is a custom kernel build with the QUOTA option, I take out the PAE
  option and all makes fine. I did a src-all update with RELENG_VER tag
  prior to building. I assume this is a driver issue compatible with PAE?
 
  Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
  Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
  not a hardware guy, I am a programmer.
 
  CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   
  Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,
 MCA,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
AMD Features=0x2010NX,LM
Note the LM feature here:^^
This means the CPU supports Long Mode, which basically means the cpu 
supports the 64bit extensions needed for FreeBSD/amd64.

Logical CPUs per core: 2

 According to http://www.freebsd.org/platforms/amd64.html the Intel
 Xeon (3000-sequence, 5000-sequence, and 7000-sequence) processors use
 the Intel(R)64 architecture.
 Therefore if your Intel Xeon is in the 3000-sequence, 5000-sequence or
 7000-sequence, then you can use FreeBSD/amd64 and use the memory above
 4Gb. IMHO it should be more simple and efficient than compiling a
 kernel with PAE support.

 HTH,

 David

- Pieter de Goeje
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with PAE

2008-01-20 Thread Josh Paetzel
On Saturday 19 January 2008 06:15:15 pm Robert Fitzpatrick wrote:
 Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
 PAE option. I've tried NO_MODULES in make.conf as well...

 se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
 /usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
 /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to
 integer of different size *** Error code 1

 Stop in /usr/obj/usr/src/sys/WEBTENT.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.

 This is a custom kernel build with the QUOTA option, I take out the PAE
 option and all makes fine. I did a src-all update with RELENG_VER tag
 prior to building. I assume this is a driver issue compatible with PAE?

 Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
 Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
 not a hardware guy, I am a programmer.

 CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  
 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MC
A,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
   AMD Features=0x2010NX,LM
   Logical CPUs per core: 2

PAE is a horrible hack, and even if you figured out why it won't compile 
(probably an incompatable driver in your kernel) it's slow.  That particular 
CPU will run FreeBSD/amd64 just fine.  (I happen to have one)  The drawbacks 
to FreeBSD/amd64 are mainly in the desktop arena.  If this is a server I'd go 
for it.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


compiling kernel with PAE

2008-01-19 Thread Robert Fitzpatrick
Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
PAE option. I've tried NO_MODULES in make.conf as well...

se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
/usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
/usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to integer 
of different size
*** Error code 1

Stop in /usr/obj/usr/src/sys/WEBTENT.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

This is a custom kernel build with the QUOTA option, I take out the PAE
option and all makes fine. I did a src-all update with RELENG_VER tag
prior to building. I assume this is a driver issue compatible with PAE?

Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
not a hardware guy, I am a programmer.

CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
  AMD Features=0x2010NX,LM
  Logical CPUs per core: 2

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling kernel problem

2007-05-27 Thread Anton Galitch

Hi I have a problem while compiling my kernel. When I go to /usr/src then
make buildkernel ...
it says that make doesnt know what to do because buildkernel is invalid
option.

I downloaded the latest source and still the same.
In /usr/src there is only sys/ directory.

Thanks for any help.

--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel problem

2007-05-27 Thread Roland Smith
On Sun, May 27, 2007 at 01:51:42PM -0300, Anton Galitch wrote:
  Hi I have a problem while compiling my kernel. When I go to /usr/src then
  make buildkernel ...
  it says that make doesnt know what to do because buildkernel is invalid
  option.
 
  I downloaded the latest source and still the same.
  In /usr/src there is only sys/ directory.

How did you download the source? There should be a lot more in /usr/src.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp7vkilNDGmt.pgp
Description: PGP signature


Re: compiling kernel problem

2007-05-27 Thread Abdullah Ibn Hamad Al-Marri

On 5/27/07, Anton Galitch [EMAIL PROTECTED] wrote:

Hi I have a problem while compiling my kernel. When I go to /usr/src then
make buildkernel ...
it says that make doesnt know what to do because buildkernel is invalid
option.

I downloaded the latest source and still the same.
In /usr/src there is only sys/ directory.

Thanks for any help.

--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



You need to check to do csup -L 2 /usr/share/examples/cvsup/stable-supfile

Also choose the mirror you need and edit the stable-supfile.

If you are using older version than 6.1 use cvsup.

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel problem

2007-05-27 Thread Anton Galitch

I downloaded the source using sysinstall via ftp


--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[SOLVED] Re: compiling kernel problem

2007-05-27 Thread Anton Galitch

Thanks for your help i could get needed files using csup.

On 5/27/07, Anton Galitch [EMAIL PROTECTED] wrote:


I downloaded the source using sysinstall via ftp


--
http://feudaltimes.com.ar - Webmaster, designer and programmer





--
http://feudaltimes.com.ar - Webmaster, designer and programmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel problem

2007-05-27 Thread Conrad J. Sabatier
On Sun, 27 May 2007 20:23:39 +0300
Abdullah Ibn Hamad Al-Marri [EMAIL PROTECTED] wrote:

 On 5/27/07, Anton Galitch [EMAIL PROTECTED] wrote:
  Hi I have a problem while compiling my kernel. When I go
  to /usr/src then make buildkernel ...
  it says that make doesnt know what to do because buildkernel is
  invalid option.
 
  I downloaded the latest source and still the same.
  In /usr/src there is only sys/ directory.
 
  Thanks for any help.
 
  --
  http://feudaltimes.com.ar - Webmaster, designer and programmer
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 
 You need to check to do csup -L
 2 /usr/share/examples/cvsup/stable-supfile
 
 Also choose the mirror you need and edit the stable-supfile.

If you set the relevant variables in /etc/make.conf, and use make
update, then you do not have to edit the sample supfile:

From the sample file /usr/share/examples/etc/make.conf (be sure to
uncomment anything you change):

#SUP_UPDATE=
#SUP=/usr/bin/csup
#SUPFLAGS=   -g -L 2
#SUPHOST=cvsup.uk.FreeBSD.org
#SUPFILE=/usr/share/examples/cvsup/standard-supfile
#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile

 If you are using older version than 6.1 use cvsup.

FWIW, if you want to checkout the actual CVS repository, you still need
to use cvsup as well.  Unfortunately, csup does not yet support CVS
mode.

-- 
Conrad J. Sabatier [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem compiling kernel under FreeBSD 6.1-RELEASE

2006-11-04 Thread Thomas Lane
Hello,

I am attempting to recompile my kernel, so I made
a modified version of the GENERIC kernel configuration
(included below), and attempted a recompile.  I've
tried both the Old and New compilation methods
mentioned in the handbook.  Both of them die, telling
me that they have an undefined reference to several
items that appear to be defined in files in the
/usr/src/sys/netgraph directory (exact info below).  I
tried the experiment of building the unmodified
GENERIC kernel configuration, which works, so I must
have fouled something up in my configuration file, but
I have no idea what.  I'm hoping one of you experts
out there might just know what I did from looking at
it. ;)  My system is an old, but not ancient IBM
Thinkpad laptop with a Pentium 4.  I didn't build it
myself, so I'm not exactly certain what all the
hardware in it is, but it has a built-in CD/DVD-ROM
drive, two mouse-substitutes, built-in ethernet,
serial, parallel, USB, and PS/2 ports, a built-in
sound-card of some sort, and a PCMCIA wireless
ethernet card which sadly is incompatible at the
moment.  I believe the graphics card is some flavor of
ATI Radeon, though I don't know an immediate way to
check that without resorting to Micro$#!+.  Any help
is appreciated.
Thanks,
TRL

Error messages:
---
MAKE=make sh /usr/src/sys/conf/newvers.sh FIFTHREALM
cc -c -O2 -pipe -fno-strict-aliasing  -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc
-I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq
-I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf
-I/usr/src/sys/contrib/dev/ath
-I/usr/src/sys/contrib/dev/ath/freebsd
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -ffreestanding -Werror  vers.c
linking kernel
udbp.o(.text+0x108): In function `udbp_detach':
: undefined reference to `ng_rmnode_self'
udbp.o(.text+0x11b): In function `udbp_detach':
: undefined reference to `ng_unref_node'
udbp.o(.text+0x487): In function `udbp_attach':
: undefined reference to `ng_newtype'
udbp.o(.text+0x4a4): In function `udbp_attach':
: undefined reference to `ng_make_node_common'
udbp.o(.text+0x4de): In function `udbp_attach':
: undefined reference to `ng_name_node'
udbp.o(.text+0x5bd): In function `udbp_attach':
: undefined reference to `ng_unref_node'
udbp.o(.text+0x621): In function
`udbp_in_transfer_cb':
: undefined reference to `ng_package_data'
udbp.o(.text+0x637): In function
`udbp_in_transfer_cb':
: undefined reference to `ng_address_hook'
udbp.o(.text+0x646): In function
`udbp_in_transfer_cb':
: undefined reference to `ng_snd_item'
udbp.o(.text+0x8cd): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_free_item'
udbp.o(.text+0x8d7): In function `ng_udbp_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
udbp.o(.text+0x90b): In function `ng_udbp_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
udbp.o(.text+0x98e): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_address_ID'
udbp.o(.text+0x99d): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_snd_item'
udbp.o(.text+0x9c6): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_free_item'
udbp.o(.text+0x9f6): In function `ng_udbp_rcvdata':
: undefined reference to `ng_free_item'
udbp.o(.text+0xc34): In function `ng_udbp_rmnode':
: undefined reference to `ng_unref_node'
udbp.o(.text+0xc42): In function `ng_udbp_rmnode':
: undefined reference to `ng_make_node_common'
udbp.o(.text+0xc79): In function `ng_udbp_rmnode':
: undefined reference to `ng_name_node'
udbp.o(.text+0xce0): In function `ng_udbp_rmnode':
: undefined reference to `ng_unref_node'
udbp.o(.text+0xd36): In function `ng_udbp_disconnect':
: undefined reference to `ng_rmnode_self'
udbp.o(.rodata+0x20): undefined reference to
`ng_parse_int32_type'
udbp.o(.rodata+0x3c): undefined reference to
`ng_parse_struct_type'
udbp.o(.rodata+0x64): undefined reference to
`ng_parse_int32_type'
udbp.o(.rodata+0x70): undefined reference to
`ng_parse_int32_type'
*** Error code 1

Stop in /usr/obj/usr/src/sys/FIFTHREALM.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
---


Kernel Configuration File:
---
#
# FIFTHREALM -- Modified kernel configuration file for
FreeBSD/i386
#
# For more information on this file, please read the
handbook section on
# Kernel Configuration Files:
#
#   
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in
/usr/share/doc/handbook
# if you've installed the doc distribution, otherwise
always see the
# FreeBSD World Wide Web server
(http://www.FreeBSD.org/) for the
# latest information.
#
# 

Re: Problem compiling kernel under FreeBSD 6.1-RELEASE

2006-11-04 Thread Curtis Jewell

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


You need to specify options NETGRAPH or delete device udbp from your 
kernel configuration.


The second is the more likely option... you probably don't need the udbp 
driver.


- From man 4 udbp:

  The udbp driver provides support for host-to-host cables that contain at
  least two bulk pipes (one for each direction), for example the EzLink
  cable and the NetChip 1080 chip.

  It requires netgraph(4) to be available.  This can be done either by
  adding options NETGRAPH to your kernel configuration file, or alterna-
  tively loading netgraph(4) as a module, either from /boot/loader.conf or
  from the command line, before the udbp module.

- --Curtis

On Sat, 4 Nov 2006, Thomas Lane wrote:


Hello,

   I am attempting to recompile my kernel, so I made
a modified version of the GENERIC kernel configuration
(included below), and attempted a recompile.  I've
tried both the Old and New compilation methods
mentioned in the handbook.  Both of them die, telling

...


- -- 
Curtis Jewell

[EMAIL PROTECTED]

Killed enough? ... Yes, Your Highness, I think we all have.
  --John Patrick Ryan (from 'The Sum Of All Fears', Tom Clancy)

[I use Pine, which deliberately does not display colors and pictures
in HTML mail]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFTUIfvCi+150VKIMRAq+bAKC2X1U1RMKhUrYMwi3P88iS+T0lEgCfVZmp
5I1v9YJYk6h1yhqC/VyD0rE=
=nKEd
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Compiling Kernel Modules

2006-08-16 Thread Lawrence Bowie
I hope this is the correct list for this question but ..

I am trying NOT to compile certain modules when I create
my own custom kernel. I thought /etc/make.conf with the
directive WITHOUT_MODULES did what I was expecting but
it does not.

So, how do I leave out certain modules when custom
compile a new kernel?

Thanks ..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compiling Kernel Modules

2006-08-16 Thread Daniel Gerzo
Hello Lawrence,

Wednesday, August 16, 2006, 10:21:27 PM, you wrote:

 I hope this is the correct list for this question but ..

 I am trying NOT to compile certain modules when I create
 my own custom kernel. I thought /etc/make.conf with the
 directive WITHOUT_MODULES did what I was expecting but
 it does not.

Actually, WITHOUT_MODULES is a list of modules you want to exclude
from the build.

You are looking for MODULES_OVERRIDE directive.

Please refer to the make.conf(5) manual page.

 So, how do I leave out certain modules when custom
 compile a new kernel?

 Thanks ..

-- 
Best regards,
 Danielmailto:[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compiling Kernel Modules

2006-08-16 Thread LDB

Daniel Gerzo wrote:

Hello Lawrence,

Wednesday, August 16, 2006, 10:21:27 PM, you wrote:



I hope this is the correct list for this question but ..




I am trying NOT to compile certain modules when I create
my own custom kernel. I thought /etc/make.conf with the
directive WITHOUT_MODULES did what I was expecting but
it does not.



Actually, WITHOUT_MODULES is a list of modules you want to exclude
from the build.

You are looking for MODULES_OVERRIDE directive.

Please refer to the make.conf(5) manual page.



So, how do I leave out certain modules when custom
compile a new kernel?




Thanks ..





CRAP I read it wrong... Thanks Daniel ..

LDB
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Compiling Kernel for Computer with 2 CPUs

2006-05-27 Thread Maan Jee

Hi

I have a Companq Professional AP400 with two Pentium III processors. I want
to install FreeBSD on my computer and use it as Web Server.

To make real use of Two Processors, I want to Recompile Kernel but I don't
see any option to compile the kernel in the file as there used to be in old
version such as 5 and 5.4, etc.

Could you advise me that how can I compile my kernel, with which option, so
I could make use of my two processors?

Another thing, is it a good box for running a webserver with mysql-database
or should I buy one?

Thanks

--
BR / mj
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compiling Kernel for Computer with 2 CPUs

2006-05-27 Thread Lukas Razik

Hello!

You need this option/device in your KERNCONF file:
options SMP
device  apic

For better performance comment out SCHED_4BSD:
#options SCHED_4BSD
And take this:
options SCHED_ULE

You could also try these optimizations:
makeoptions COPTFLAGS=-O2 -pipe -funroll-loops -ffast-math

Read this:
http://www.de.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
http://www.silverwraith.com/papers/freebsd-kernel.php



Another thing, is it a good box for running a webserver with mysql-database
or should I buy one?


Normally it is but it depends on the load...
And more important than the number of CPUs could be the RAM...

Regards,
Lukas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling kernel

2005-08-30 Thread Efren Bravo
Hi,

Trying to compile the kernel I found this problem:

 My PC has not ISA slot and I want to disable it from
/sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
pointing to isa.   
  
 Can I remove those devices declarations? Because for example my pc
doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
atkbdc devices? Can I also remove them?

 Thanks a lot...


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread [EMAIL PROTECTED]
On Tue, 30 Aug 2005 16:14:25 -0500
Efren Bravo [EMAIL PROTECTED] wrote:

 Trying to compile the kernel I found this problem:
 
  My PC has not ISA slot and I want to disable it from
 /sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
 pointing to isa.   

from GENERIC

# Bus support.  Do not remove isa, even if you have no isa slots
device  isa
device  eisa
device  pci

normally i only comment out eisa

  Can I remove those devices declarations? Because for example my pc
 doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
 atkbdc devices? Can I also remove them?

no scsi ? yes, i think you can remove all scsi-card lines, but some
scsi-device lines might be needed for burning cdroms and dvds, R.T. Fine
M. see the handbook about burning cd/dvd if you need that

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread Glenn Dawson

At 02:14 PM 8/30/2005, Efren Bravo wrote:

Hi,

Trying to compile the kernel I found this problem:

 My PC has not ISA slot and I want to disable it from
/sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
pointing to isa.

 Can I remove those devices declarations? Because for example my pc
doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
atkbdc devices? Can I also remove them?


You can remove devices that you don't have, but you need to leave the 
isa device in the kernel.


-Glenn



 Thanks a lot...


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread Robert Slade
On Tue, 2005-08-30 at 22:14, Efren Bravo wrote:
 Hi,
 
 Trying to compile the kernel I found this problem:
 
  My PC has not ISA slot and I want to disable it from
 /sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
 pointing to isa.   
   
  Can I remove those devices declarations? Because for example my pc
 doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
 atkbdc devices? Can I also remove them?
 
  Thanks a lot...
 
Efren,

See the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

In particular it says to not remove isa support even if you have no isa.

Rob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-08-30 Thread Kevin Kinsey

Efren Bravo wrote:


Hi,

Trying to compile the kernel I found this problem:

My PC has not ISA slot and I want to disable it from
/sys/i386/conf/MYKERNEL but on /boot/device.hints I found some devices
pointing to isa.   
 
Can I remove those devices declarations? Because for example my pc

doesn't have SCSI but what can I do with ata, fdc, ppc, sio, vga, psm and
atkbdc devices? Can I also remove them?

Thanks a lot...

 



If you think you have a machine that will run without drivers for
an ATA disk controller, a Floppy Disk Controller, a Parallel Port
Chipset driver, any serial communications (sio), a video console (vga),
a mouse, and a keyboard, then by all means go ahead and try it. 
BUT if I were you I'd do man ata, man fdc, man ppc, etc. and see

what those things do before I remove them from my kernel.

((In other words, leave it all in!!!)

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: a problem with compiling kernel

2005-05-11 Thread Kris Kennaway
On Wed, May 11, 2005 at 09:18:33AM +0400, Alexander Soldatov wrote:
 Hi!
 
  
 
 I've got an error when I try to compile kernel with new configuration.
 
 That is:
 
  
 
 if_gif.c: In function 'gif_destroy':
 
 if_gif.c:187: warning: unused variable 'err'
 
 Error code 1
 

That's not an error, please give more context for what you're doing.
If you're using -j with your kernel build, don't, because it obscures
the real error.

Kris


pgp6NVuEWasGC.pgp
Description: PGP signature


Re: a problem with compiling kernel

2005-05-11 Thread Idar Tollefsen
Alexander Soldatov wrote:
I've got an error when I try to compile kernel with new configuration.
That is:
if_gif.c: In function 'gif_destroy':
if_gif.c:187: warning: unused variable 'err'
Error code 1
Try setting
NO_WERROR=  yes
in make.conf.
If WARNS_ERROR=yes (defaults/make.conf), it will treat warnings as errors. 
NO_WERROR=yes disables that behavior. At least this is how it works on 4.x.

- IT
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: [OBORONA-SPAM] Re: a problem with compiling kernel

2005-05-11 Thread Alexander Soldatov
I need to make new kernel. So I've make my own config file from GENERIC. 
Then standart operations:
1. config CUSTOM (this's my config file) 
2. make depend
3. make

As a matter of fact that problem occurred on the stage 3 when I run 'make'.
I'm novice with Freebsd so it's hard to resolve this problem by myself.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kris Kennaway
Sent: Wednesday, May 11, 2005 10:13 AM
To: Alexander Soldatov
Cc: freebsd-questions@freebsd.org
Subject: [OBORONA-SPAM] Re: a problem with compiling kernel

On Wed, May 11, 2005 at 09:18:33AM +0400, Alexander Soldatov wrote:
 Hi!
 
  
 
 I've got an error when I try to compile kernel with new configuration.
 
 That is:
 
  
 
 if_gif.c: In function 'gif_destroy':
 
 if_gif.c:187: warning: unused variable 'err'
 
 Error code 1
 

That's not an error, please give more context for what you're doing.
If you're using -j with your kernel build, don't, because it obscures
the real error.

Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [OBORONA-SPAM] Re: a problem with compiling kernel

2005-05-11 Thread Kris Kennaway
On Wed, May 11, 2005 at 11:38:49AM +0400, Alexander Soldatov wrote:
 I need to make new kernel. So I've make my own config file from GENERIC. 
 Then standart operations:
 1. config CUSTOM (this's my config file) 
 2. make depend
 3. make
 
 As a matter of fact that problem occurred on the stage 3 when I run 'make'.
 I'm novice with Freebsd so it's hard to resolve this problem by myself.

I asked you to provide more context, i.e. post the relevant part of
the output you receive.  What you posted previously did not indicate
an error.

Kris


pgp2l8jdayYqu.pgp
Description: PGP signature


Re: a problem with compiling kernel

2005-05-11 Thread Kris Kennaway
On Wed, May 11, 2005 at 09:33:38AM +0200, Idar Tollefsen wrote:
 Alexander Soldatov wrote:
 I've got an error when I try to compile kernel with new configuration.
 That is:
 
 if_gif.c: In function 'gif_destroy':
 
 if_gif.c:187: warning: unused variable 'err'
 
 Error code 1
 
 Try setting
 NO_WERROR=  yes
 in make.conf.
 
 If WARNS_ERROR=yes (defaults/make.conf), it will treat warnings as errors. 
 NO_WERROR=yes disables that behavior. At least this is how it works on 4.x.

This should not be an issue in a default installation unless you have
turned on additional warnings explicitly, or modified the kernel
source to introduce them.

Kris



pgph67KgHNlGQ.pgp
Description: PGP signature


RE: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: a problem with compiling kernel

2005-05-11 Thread Alexander Soldatov
That's the full output of 'make' command:

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
-st
d=c99  -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica
-I../../../co
ntrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf
-I../../../contrib/
dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm
-D_KERNEL -i
nclude opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=1
00 --param large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack
-boundary=2 -ffreestanding -Werror  ../../../net/if_gif.c
../../../net/if_gif.c: In function `gif_destroy':
../../../net/if_gif.c:187: warning: unused variable `err'
*** Error code 1


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kris Kennaway
Sent: Wednesday, May 11, 2005 11:43 AM
To: Alexander Soldatov
Cc: freebsd-questions@freebsd.org; 'Kris Kennaway'
Subject: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: a problem with compiling
kernel

On Wed, May 11, 2005 at 11:38:49AM +0400, Alexander Soldatov wrote:
 I need to make new kernel. So I've make my own config file from GENERIC. 
 Then standart operations:
 1. config CUSTOM (this's my config file) 
 2. make depend
 3. make
 
 As a matter of fact that problem occurred on the stage 3 when I run
'make'.
 I'm novice with Freebsd so it's hard to resolve this problem by myself.

I asked you to provide more context, i.e. post the relevant part of
the output you receive.  What you posted previously did not indicate
an error.

Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: a problem with compiling kernel

2005-05-11 Thread Kris Kennaway
On Wed, May 11, 2005 at 12:29:36PM +0400, Alexander Soldatov wrote:
 That's the full output of 'make' command:
 
 cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -W
 missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
 -st
 d=c99  -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica
 -I../../../co
 ntrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf
 -I../../../contrib/
 dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm
 -D_KERNEL -i
 nclude opt_global.h -fno-common -finline-limit=8000 --param
 inline-unit-growth=1
 00 --param large-function-growth=1000  -mno-align-long-strings
 -mpreferred-stack
 -boundary=2 -ffreestanding -Werror  ../../../net/if_gif.c
 ../../../net/if_gif.c: In function `gif_destroy':
 ../../../net/if_gif.c:187: warning: unused variable `err'
 *** Error code 1

You apparently have neither INET nor INET6 support in your kernel.  Is
this really what you want?

Kris


pgpBII301YZr5.pgp
Description: PGP signature


a problem with compiling kernel

2005-05-10 Thread Alexander Soldatov
Hi!

 

I've got an error when I try to compile kernel with new configuration.

That is:

 

if_gif.c: In function 'gif_destroy':

if_gif.c:187: warning: unused variable 'err'

Error code 1

 

My config file in the attachment.

 

Thank's

 

 



CUSTOM
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


error while compiling kernel help ?!?

2005-03-05 Thread Brent

I was adding some options to my kernel on a Freebsd 4.10 machine and ran into
the following when i tried to run the last step of make install

simitar.bmyster.net(root)# make install
chflags noschg /kernel
chflags: /kernel: Operation not permitted
*** Error code 1 (ignored)
mv /kernel /kernel.old
mv: rename /kernel to /kernel.old: Operation not permitted
*** Error code 1
Stop in /usr/src/sys/compile/SIMITAR.


 
any help is greatly appreciated


--
Brent

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error while compiling kernel help ?!?

2005-03-05 Thread Chuck Swiger
Brent wrote:
I was adding some options to my kernel on a Freebsd 4.10 machine and ran into
the following when i tried to run the last step of make install
simitar.bmyster.net(root)# make install
chflags noschg /kernel
chflags: /kernel: Operation not permitted
*** Error code 1 (ignored)
mv /kernel /kernel.old
mv: rename /kernel to /kernel.old: Operation not permitted
*** Error code 1
Change your securelevel setting (in /etc/rc.conf?) down to 0 and retry.
--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error while compiling kernel help ?!?

2005-03-05 Thread Brent
That doesnt seem to work .. also in /etc/rc.conf  it was already set to 

kern_securelevel=0
kern_securelevel_enable=YES

Im not sure that when you do a make install ...does it read the /etc/rc.conf
...i also tried to lower the kern security by doing as root

sysctl -w kern.securelevel=0

but i got denied 

your help is very appreciated  


Brent



On Sat, 05 Mar 2005 12:02:29 -0500, Chuck Swiger wrote
 Brent wrote:
  I was adding some options to my kernel on a Freebsd 4.10 machine and ran 
  into
  the following when i tried to run the last step of make install
  
  simitar.bmyster.net(root)# make install
  chflags noschg /kernel
  chflags: /kernel: Operation not permitted
  *** Error code 1 (ignored)
  mv /kernel /kernel.old
  mv: rename /kernel to /kernel.old: Operation not permitted
  *** Error code 1
 
 Change your securelevel setting (in /etc/rc.conf?) down to 0 and retry.
 
 -- 
 -Chuck


--

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error while compiling kernel help ?!?

2005-03-05 Thread Lowell Gilbert
Brent [EMAIL PROTECTED] writes:

 That doesnt seem to work .. also in /etc/rc.conf  it was already set to 
 
 kern_securelevel=0
 kern_securelevel_enable=YES

Try spelling that NO instead of YES.
Next reboot, you'll be able to change file flags.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error while compiling kernel help ?!?

2005-03-05 Thread Brent
Thank you ...that worked ...I should have known that ...oh well..

thank you once again

Brent


On 05 Mar 2005 12:41:11 -0500, Lowell Gilbert wrote
 Brent [EMAIL PROTECTED] writes:
 
  That doesnt seem to work .. also in /etc/rc.conf  it was already set to 
  
  kern_securelevel=0
  kern_securelevel_enable=YES
 
 Try spelling that NO instead of YES.
 Next reboot, you'll be able to change file flags.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling kernel

2005-01-24 Thread Josip
Let me first just say that I'm new to FreeBSD. I'm tring to compile a 
custom kernel and when I do make buildkernel KERNCONF=NEWKERN  I get  
this:
perl5 /usr/src/sys/kern/vnode_if.pl -h /usr/src/sys/kern/vnode_if.src
perl5:No such file or directory.

Both files are in the specified dir.
When I run the above command manualy it execues OK and creates the file 
vnode_if.h in pwd.

What am I doing wrong?
Thanks!
PS Also if I do make buildkernel KERNCONF=GENERIC I get the same error!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-01-24 Thread Oliver Leitner
$ which perl5
/usr/local/bin/perl5
$ perl5 --version

This is perl, v5.8.5 built for i386-freebsd-64int

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

Thats my info on perl5, which tells me, that i prolly installed it through 
the ports collection (hence /usr/local...), and that its the perl version 
5.8.5 from there...

maybe you just havent the right perl installed?

but i cant put my hand into the fire for this, after all im new to bsd=)

Greetings
Oliver Leitner
Technical Staff
http://www.shells.at

On Monday 24 January 2005 15:13, Josip wrote:
 Let me first just say that I'm new to FreeBSD. I'm tring to compile a
 custom kernel and when I do make buildkernel KERNCONF=NEWKERN  I get
 this:
 perl5 /usr/src/sys/kern/vnode_if.pl -h /usr/src/sys/kern/vnode_if.src
 perl5:No such file or directory.

 Both files are in the specified dir.

 When I run the above command manualy it execues OK and creates the file
 vnode_if.h in pwd.

 What am I doing wrong?

 Thanks!

 PS Also if I do make buildkernel KERNCONF=GENERIC I get the same error!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
By reading this mail you agree to the following:

using or giving out the email address and any 
other info of the author of this email is strictly forbidden.
By acting against this agreement the author of this mail 
will take possible legal actions against the abuse.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel

2005-01-24 Thread Kris Kennaway
On Mon, Jan 24, 2005 at 03:13:32PM +0100, Josip wrote:
 Let me first just say that I'm new to FreeBSD. I'm tring to compile a 
 custom kernel and when I do make buildkernel KERNCONF=NEWKERN  I get  
 this:
 perl5 /usr/src/sys/kern/vnode_if.pl -h /usr/src/sys/kern/vnode_if.src
 perl5:No such file or directory.
 
 Both files are in the specified dir.
 
 When I run the above command manualy it execues OK and creates the file 
 vnode_if.h in pwd.
 
 What am I doing wrong?

Did you run 'make buildworld' first as explained in the docs?  Also,
you forgot to mention what version of FreeBSD you're running.

Kris

pgpwXhY9Kg7sk.pgp
Description: PGP signature


compiling kernel with ndis options

2004-11-29 Thread FreeBsdBeni
Hi,

When trying to use ndis on my 5.3-rel-p1, I get the following compile error. I 
added to my kernel options ndisapi and device ndis (the device wlan was 
already compiled in), all as found in the man ndis-synopsis. But the 
compilation stops because there is a file missing : ndis_driver_data.h. That 
file I created with ndiscvt -i file.inf -s file.sys -o ndis_driver_data.h 
in the /usr/src/sys/modules/if_ndis directory and now I've made a copy of it 
in the /usr/src/sys/dev/if_ndis directory but the compilation still does not 
find the needed file (and it is there !). I already did a make 
in /usr/src/sys/modules/ndis and /modules/if_ndis and I can load those .ko 
modules without any problems with a kldload, even at boot 
via /boot/loader.conf.

Any hints on how I get my kenel compiled ?

make buildkernel KERNKONF=BENI-53 in /usr/src gives (the config BENI-53 
gives no errors) :
...
rm -f .newdep
/usr/obj/usr/src/make.i386/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  
MKDEP_CPP=cc -E CC=ccxargs mkdep -a -f .newdep -O -pipe  -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc 
-I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica 
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter 
-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath 
-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
/usr/src/sys/dev/if_ndis/if_ndis.c:85:30: ndis_driver_data.h: No such file or 
directory
/usr/src/sys/dev/if_ndis/if_ndis_pccard.c:66:30: ndis_driver_data.h: No such 
file or directory
/usr/src/sys/dev/if_ndis/if_ndis_pci.c:65:30: ndis_driver_data.h: No such file 
or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/obj/usr/src/sys/BENI-53.
*** Error code 1

Stop in /usr/obj/usr/src/sys/BENI-53.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

-- 
Beni.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error compiling kernel

2004-09-04 Thread messmate
On Sat, 4 Sep 2004 02:03:26 +0400
Sergey Zaharchenko [EMAIL PROTECTED] wrote:

On Fri, Sep 03, 2004 at 09:40:35PM +0200,
 messmate probably wrote:
 Hello,
 to setup the pf firewall had to compile 
 a new kernel.
 So added the options, compile and get this error :
 gensetdefs:  kern_synch.o: not an ELF file
 gensetdefs:  sys.pipe.o:  not an ELF ile

Try doing a make clean before the make buildkernel.

Ok, it's done and runnung :)

Erm, has pf been backported to 4.x yet?

I CVS pf from 4_10 but it's only for ver.5 or above ???
What does this mean ?
Thanks
mess-mate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


error compiling kernel

2004-09-03 Thread messmate
Hello,
to setup the pf firewall had to compile 
a new kernel.
So added the options, compile and get this error :
gensetdefs:  kern_synch.o: not an ELF file
gensetdefs:  sys.pipe.o:  not an ELF ile
*** ERROR code 1
What could this mean ?
Running release 4.10
Any help would be very appreciated.
mess-mate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


error in make phase while compiling kernel

2004-08-12 Thread ashadul hoque
Hi everyone

I am observing the following error messages of the following type while 
compiling custom kernel.

umass.o: In function 'umass_cam_detach_sim':
umass.o(.test+0x1a5c): undefined reference to 'xpt_bus_deregister'
umass.o(.test+0x1a78): undefined reference to 'cam_sim_free'

What is the reason?

regards
Ashadul

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error in make phase while compiling kernel

2004-08-12 Thread Kent Stewart
On Thursday 12 August 2004 02:43 am, ashadul hoque wrote:
 Hi everyone

 I am observing the following error messages of the following type
 while compiling custom kernel.

 umass.o: In function 'umass_cam_detach_sim':
 umass.o(.test+0x1a5c): undefined reference to 'xpt_bus_deregister'
 umass.o(.test+0x1a78): undefined reference to 'cam_sim_free'

 What is the reason?



You commented out too much. Read the requirements on umass in the 
GENERIC config file and either add them back or comment out the line 
with umass on it..

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel :(

2004-03-31 Thread Martin Welk
On Tue, Mar 30, 2004 at 07:30:22PM -0500, Brian G. wrote:

 im pretty new to freebsd
 got it about two weeks ago
 now i've been trying to get kazaa on my box so i have installed wine, but 
 whenever i try to run it i get an error and a question wheter i have added 
 USER_LDT option to my kernel
 which brings me to my current problem
(...)
 /usr/src/sys/dev/usb/if_aue.c:769: undefined reference to `mii_phy_probe'
 if_aue.o: In function `aue_tick':
 /usr/src/sys/dev/usb/if_aue.c:1116: undefined reference to `mii_tick'
 /usr/src/sys/dev/usb/if_aue.c:1118: undefined reference to `mii_pollstat'
 if_aue.o: In function `aue_init':
(...)
 # PCI Ethernet NICs that use the common MII bus controller code.
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
   =
(...)
 # ISA Ethernet NICs.
 # 'device ed' requires 'device miibus'
===
(...)
 # USB Ethernet, requires mii
  
(...)

But, at all, no device miibus line in your kernel config file - and
that's where the above error messages come from.

So, please add device miibus again and take care of that sort of
warnings, they're there for a reason :)

Regards,
Martin
-- 
  ,,Oh, there's a lot of opportunities, if you're knowing to take them,
  you know, there's a lot of opportunities, if there aren't
you can make them, make or break them!'' (Tennant/Lowe)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling kernel :(

2004-03-30 Thread Brian G.
hello
im pretty new to freebsd
got it about two weeks ago
now i've been trying to get kazaa on my box so i have installed wine, but 
whenever i try to run it i get an error and a question wheter i have added 
USER_LDT option to my kernel
which brings me to my current problem
whenever i attempt to compile my kernel i get this after a while :
umass.o:/usr/src/sys/dev/usb/umass.c:2683: more undefined references to 
`xpt_done' follow
if_aue.o: In function `aue_attach':
/usr/src/sys/dev/usb/if_aue.c:769: undefined reference to `mii_phy_probe'
if_aue.o: In function `aue_tick':
/usr/src/sys/dev/usb/if_aue.c:1116: undefined reference to `mii_tick'
/usr/src/sys/dev/usb/if_aue.c:1118: undefined reference to `mii_pollstat'
if_aue.o: In function `aue_init':
/usr/src/sys/dev/usb/if_aue.c:1277: undefined reference to `mii_mediachg'
if_aue.o: In function `aue_ifmedia_upd':
/usr/src/sys/dev/usb/if_aue.c:1342: undefined reference to `mii_phy_reset'
/usr/src/sys/dev/usb/if_aue.c:1347: undefined reference to `mii_mediachg'
if_aue.o: In function `aue_ifmedia_sts':
/usr/src/sys/dev/usb/if_aue.c:1363: undefined reference to `mii_pollstat'
if_aue.o: In function `csr_write_1':
/usr/src/sys/dev/usb/if_aue.c:316: undefined reference to 
`miibus_readreg_desc'
/usr/src/sys/dev/usb/if_aue.c:316: undefined reference to 
`miibus_writereg_desc'
/usr/src/sys/dev/usb/if_aue.c:318: undefined reference to 
`miibus_statchg_desc'
if_aue.o: In function `csr_write_2':
/usr/src/sys/dev/usb/if_aue.c:342: undefined reference to `miibus_driver'
/usr/src/sys/dev/usb/if_aue.c:344: undefined reference to `miibus_devclass'
if_ed.o: In function `ed_tick':
/usr/src/sys/dev/ed/if_ed.c:1749: undefined reference to `mii_tick'
if_ed.o: In function `ed_init':
/usr/src/sys/dev/ed/if_ed.c:1899: undefined reference to `mii_mediachg'
if_ed.o: In function `ed_ifmedia_upd':
/usr/src/sys/dev/ed/if_ed.c:3286: undefined reference to `mii_mediachg'
if_ed.o: In function `ed_ifmedia_sts':
/usr/src/sys/dev/ed/if_ed.c:3302: undefined reference to `mii_pollstat'
if_ed_pccard.o: In function `ed_pccard_attach':
/usr/src/sys/dev/ed/if_ed_pccard.c:248: undefined reference to 
`mii_phy_probe'
if_ed_pccard.o: In function `ed_pccard_detach':
/usr/src/sys/dev/ed/if_ed_pccard.c:125: undefined reference to 
`miibus_readreg_desc'
/usr/src/sys/dev/ed/if_ed_pccard.c:127: undefined reference to 
`miibus_writereg_desc'
if_ed_pccard.o: In function `ed_pccard_probe':
/usr/src/sys/dev/ed/if_ed_pccard.c:147: undefined reference to 
`miibus_driver'
/usr/src/sys/dev/ed/if_ed_pccard.c:156: undefined reference to 
`miibus_devclass'
*** Error code 1

Stop in /usr/obj/usr/src/sys/MYKERNEL.
*** Error code 1
Stop in /usr/src.
*** Error code 1
i have no idea what it could be
here is my kernel config file (locared at /usr/src/sys/i386/conf/):
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#   
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.54 2003/04/28 03:41:46 
simokawa Exp $

machine i386
cpu I686_CPU
ident   MYKERN
maxusers64
makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

#optionsMATH_EMULATE#Support for x87 emulation
options INET#InterNETworking
options INET6   #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options FFS_ROOT#FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
#optionsUFS_DIRHASH #Improve performance on big directories
options MFS #Memory Filesystem
options MD_ROOT #MD is a potential root device
#optionsNFS #Network Filesystem
#optionsNFS_ROOT#NFS usable as root device, NFS required
#optionsMSDOSFS #MSDOS Filesystem
options CD9660  #ISO 9660 Filesystem
options CD9660_ROOT #CD-ROM usable as root, CD9660 required
options PROCFS  #Process filesystem
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
#optionsSCSI_DELAY=15000#Delay (in ms) before probing SCSI
options UCONSOLE#Allow users to grab the console

Re: compiling kernel :(

2004-03-30 Thread Don
 whenever i try to run it i get an error and a question wheter i have added
 USER_LDT option to my kernel
 which brings me to my current problem
 whenever i attempt to compile my kernel i get this after a while :
The answer to your question is in the file you sent:

 umass.o:/usr/src/sys/dev/usb/umass.c:2683: more undefined references to
 `xpt_done' follow

 deviceumass   # Disks/Mass storage - Requires scbus and da

You have defined umass but the driver specifically says it requires scbus
and da which you have not defined.

The same is true of your network cards. You have defined ethernet cards
whcih require the miibus and yet you have not defined the miibus device in
your config file.

The answers are there but you need to sit down and actually read the
kernel config file. If you randomly delete or include options without
reading them then the kernel is not going to compile.

-Don
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem compiling kernel 5.2.1

2004-03-04 Thread Cesar da Silva
Hi!
I'm having problem with compiling my kernel (v5.2.1). I Cvsup:ed it today (so
that I could fix the TCP/IP-security problem. Here is the output:

--8
ld -Bshareable -d -warn-common -o vesa.ko vesa.kld
1 error
*** Error code 2
1 error
*** Error code 2
1 error
hostname#
--8

I've got the same problem with 5.2 as well with 5.2.1.

Does anyone else have the same problem as I have?

Regards.
Cesar da Silva



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Problem compiling kernel 5.2.1

2004-03-04 Thread Remko Lodder
did you make depend before?

how does your kernel config look like?

(I think you where too little in information)

Cheers

--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the
hackerscene

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Cesar da Silva
Verzonden: donderdag 4 maart 2004 19:05
Aan: [EMAIL PROTECTED]
Onderwerp: Problem compiling kernel 5.2.1


Hi!
I'm having problem with compiling my kernel (v5.2.1). I Cvsup:ed it today
(so
that I could fix the TCP/IP-security problem. Here is the output:

--8
ld -Bshareable -d -warn-common -o vesa.ko vesa.kld
1 error
*** Error code 2
1 error
*** Error code 2
1 error
hostname#
--8

I've got the same problem with 5.2 as well with 5.2.1.

Does anyone else have the same problem as I have?

Regards.
Cesar da Silva



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem compiling kernel 5.2.1

2004-03-04 Thread Kris Kennaway
On Thu, Mar 04, 2004 at 07:05:14PM +0100, Cesar da Silva wrote:
 Hi!
 I'm having problem with compiling my kernel (v5.2.1). I Cvsup:ed it today (so
 that I could fix the TCP/IP-security problem. Here is the output:
 
 --8
 ld -Bshareable -d -warn-common -o vesa.ko vesa.kld
 1 error
 *** Error code 2
 1 error
 *** Error code 2
 1 error
 hostname#

Looks like you're compiling with make -j, because the above doesn't
show any actual errors.  Rebuild without -j and post the real errors,
since -j obscures them.

Kris


pgp0.pgp
Description: PGP signature


Re: error compiling kernel for SMP

2004-02-03 Thread Kris Kennaway
On Tue, Feb 03, 2004 at 01:58:24AM -0500, Scott Wallace wrote:

 I have a computer running FreeBSD 4.3. This computer has dual 266MHz
 Intel PII processors. I am trying to compile a new kernel for the
 multiple processors. I copied GENERIC to DUALIE and uncommented the
 two lines for SMP kernel. I have tried the old way and the new way
 according to
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
 where it lists both the old way and new way. I cannot get either way
 to work.

Please wrap your lines at 70 characters so your emails may be easily
read.

It looks like you don't have a full kernel source tree.  Please
compare your cvsupfile to the samples in /usr/share/examples/cvsup, or
post your cvsupfile if you can't figure it out.

Kris

pgp0.pgp
Description: PGP signature


error compiling kernel for SMP

2004-02-02 Thread Scott Wallace
I have a computer running FreeBSD 4.3. This computer has dual 266MHz Intel PII 
processors. I am trying to compile a new kernel for the multiple processors. I copied 
GENERIC to DUALIE and uncommented the two lines for SMP kernel. I have tried the old 
way and the new way according to 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html 
where it lists both the old way and new way. I cannot get either way to work. 


When trying the old way, everything goes ok until I cd ../../compile/DUALIE and issue 
the command make depend at which time I get the following error:
=== accf_data
/usr/src/sys/modules/accf_data/../../conf/kmod.mk, line 63: Could not find 
bsd.init.mk
/usr/src/sys/modules/accf_data/../../conf/kmod.mk, line 190: Could not find 
bsd.links.mk
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/src/sys/compile/DUALIE.



When trying the new way I issue the command make buildkernel KERNCONF=DUALIE  the make 
process begins and chugs along for a few minutes, then I get the following error:
=== crypto
@ - /usr/src/sys
machine - /usr/src/sys/i386/include
make: don't know how to make des_enc.c. Stop
*** Error code 2

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/DUALIE.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


I am having great trouble finding anything on the Internet about this and pretty much 
at a loss about what is causing this problem and how to resolve it. Any help you can 
offer will be greatly appreciated.
Thank You
Owen Wallace
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling kernel with netgraph option

2004-01-30 Thread niraj kumar
1. how can we compile kernel in freebsd 4.7 with netgraph option.
 
2 what is the procedure to add ur own module between the lower and the higher node of 
the ng_ether.
 
3 where i can find more about this
   
 niraj

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling kernel with netgraph option

2004-01-30 Thread Chris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 30 January 2004 11:56 pm, niraj kumar wrote:
 1. how can we compile kernel in freebsd 4.7 with netgraph option.

 2 what is the procedure to add ur own module between the lower and the
 higher node of the ng_ether.

 3 where i can find more about this

  niraj


I know this sounds redundant, but your answer might be in the Questions 
Archive - and consider this:
http://www.google.com/search?hl=enlr=ie=ISO-8859-1q=kernel+in+freebsd+4.7+with+netgraphbtnG=Google+Search

- -- 
Best regards,
Chris

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBQBs2pw+T/4DAG8NjEQIBIwCeJM0KMzA8Wj0FlYa3CNShuLuYfLAAoIvp
W8M+6EJdaCjkKzlk+j6ackL4
=I7xR
-END PGP SIGNATURE-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Memory problem while compiling kernel.

2004-01-19 Thread Hossein
Hello;

I tried to compile my 5.1 FreeBSD with these two new options:
options PFIL_HOOKS
options RANDOM_IP_ID

config was successful, and also make depend.But when I tried to make after a few 
seconds I see this message and the process stops
linking kernel
uhub.o: file not recognized: Memory exhausted
***Error code 1

I searched the net for a solution and found that maybe te limits in login.conf 
may cause this problem. But after removing the limits I get the same error. My disk 
usage is like this:

FilesystemSize   Used  Avail Capacity  Mounted on
/dev/ad0s1a   248M70M   157M31%/
devfs 1.0K   1.0K 0B   100%/dev
/dev/ad0s1e   248M55M   173M24%/tmp
/dev/ad0s1f54G   3.7G46G 7%/usr
/dev/ad0s1d   248M27M   201M12%/var

Mohammad H. Falaki

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Memory problem while compiling kernel.

2004-01-19 Thread Kent Stewart
On Tuesday 20 January 2004 06:22 am, Hossein wrote:
 Hello;

 I tried to compile my 5.1 FreeBSD with these two new options:
   options PFIL_HOOKS
   options RANDOM_IP_ID

I couldn't find any reference to these options.


 config was successful, and also make depend.But when I tried to
 make after a few seconds I see this message and the process stops
 linking kernel
   uhub.o: file not recognized: Memory exhausted
   ***Error code 1

Have you commented any of the USB options. I have a uhub.o in my modules 
directory.


   I searched the net for a solution and found that maybe te limits in
 login.conf may cause this problem. But after removing the limits I
 get the same error. My disk usage is like this:

 FilesystemSize   Used  Avail Capacity  Mounted on
 /dev/ad0s1a   248M70M   157M31%/
 devfs 1.0K   1.0K 0B   100%/dev
 /dev/ad0s1e   248M55M   173M24%/tmp
 /dev/ad0s1f54G   3.7G46G 7%/usr
 /dev/ad0s1d   248M27M   201M12%/var


I don't think it has anything to do with your file systems. Unless you 
are running out of memory and swap.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem when compiling kernel

2003-09-27 Thread spc
Hello, I am inexperienced in this of the UNIX, and have installed FreeBSD
(4,8 stable), but when attempt to do a customized kernel, with himself not
to compile it.  I have reinstalled the sources, I have checked the integrity
of the CDs with MD5, I have tried to compile with the options generic, and
nothing.  The message that I obtain is the following one (with the generic
option):

 Sept 27 8:24:52 /kernel:pid 66564 (cc1), uid0:
 exited on signal 10 (core dumped)
 cc: Internal compiler error: program cc1 gor fatal signal 10
 *** Error code 1
 Stop in usr/obj/usr/src/sys/GENERIC.
 * Error code 1
 Stop in usr/src/
 #{standard input}: assembler messages:
 {standard input}:2158: Warning: end of file no at end of a line; newlinew
 inserted

Somebody can help me?.
(Excuse my badly English).

Greetings from Spain

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem when compiling kernel

2003-09-27 Thread Kris Kennaway
On Sat, Sep 27, 2003 at 07:30:17PM +0200, spc wrote:
 Hello, I am inexperienced in this of the UNIX, and have installed FreeBSD
 (4,8 stable), but when attempt to do a customized kernel, with himself not
 to compile it.  I have reinstalled the sources, I have checked the integrity
 of the CDs with MD5, I have tried to compile with the options generic, and
 nothing.  The message that I obtain is the following one (with the generic
 option):
 
  Sept 27 8:24:52 /kernel:pid 66564 (cc1), uid0:
  exited on signal 10 (core dumped)
  cc: Internal compiler error: program cc1 gor fatal signal 10

This is a FAQ and usually indicates bad hardware (RAM, CPU fan,
motherboard, etc).

Kris


pgp0.pgp
Description: PGP signature


Compiling kernel and making world as non-root

2003-08-01 Thread Alexander Farber
Hi,

I'm a FreeBSD newbie, but have used OpenBSD for few years.

Is there a way to compile kernel and also to make world as 
a non-root user under FreeBSD (5.1/i386)? In OpenBSD I normally 
put SUDO=sudo into /etc/mk.conf and run make build. Also
all /usr/src belongs to alex:wsrc, not to root:wheel...

Regards
Alex
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Make fails: when compiling kernel

2003-02-19 Thread taxman
On Monday 17 February 2003 12:50 am, Kris Kennaway wrote:
 On Fri, Jan 01, 1999 at 02:54:41AM +0100, Christian Johansson wrote:
  I'm completely new to freebsd and tried to get my Soundblaster Live to 
work
  I sure tried to take away stuff that I know I didn't have,, but when I 
make 
  the kernel I got the following error:
 
 a) Your clock is wrong
 
 b) You have omitted a required option in your kernel configuration.
 This is a FAQ.

Yes, but it's surprisingly not *in* the FAQ
I suppose it is already well documented where it is most likely to be seen.

Tim


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Make fails: when compiling kernel

2003-02-16 Thread Jens Rehsack
Christian Johansson wrote:

I'm completely new to freebsd and tried to get my Soundblaster Live to work
I sure tried to take away stuff that I know I didn't have,, but when I make 
the kernel I got the following error:

linking kernel
umass.o: In function `umass_cam_attach_sim':
umass.o(.text+0x1851): undefined reference to `cam_simq_alloc'
[...]


*** Error code 1


Look that you haven't read the comments in the config file not very 
carefully.




[...]


# SCSI peripherals
#cj device		scbus		# SCSI bus (required)
#cj device		ch		# SCSI media changers
#cj device		da		# Direct Access (disks)
#cj device		sa		# Sequential Access (tape etc)
#cj device		cd		# CD
#cj device		pass		# Passthrough device (direct SCSI access)
#cj device		ses		# SCSI Environmental Services (and SAF-TE)


[...]


# USB support
device		uhci		# UHCI PCI-USB interface
device		ohci		# OHCI PCI-USB interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# Human Interface Devices
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da

Please read above line very carefully again :-)


device		ums		# Mouse
#cj device		urio		# Diamond Rio 500 MP3 player
#cj device		uscanner	# Scanners
# USB Ethernet, requires mii
device		aue		# ADMtek USB ethernet
device		cue		# CATC USB ethernet
device		kue		# Kawasaki LSI USB ethernet




--
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED]
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Make fails: when compiling kernel

2003-02-16 Thread Evan Dower
Under USB, you have umass enabled. The note next to it says that it requires 
scbus and da (which live under scsi peripherals) which you do not have 
enabled. Enabling these should get you up and running. Also, for a sound 
blaster card, I think you'll need device sbc as well.
Good luck,
Evan Dower

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Make fails: when compiling kernel

2003-02-16 Thread taxman
On Friday 01 January 1999 02:54 am, Christian Johansson wrote:
 I'm completely new to freebsd and tried to get my Soundblaster Live to work
 I sure tried to take away stuff that I know I didn't have,, but when I make 
 the kernel I got the following error:
 
 linking kernel
 umass.o: In function `umass_cam_attach_sim':
 umass.o(.text+0x1851): undefined reference to `cam_simq_alloc'
 umass.o(.text+0x189c): undefined reference to `cam_sim_alloc'
...
 *** Error code 1

Jens is correct if not terribly polite.  Configuring a kernel you have to be 
fairly careful.  Read up on the handbook chapter on the kernel config
www.freebsd.org/handbook
and the config file itself closely.  If you're on 4.x series an attempt at 
reading LINT can be educational if not critical.

your question is also a FAQ, so try reading that too when you have a question.

Welcome, and have fun, experimenting and making mistakes is a great way to 
learn, just make sure to read some docs too :)

Tim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Make fails: when compiling kernel

2003-02-16 Thread Bill Moran
Date: Fri, 1 Jan 1999 02:54:41 +0100

[You need to fix the date on your computer]

Christian Johansson wrote:

I'm completely new to freebsd and tried to get my Soundblaster Live to work
I sure tried to take away stuff that I know I didn't have,, but when I make 
the kernel I got the following error:

snip


# SCSI peripherals
#cj device		scbus		# SCSI bus (required)


snip


device		umass		# Disks/Mass storage - Requires scbus and da

   ^

You either need to add back in the SCSI support to make USB disk
support work, or remove USB disk support.

--
Bill Moran
Potential Technologies
http://www.potentialtech.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Make fails: when compiling kernel

2003-02-16 Thread Kris Kennaway
On Fri, Jan 01, 1999 at 02:54:41AM +0100, Christian Johansson wrote:
 I'm completely new to freebsd and tried to get my Soundblaster Live to work
 I sure tried to take away stuff that I know I didn't have,, but when I make 
 the kernel I got the following error:

a) Your clock is wrong

b) You have omitted a required option in your kernel configuration.
This is a FAQ.

 deviceumass   # Disks/Mass storage - Requires scbus and da

Kris



msg19603/pgp0.pgp
Description: PGP signature


Error while compiling kernel.

2003-02-01 Thread Sergey Niunco
I'm trying to compile a new kernel on my 4.7-STABLE. This is what I get:

/usr/src/sys/modules/umass/../../dev/usb/umass.c:380: syntax error before `{'
/usr/src/sys/modules/umass/../../dev/usb/umass.c:383: warning: no semicolon at e
nd of struct or union
/usr/src/sys/modules/umass/../../dev/usb/umass.c:426: syntax error before `}'
*** Error code 1

Stop in /usr/src/sys/modules/umass.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

What should I do about this problem?
 TIA.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Error while compiling kernel.

2003-02-01 Thread Sergey Niunco
Device scbus was and is in my kernel config. A few days ago I compiled it without a 
problem.

On Sat, 1 Feb 2003 13:18:27 +
Danny Pansters [EMAIL PROTECTED] wrote:

 On Sat, 1 Feb 2003 12:40:55 +0100
 Sergey Niunco [EMAIL PROTECTED] wrote:
 
  I'm trying to compile a new kernel on my 4.7-STABLE. This is what I
  get:
  
  /usr/src/sys/modules/umass/../../dev/usb/umass.c:380: syntax error
  before `{'/usr/src/sys/modules/umass/../../dev/usb/umass.c:383:
  warning: no semicolon at e nd of struct or union
  /usr/src/sys/modules/umass/../../dev/usb/umass.c:426: syntax error
  before `}'*** Error code 1
  
  Stop in /usr/src/sys/modules/umass.
  *** Error code 1
  
  Stop in /usr/src/sys/modules.
  *** Error code 1
  
  What should I do about this problem?
 
 Have device scbus in your kernel config. Umass needs it.
 
 HTH,
 
 Dan
 
   TIA.
  
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
  
 
 
 
 Ricin Radio! http://www.mp3.com/stations/ricin_radio

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Error while compiling kernel.

2003-02-01 Thread Jason Hunt
On Sat, 1 Feb 2003, Sergey Niunco wrote:

 Device scbus was and is in my kernel config. A few days ago I compiled
 it without a problem.


Did you CVSUP since the lat time you compiled?  If so, you might have done
it during a commit, so something got broken.  Every now and then (maybe
two or three times a year?) I'll get a broken buildworld that is usually
fixed by CVSUPing a day or two layer.

If you have no clue what CVSUP is, or you did not perform a CVSUP, check
your kernel config again.  Although, I don't think that that synatax
errors are usually caused by missing dependancies.

Another possibility (doesn't seem likely, but you neverk now) is that
there's some stale files sitting around.  Remove /usr/src/sys/compile/*
(remove the subdirectories, not the compile directory itself) and try
again.

Hope this helps.




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



problem compiling kernel on FreeBSD 5.0

2003-01-29 Thread David Loszewski
I'm trying to compile my kernel on my newly installed FreeBSD 5.0 I do 
the following: '% cd /usr/src' then I do '%make buildkernel 
KERNCONF=ZEUS' and it comes back saying 'make: don't know how to make 
buildkernel. Stop'.  Ideas on what to do with this?? I looked through 
the release notes and didn't see anything about a new way of building 
the kernel in the kernel changes section, but maybe I missed something.

Any help would be appreciated,
Dave Loszewski


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: problem compiling kernel on FreeBSD 5.0

2003-01-29 Thread David Loszewski
no, I didn't cvsup the sources because in all the 4.x versions the 
sources already came with it

Dave

[EMAIL PROTECTED] wrote:

This may be a dumb question, but did you cvsup the sources for 5.0? If you
did, what does your Makefile look like?






   David Loszewski  
   [EMAIL PROTECTED]  To: [EMAIL PROTECTED]
   Sent by:cc:  
   owner-freebsd-questions@F   Subject: problem compiling kernel on FreeBSD 5.0 
   reeBSD.ORG   


   01/29/03 03:10 PM






I'm trying to compile my kernel on my newly installed FreeBSD 5.0 I do
the following: '% cd /usr/src' then I do '%make buildkernel
KERNCONF=ZEUS' and it comes back saying 'make: don't know how to make
buildkernel. Stop'.  Ideas on what to do with this?? I looked through
the release notes and didn't see anything about a new way of building
the kernel in the kernel changes section, but maybe I missed something.

Any help would be appreciated,
Dave Loszewski


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message





 





To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: problem compiling kernel on FreeBSD 5.0

2003-01-29 Thread Kris Kennaway
On Wed, Jan 29, 2003 at 05:09:05PM -0500, David Loszewski wrote:
 no, I didn't cvsup the sources because in all the 4.x versions the 
 sources already came with it

The 4.x sources come with 4.x, yes.  If you want the 5.0 sources you
have to upgrade them somehow, e.g. by installing from sysinstall or
preferably by cvsupping.

Kris




msg17172/pgp0.pgp
Description: PGP signature


Re: problem compiling kernel on FreeBSD 5.0

2003-01-29 Thread David Loszewski
Kris Kennaway wrote:


On Wed, Jan 29, 2003 at 05:09:05PM -0500, David Loszewski wrote:
 

no, I didn't cvsup the sources because in all the 4.x versions the 
sources already came with it
   


The 4.x sources come with 4.x, yes.  If you want the 5.0 sources you
have to upgrade them somehow, e.g. by installing from sysinstall or
preferably by cvsupping.

Kris

 

I did a cvsup and all the files are there now but the Makefile is name 
'Makefile,v' along with all the other files. Suggestions? not too often 
I use cvsup

Dave




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: problem compiling kernel on FreeBSD 5.0

2003-01-29 Thread Giorgos Keramidas
On 2003-01-29 16:10, David Loszewski [EMAIL PROTECTED] wrote:
 I'm trying to compile my kernel on my newly installed FreeBSD 5.0 I
 do the following: '% cd /usr/src' then I do '%make buildkernel
 KERNCONF=ZEUS' and it comes back saying 'make: don't know how to
 make buildkernel. Stop'.  Ideas on what to do with this??

Have you installed any sources in /usr/src?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: problem compiling kernel on FreeBSD 5.0

2003-01-29 Thread Kris Kennaway
On Wed, Jan 29, 2003 at 06:32:08PM -0500, David Loszewski wrote:

 I did a cvsup and all the files are there now but the Makefile is name 
 'Makefile,v' along with all the other files. Suggestions? not too often 
 I use cvsup

Read the cvsup documentation (e.g. sample supfiles) more carefully:
you downloaded the entire CVS repository instead of just updating your
sources.

Kris



msg17193/pgp0.pgp
Description: PGP signature


Error compiling kernel

2003-01-22 Thread Ernest Hammerschmidt
Hello,

I just installed FreeBSD 4.7 yesterday and tried to install a new kernel
following the instructions from the handbook. Unfortunately I ran into
the following problem when executing
'make buildkernel KERNCONF=MYKERNEL':


=== crypto
@ - /usr/src/sys
machine - /usr/src/sys/i386/include
make: don't know how to make bf_enc.c. Stop
*** Error code 2

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/FISHBOWL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Eventually I tried compiling GENERIC instead, which led to the same
result. A friend of mine then suggested trying make buildworld and
installworld, but this didn't change anything.

Hope someone can help.

Bye,
Ernest




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Error compiling kernel

2003-01-22 Thread Doug Reynolds
On Wed, 22 Jan 2003 18:27:02 +0100, Ernest Hammerschmidt wrote:

Hello,

I just installed FreeBSD 4.7 yesterday and tried to install a new kernel
following the instructions from the handbook. Unfortunately I ran into
the following problem when executing
'make buildkernel KERNCONF=MYKERNEL':


   === crypto
   @ - /usr/src/sys
   machine - /usr/src/sys/i386/include
   make: don't know how to make bf_enc.c. Stop
   *** Error code 2

if you haven't used buildworld, you have to 

cd /sys/i386/conf
config YOURKERNELNAME
cd  ../compile/YOURKERNLNAME
make depend
make 

and then
make install

(been a long time since i've done it that way, hopefully I didn't
forget anything)

---
doug reynolds | the maverick | [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



  1   2   >