10/08/2009 5:59 AM
post39575
|
Thanks Sean.
But the problem is that I have some errors building io-pkt :
F:/QNX/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -g -O -Wno-pointer-sign -Wp,-
include
qnx.h -fno-builtin-log -fno-builtin-printf -D_KERNEL -D_KERNEL_OPT -DLKM -DSIMPLE_MALLOC_BSD -DRANDOM_BSD -DMAXUSERS=
32 -
DKMEMSTATS -Wpointer-arith -Wmissing-prototypes -Werror -Wall -Wno-uninitialized -I. -Ig:/Guillaume/QNX/io-pkt/trunk/
sys -
Ig:/Guillaume/QNX/io-pkt/trunk/sys/sys-nto -Ig:/Guillaume/QNX/io-pkt/trunk/sys/target/x86 -Ig:/Guillaume/QNX/io-pkt/
trunk/sy
s/../lib/socket/public -Ig:/Guillaume/QNX/io-pkt/trunk/sys/../lib/socket/inc -Ig:/Guillaume/QNX/io-pkt/trunk/sys/target
-IF:
/QNX/QNX641/target/qnx6/usr/include -g -DVARIANT_v4 -DBUILDENV_qss g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c
cc1: warnings being treated as errors
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c: In function 'ifa_ifwithaddr':
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: implicit declaration of function 'satosin'
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: invalid type argument of '->' (have 'int')
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: 'INADDR_BROADCAST' undeclared (first use in this function)
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: (Each undeclared identifier is reported only once
g:/Guillaume/QNX/io-pkt/trunk/sys/net/if.c:1178: error: for each function it appears in.)
cc: F:/QNX/QNX641/host/win32/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.3.3/cc1 caught signal 1
make.exe[3]: *** [if.o] Error 1
make.exe[3]: Leaving directory `g:/Guillaume/QNX/io-pkt/trunk/sys/target/x86/o.v4'
make.exe[2]: *** [install] Error 2
make.exe[2]: Leaving directory `g:/Guillaume/QNX/io-pkt/trunk/sys/target/x86'
make.exe[1]: *** [install] Error 2
make.exe[1]: Leaving directory `g:/Guillaume/QNX/io-pkt/trunk/sys/target'
f:\WindRiver\workbench-2.4\x86-win32\bin\make.exe: *** [install] Error 2
"F:/QNX/QNX641/host/win32/x86/usr/bin/bash.exe"-2.04$
Best regards,
Guillaume Varlet
-----Message d'origine-----
De : Sean Boudreau [mailto:community-noreply@qnx.com]
Envoyé : mercredi 7 octobre 2009 23:56
À : drivers-networking
Objet : Re: initialization error
Check out the 'How do I debug a driver using gdb?' section
of this page:
http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Drivers_wiki_page
You should be able to step through and see exactly
where it's being raised.
-seanb
On Wed, Oct 07, 2009 at 04:29:59AM -0400, Guillaume Varlet wrote:
> Hello.
>
> I get the following initialization error in my driver :
>
> Oct 07 10:28:40 2 14 0 Unable to init devnp-men-z087_nobugs_g.so: Operation not permitted
>
> with the following segmentation error :
>
> Thread [2] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)
> 12 _btext() 0xb8213d59
> 11 _fini() 0xb8216e5d
> 10 fini() 0xb033fd68
> 9 _dlclose() 0xb0342327
> 8 dlclose() 0xb03423c5
> 7 nw_dlclose() 0x080c95cc
> 6 nw_dlload_module() 0x080c9a3a
> 5 init_load() 0x080a2e49
> 4 load_drivers() 0x080a2f47
> 3 receive_loop_uni() 0x080d3cea
> 2 thread_init() 0x080c9d8b
> 1 <symbol is not available> 0xb031fa20
>
> Here is the stack of initialized DLLs :
>
> dlopen("NULL",2048)
> dlsym(0xb03788ac,output_for_percent_s_NULL)=0xb03789d0
> dlopen("NULL",2048)
> dlsym(0xb03788ac,iofunc_notify_trigger_strict)=0xb033a1a0
> dlsym(0xb03788ac,iofunc_notify_remove_strict)=0xb033a0d0
> dlopen("devnp-men-z087_nobugs_g.so",3072)
> load_object: attempt load of devnp-men-z087_nobugs_g.so
> load_elf32: found DT_TEXTREL, mapping a private copy of text sections!
> load_elf32: loaded lib at addr b8200000(text) b820e558(data)
> dlsym(0x8138000,_btext)=0x805ab50
> Library loaded; type 'add-sym...
View Full Message
|
|
|
10/08/2009 8:37 AM
post39585
|
I found the error.
I was totaly my fault...
Thank you very much for your help.
Guillaume
|
|
|