Re: linux broken?

2002-04-26 Thread Peter Wemm

Julian Elischer wrote:
> 
> 
> On Thu, 25 Apr 2002, John Baldwin wrote:
> 
> > 
> > On 25-Apr-2002 Julian Elischer wrote:
> > 
> > kldload sysvipc.ko or compile the SYSV stuff into your kernel.
> > Perhaps the linux kld needs to have a module dependency on
> > the sysvipc modules?
> 
> there is no sysvipc module but this is what I tried..
> 
> jules# cd /boot/kernel
> jules# ls sy*
> sym.ko  syscall_gate.ko sysvmsg.ko  sysvsem.ko  sysvshm.ko
> jules# kldload sysvmsg
> jules# kldload sysvsem
> jules# kldload sysvshm
> jules# kldload linux
> link_elf: symbol semop undefined
> kldload: can't load linux: Exec format error
> jules# 

Like John said, there needs to be a module dependency.  The dependency from
linux to sysvsem (for example) is used for two things.  1) to prevent
sysvsem being unloaded before linux, and 2) to add sysvsem to the symbol
search order for linux.  You cannot "see" symbols in other modules without
registering a dependency for this reason.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5


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



RE: linux broken?

2002-04-25 Thread Julian Elischer



On Thu, 25 Apr 2002, John Baldwin wrote:

> 
> On 25-Apr-2002 Julian Elischer wrote:
> 
> kldload sysvipc.ko or compile the SYSV stuff into your kernel.
> Perhaps the linux kld needs to have a module dependency on
> the sysvipc modules?

there is no sysvipc module but this is what I tried..

jules# cd /boot/kernel
jules# ls sy*
sym.ko  syscall_gate.ko sysvmsg.ko  sysvsem.ko  sysvshm.ko
jules# kldload sysvmsg
jules# kldload sysvsem
jules# kldload sysvshm
jules# kldload linux
link_elf: symbol semop undefined
kldload: can't load linux: Exec format error
jules# 





> 
> > julian
> 
> -- 
> 
> John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
> 


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



RE: linux broken?

2002-04-25 Thread Julian Elischer



On Thu, 25 Apr 2002, John Baldwin wrote:
> 
> kldload sysvipc.ko or compile the SYSV stuff into your kernel.
> Perhaps the linux kld needs to have a module dependency on
> the sysvipc modules?

I did.. it make no difference.

> 
> > julian
> 
> -- 
> 
> John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
> 


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



RE: linux broken?

2002-04-25 Thread John Baldwin


On 25-Apr-2002 Julian Elischer wrote:
> 
> 
> after a complete resup, re-checkout and recompile
> on trying to load the linux module:
> 
> link_elf: symbol semop undefined
> 
> 
> Anyone have a quick fix?

kldload sysvipc.ko or compile the SYSV stuff into your kernel.
Perhaps the linux kld needs to have a module dependency on
the sysvipc modules?

> julian

-- 

John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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



Re: linux broken

2000-06-03 Thread Brian Somers

cd /usr && mv include include.not && cd src && make includes && rm -fr ../include.not

This worked for me.

> Michael Harnois wrote:
> > 
> > On Sat, 03 Jun 2000 00:33:10 -0700, "George W. Dinolt" <[EMAIL PROTECTED]> said:
> > 
> > > The following change to /usr/src/modules/linux/Makefile will
> > > allow one to at least build a workable linux module.
> > 
> > It does, in fact, work now, thanks.
> 
> but vmware in combination with Linux (as a module) is still broken.
> vmware cannot find a symbol in the other (linux) module..
> in other words, cross module symbol resolution seems to be
> broken.
> (cvsup as of a couple of hours ago)
> 
> julian
> 
> > 
> > --
> > Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA
> > [EMAIL PROTECTED]  [EMAIL PROTECTED]
> >  Be radical, be as radical as you can ...
> >  because radicals empower liberals.
> >  --John Preston
> > 
> > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > with "unsubscribe freebsd-current" in the body of the message
> 
> -- 
>   __--_|\  Julian Elischer
>  /   \ [EMAIL PROTECTED]
> (   OZ) World tour 2000
> ---> X_.---._/  presently in:  Perth
> v
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message
> 

-- 
Brian <[EMAIL PROTECTED]>
     
Don't _EVER_ lose your sense of humour !




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



Re: linux broken

2000-06-03 Thread Julian Elischer

Michael Harnois wrote:
> 
> On Sat, 03 Jun 2000 00:33:10 -0700, "George W. Dinolt" <[EMAIL PROTECTED]> said:
> 
> > The following change to /usr/src/modules/linux/Makefile will
> > allow one to at least build a workable linux module.
> 
> It does, in fact, work now, thanks.

but vmware in combination with Linux (as a module) is still broken.
vmware cannot find a symbol in the other (linux) module..
in other words, cross module symbol resolution seems to be
broken.
(cvsup as of a couple of hours ago)

julian

> 
> --
> Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA
> [EMAIL PROTECTED]  [EMAIL PROTECTED]
>  Be radical, be as radical as you can ...
>  because radicals empower liberals.
>  --John Preston
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message

-- 
  __--_|\  Julian Elischer
 /   \ [EMAIL PROTECTED]
(   OZ) World tour 2000
---> X_.---._/  presently in:  Perth
v


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



Re: linux broken

2000-06-03 Thread Michael Harnois

On Fri, 2 Jun 2000 23:58:03 -0700 (PDT), Doug White <[EMAIL PROTECTED]> said:

> You didn't rebuild your modules at the same time.

-current (theoretically) rebuilds the modules when you rebuild the kernel.

-- 
Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA 
[EMAIL PROTECTED]  [EMAIL PROTECTED] 
 Be radical, be as radical as you can ...
 because radicals empower liberals.
 --John Preston


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



Re: linux broken

2000-06-03 Thread Michael Harnois

On Sat, 03 Jun 2000 00:33:10 -0700, "George W. Dinolt" <[EMAIL PROTECTED]> said:

> The following change to /usr/src/modules/linux/Makefile will
> allow one to at least build a workable linux module.

It does, in fact, work now, thanks.

-- 
Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA 
[EMAIL PROTECTED]  [EMAIL PROTECTED] 
 Be radical, be as radical as you can ...
 because radicals empower liberals.
 --John Preston


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



Re: linux broken

2000-06-03 Thread Michael Harnois

On Sat, 03 Jun 2000 00:33:10 -0700, "George W. Dinolt" <[EMAIL PROTECTED]> said:

> Michael: I suspect that you may have

> options COMPAT_LINUX

> defined in your kernel config file.

Nope. Used to have, though.

-- 
Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA 
[EMAIL PROTECTED]  [EMAIL PROTECTED] 
 Be radical, be as radical as you can ...
 because radicals empower liberals.
 --John Preston


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



Re: linux broken

2000-06-03 Thread Bruce Evans

On Sat, 3 Jun 2000, George W. Dinolt wrote:

> Michael:
> 
> I suspect that you may have
> 
> options COMPAT_LINUX
> 
> defined in your kernel config file.
> 
> Re your problem with Linux not working. I had the same problem. It seems
> to be related to the changes in the generation of the file
> linux_assym.h. A new method for generating these kind of symbols was
> introducted into the kernel build system today. The changes were not
> promulgated to the generation of linux_assym.h.

COMPAT_LINUX worked, but not the module.

Bruce



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



Re: linux broken

2000-06-03 Thread Bruce Evans

On 2 Jun 2000, Michael Harnois wrote:

> Seems to have happened since I updated and made world and kernel this
> afternoon. 
> 
> link_elf: symbol LINUX_SIGF_HANDLER undefined
> pid 208 (ldconfig), uid 0: exited on signal 11 (core dumped)

Fixed.

Bruce



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



Re: linux broken

2000-06-03 Thread George W. Dinolt

Michael:

I suspect that you may have

options COMPAT_LINUX

defined in your kernel config file.

Re your problem with Linux not working. I had the same problem. It seems
to be related to the changes in the generation of the file
linux_assym.h. A new method for generating these kind of symbols was
introducted into the kernel build system today. The changes were not
promulgated to the generation of linux_assym.h.

The following change to /usr/src/modules/linux/Makefile will allow one
to at least build a workable linux module.

*** Makefile~   Sat May 27 10:04:09 2000
--- MakefileSat Jun  3 00:11:05 2000
***
*** 17,23 
  CLEANFILES= linux_assym.h linux_genassym.o

  linux_assym.h:linux_genassym.o
!   genassym ${.ALLSRC} > ${.TARGET}

  linux_locore.o:   linux_locore.s linux_assym.h
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
--- 17,23 
  CLEANFILES= linux_assym.h linux_genassym.o

  linux_assym.h:linux_genassym.o
!   sh /usr/src/sys/kern/genassym.sh ${.ALLSRC} > ${.TARGET}

  linux_locore.o:   linux_locore.s linux_assym.h
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \

If you don't keep your srcs in /usr/src, you will have to modify the
fixes appropriately

I am sure that there is a much cleaner way of fixing this, but I will
leave it to the gurus to work that out. I think a similar fix to the
kernel Makefile would allow one to build a working kernel with
COMPAT_LINUX built in.

There may be other modules or pieces of the kernel which may be affected
by the new symbol generation facility. I have not been bitten by the
problem  yet nor have I looked for them, so I can't speak first hand of
the issues.

Hope this helps.

Regards, George Dinolt





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



Re: linux broken

2000-06-02 Thread Doug White

On 2 Jun 2000, Michael Harnois wrote:

> Seems to have happened since I updated and made world and kernel this
> afternoon. 
> 
> link_elf: symbol LINUX_SIGF_HANDLER undefined
> pid 208 (ldconfig), uid 0: exited on signal 11 (core dumped)
> dc0: promiscuous mode enabled
> link_elf: symbol LINUX_SIGF_HANDLER undefined
> KLD rtc.ko: depends on linux - not available
> link_elf: symbol LINUX_SIGF_HANDLER undefined
> KLD vmmon_up.ko: depends on linux - not available
> link_elf: symbol LINUX_SIGF_HANDLER undefined
> KLD vmnet.ko: depends on linux - not available
> 

You didn't rebuild your modules at the same time.

Doug White|  FreeBSD: The Power to Serve
[EMAIL PROTECTED] |  www.FreeBSD.org



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