lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAGjSPUBxPjMYSoz=XX9Pq-mDV-_72K37gv1R72vFeEasw05iTA@mail.gmail.com>
Date:	Tue, 16 Oct 2012 09:10:56 +0800
From:	Xiaofan Chen <xiaofanc@...il.com>
To:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	libusbx-devel <libusbx-devel@...ts.sourceforge.net>
Subject: usbutils for Mac OS X and Cygwin

Hi Greg,

Now usbutils git almost builds successfully out of the box under Mac OS X
and Cygwin (using libusbx). Just wondering if you can accept the minor
fix for Mac OS X and suggest a way to fix cygwin build.

For Cygwin, there is a conflict with Cygwin's w32api package.

DATADIR conflicts with MinGW and cydwin's <objidl.h> in their w32api
package.
http://caca.zoy.org/changeset/3404

typedef enum tag DATADIR	{
        DATADIR_GET=1,
        DATADIR_SET
} DATADIR;

I do not know the proper fix, so I just temporarily change
objidl.h to

typedef enum tag DATADIR	{
        DATADIR_GET=1,
        DATADIR_SET
} DATADIR1;

After that I can build usbutils.

I only need one fix for Mac OS X as Apple's gcc compiler does not like
--as-needed.

mymacmini:usbutils xiaofanc$ git diff
diff --git a/Makefile.am b/Makefile.am
index 4e53e45..e8cb002 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,7 @@
 SUBDIRS = \
        usbhid-dump

-AM_LDFLAGS = \
-       -Wl,--as-needed
+AM_LDFLAGS =

 data_DATA =

-- 
Xiaofan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ