Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not compile on debian #1

Open
derdietze opened this issue Jan 18, 2013 · 2 comments
Open

Could not compile on debian #1

derdietze opened this issue Jan 18, 2013 · 2 comments

Comments

@derdietze
Copy link

Howdy,

i've sucessfull compiled you hdd binary on debain (openmediavault (0.4.6 fedaykin)!

Then i've tried to compile your kernel module h340:

neither the Makefile wouldn't fit and an error occurred:

make -C /lib/modules/2.6.32-5-486/build M=/root/h340 modules
make[1]: Entering directory /usr/src/linux-headers-2.6.32-5-486' CC [M] /root/h340/h340.o /root/h340/h340.c: In function ‘h340_run’: /root/h340/h340.c:76: error: implicit declaration of function ‘outb’ make[4]: *** [/root/h340/h340.o] Fehler 1 make[3]: *** [_module_/root/h340] Fehler 2 make[2]: *** [sub-make] Fehler 2 make[1]: *** [all] Fehler 2 make[1]: Leaving directory/usr/src/linux-headers-2.6.32-5-486'
make: *** [all] Fehler 2

Any suggestions?

kindly regards
Martin

payden added a commit that referenced this issue Jan 18, 2013
Attempting to fix issue #1
@payden
Copy link
Owner

payden commented Jan 18, 2013

I've added an include for asm/io.h which should have the prototype for outb and resolve the compile error. You should also know that this module is really just a hack thrown together so I could learn. I hope it works for you but no guarantees! :) I don't still have mine lying around or else I would try to improve upon it. I'm a much better C programmer these days than when I wrote this. Anyway, hope you can at least get some blinky lights.. :) Take care.

@derdietze
Copy link
Author

Hi,

thanks a lot!! I'll try and give you a feedback. If it works i want to
share your module git link to the mediavault community (as an asset without
any support), if you allow.

Regards
Martin
Am 18.01.2013 23:37 schrieb "Payden Sutherland" notifications@github.com:

I've added an include for asm/io.h which should have the prototype for
outb and resolve the compile error. You should also know that this module
is really just a hack thrown together so I could learn. I hope it works for
you but no guarantees! :) I don't still have mine lying around or else I
would try to improve upon it. I'm a much better C programmer these days
than when I wrote this. Anyway, hope you can at least get some blinky
lights.. :) Take care.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-12444227.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants