- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Subject: Problem loading DLKM module: MOD: mod_obj...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 05:15 PM
12-29-2005 05:15 PM
Subject: Problem loading DLKM module: MOD: mod_obj_relone: Illegal relocation type R_IA_64_GPREL22
I am trying to compile and load one very basic module in hpux 11i v2 on IA machine. But when I give kcmodule mymod=best I get following error -
WARNING: MOD: mod_obj_relone: Illegal relocation type R_IA_64_GPREL22 42 (0x2a) in module /stand/current/mod/tmod. It may be due to incorrect compiler/linker options when building the module.
I have the bundled cc installed on my machine (dont have ANSI/C compiler, as that needs to be purchased). As suggested earlier in the same thread, +Oshortdata=0 option is not supported in bundled compiler. Then how can I load a module with supplied compiler. Interesting is that I could do this in another same type IA machine, whose disk has gone bad due to some reason, and I rewrote the module... wondering what I am doing wrong.
Thanks.
- Tags:
- DLKM
- relocation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 09:37 AM
01-02-2006 09:37 AM
Re: Subject: Problem loading DLKM module: MOD: mod_obj_relone: Illegal relocation type R_IA_64_GPREL22
It suggests:
For a 64-bit Itanium target machine, execute the following cc(1) command:
/opt/ansic/bin/cc -I. -I/usr/conf -I/usr/conf/sys \ -Wp,-H300000 +kernel +Oshortdata=0 +XixdU +O2 +ESlit +DD64 \-Ae -DLWSYSCALL -DPGPROF -DACLS -DAUDIT -DIDDS -D__ROSE__ \-DHPONCPLUS -DVARIABLE_UAREA -DSTCP -DIVT_INTERCEPT \-D_UNSUPPORTED -D_HPUX_SOURCE -D_XPG4_EXTENDED -D_KERNEL \ -D__STDC_EXT__ -D_CLEAN_BE -D_SYSCALL_64 -Â_NO_PA_HDRS \-DKERNEL_DEBUGGER -U__IA64__ -U__hp9000s800 \-U__hp9000s700 -U__hppa -o mod.o -c module_name.c
I realize you are not using ANSI/C, but can you try the options listed above and see if that fixes it?
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 05:16 PM - edited 11-18-2011 09:17 PM
03-06-2006 05:16 PM - edited 11-18-2011 09:17 PM
Re: Subject: Problem loading DLKM module: MOD: mod_obj_relone: Illegal relocation type R_IA_64_GPREL22
You can NOT create DLKMs unless you use the HP's ANSI C or aC++ compilers. The bundled compiler is not supported for program development.