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

Can't generate DLL on windowd under mSYS2 #119

Open
bsaidus opened this issue Apr 13, 2021 · 2 comments
Open

Can't generate DLL on windowd under mSYS2 #119

bsaidus opened this issue Apr 13, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@bsaidus
Copy link

bsaidus commented Apr 13, 2021

Hello.
I updated mSys2 to last version and when trying to compile the DLL, it gives me errors.
I corrected a declaration in libnet-structures.h (i__nt64_t => int64_t)
and it compiles but at the moment of generating a DLL it gives me these messages :
`
*** Warning: linker path does not have real file for library -lwpcap.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libwpcap and none of the candidates passed a file format test
*** using a file magic. Last file checked: /home/BSaidus/lnet/libnet-1.2/win32/wpdpack/Lib/libwpcap.a

*** Warning: linker path does not have real file for library -lpacket.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libpacket and none of the candidates passed a file format test
*** using a file magic. Last file checked: /home/BSaidus/lnet/libnet-1.2/win32/wpdpack/Lib/libpacket.a

*** Warning: linker path does not have real file for library -lws2_32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libws2_32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: C:/msys64/mingw32/i686-w64-mingw32/lib/libws2_32.a

*** Warning: linker path does not have real file for library -liphlpapi.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libiphlpapi and none of the candidates passed a file format test
*** using a file magic. Last file checked: C:/msys64/mingw32/i686-w64-mingw32/lib/libiphlpapi.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.

I think the archive misses the .def file.
`

@troglobit
Copy link
Collaborator

I hope someone with a Windowd machine can help out here, I'm UNIX all the way unless I dig out an old Windows XP ThinkPad from the closet ...

@troglobit
Copy link
Collaborator

Latest msys2 have libpcap available via pacman. I've only looked at this ever so briefly, but it looks like the msys2 code path in libnet could be aligned more with a standard UNIX backend using descriptors, instead of the LPADAPTER used by Cygwin and the MSVC code paths.

Someone more versed in Windows would probably do a better job of this.

@troglobit troglobit added the help wanted Extra attention is needed label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Development

No branches or pull requests

2 participants