Re: link_elf: symbol cam_simq_alloc undefined



Thanks, that fixed it! : )

scottl: Could you commit (and MFC) the fix? It's as simple as adding a
MODULE_DEPEND line:

MODULE_DEPEND(amr, cam, 1, 1, 1);

after the DRIVER_MODULE line in src/sys/dev/amr/amr_pci.c

I'm not sure about amr_linux though; it seems that there's no CAM
reference in amr_linux.c, but that amr_linux is just a compatibility
layer on top of amr. In that light, perhaps:

MODULE_DEPEND(amr_linux, amr, 1, 1, 1);

is in order. Also, the existing MODULE_DEPEND line probably should be
changed to:

MODULE_DEPEND(amr_linux, linux, 1, 1, 1);

Cheers,
Eugene

John-Mark Gurney wrote:
Eugene M. Kim wrote this message on Thu, Apr 27, 2006 at 19:55 -0700:
I'm trying to upgrade from 5-stable to 6-stable; after rebooting to the
new kernel, the amr(4) module (amr.ko) refuses to load with this message:

link_elf: symbol cam_simq_alloc undefined

However, a quick nm(1) on /boot/kernel/cam.ko does show:

...
0000f0ac T cam_sim_set_path
0000efc4 T cam_simq_alloc
0000efd4 T cam_simq_free
...

and cam.ko is already loaded before amr.ko.

What am I missing here? *scratches head 'o 'a*

amr is missing a:
MODULE_DEPEND(amr, cam, 1, 1, 1);

which means the module doesn't get cam's symbols... might as well add
that line to amr_linux.c next to MODULE_DEPEND already there...


_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: link_elf: symbol cam_simq_alloc undefined
    ... stands now I can't load the module even though I don't use the CAM ... MODULE_DEPEND line, as a temporary fix? ... MODULE_DEPEND(amr_linux, amr, 1, 1, 1); ...
    (freebsd-stable)
  • Re: link_elf: symbol cam_simq_alloc undefined
    ... I broke the amr_cam interface several months ago when I locked the ... I've been neglecting it ever since due to lack of time, ... I'm not sure about amr_linux though; it seems that there's no CAM ... MODULE_DEPEND(amr_linux, amr, 1, 1, 1); ...
    (freebsd-stable)
  • Re: 50 hz timer motor
    ... Gear G4 engages the inside of a funny large ring gear - it has teath missing ... the cam switch moves one position. ... there is a lever in the middle of the mechanism which seems to ...
    (sci.electronics.repair)
  • Re: WMM2 producing Upside down videos???
    ... Can anyone help me on the video being taken off my sony DV cam. ... > video upload to my computer via DV cam comes out right sometimes... ... but it is just upside down... ... Can't find where to fix it. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Nooooooo......(whining)..........
    ... I have never owned a Singer so I don't know what I am missing but I would ... Looking at the cam and bobbin assembly behind the holder thingy ...
    (rec.crafts.textiles.quilting)