Skip to contentSkip to conversation

undefined get_netsh_id

Openvpn-devel Gisle Vanem 3 participants 3 messages Nov 8, 2004

lore
Share & tools
lore
#0 lore raw

I tried building latest beta16 with gcc 3.4.1 and MingW and struck what I suspect is a gcc bug. While linking I got:

tun.o(.stab+0x11024): In function `ipset2ascii_all':
G:/MingW32/src/inet/OpenVPN/tun.c:3321: undefined reference to get_netsh_id' tun.o(.stab+0x110b4):G:/MingW32/src/inet/OpenVPN/tun.c:3321: undefined reference to get_netsh_id'

Line 3321 has no reference to get_netsh_id(). And what is this ".stab" section doing there?

Seems gcc has problems with prototypes at > 1 scope. Moving the protype to file-scope or removing 'static' from the prototype and definition of get_netshid() fixed it though. Anybody else seen this?

--gv

#1 lore raw
Quoted 8 lines · Gisle Vanem

I tried building latest beta16 with gcc 3.4.1 and MingW and struck what I suspect is a gcc bug. While linking I got:

tun.o(.stab+0x11024): In function `ipset2ascii_all':
G:/MingW32/src/inet/OpenVPN/tun.c:3321: undefined reference to `get_netsh_id' tun.o(.stab+0x110b4):G:/MingW32/src/inet/OpenVPN/tun.c:3321:
undefined reference to `get_netsh_id'

Quoted 6 lines

Line 3321 has no reference to get_netsh_id(). And what is this ".stab" section doing there?

Seems gcc has problems with prototypes at > 1 scope. Moving the protype to file-scope or removing 'static' from the prototype and definition of get_netshid() fixed it though. Anybody else seen this?

I'm using this gcc:

gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)

which didn't have any problem with it.

James

#2 lore raw
In reply to Gisle Vanem
Quoted 7 lines · Gisle Vanem

I tried building latest beta16 with gcc 3.4.1 and MingW and struck what I suspect is a gcc bug. While linking I got:

tun.o(.stab+0x11024): In function `ipset2ascii_all':
G:/MingW32/src/inet/OpenVPN/tun.c:3321: undefined reference to get_netsh_id' tun.o(.stab+0x110b4):G:/MingW32/src/inet/OpenVPN/tun.c:3321: undefined reference to get_netsh_id'

Quoted 6 lines

Line 3321 has no reference to get_netsh_id(). And what is this ".stab" section doing there?

Seems gcc has problems with prototypes at > 1 scope. Moving the protype to file-scope or removing 'static' from the prototype and definition of get_netshid() fixed it though. Anybody else seen this?

I had no problem building it with gcc 3.2.3 under MinGW.

I'm using:
WinXP SP2
MinGW-3.1.0-1
MSYS-1.0.10

--
_____________________________________________________________

Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://www.nilings.se/openvpn    / \   NO Word docs in e-mail