From: James Yonan Subject: Re: [Openvpn-devel] undefined get_netsh_id In-Reply-To: <048101c4c5b5$655eca80$0600000a@...139...> Message-ID: References: <048101c4c5b5$655eca80$0600000a@...139...> MIME-Version: 1.0 Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon Nov 8 14:02:38 2004 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit To: Gisle Vanem Cc: OpenVPN-dev On Mon, 8 Nov 2004, Gisle Vanem wrote: > 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? I'm using this gcc: gcc.exe (GCC) 3.2.3 (mingw special 20030504-1) which didn't have any problem with it. James