libemu doesn't compile with gcc

Bug #1351872 reported by Kadounet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libemu (Ubuntu)
New
Undecided
Unassigned

Bug Description

Environment: Ubuntu trusty

Steps to reproduce:

- Clone libemu's repository
- configure it and try to compile it

cd /opt && git clone git://git.carnivore.it/libemu.git
autoreconf -vi
./configure --prefix=/opt/dionaea
make install

And the errors:

environment/win32/emu_env_w32.c: In function 'emu_env_w32_new':
environment/win32/emu_env_w32.c:385:21: error: typedef 'PUNICODE_STRING' locally defined but not used [-Werror=unused-local-typedefs]
  } UNICODE_STRING, *PUNICODE_STRING;
                     ^
environment/win32/emu_env_w32.c:395:17: error: typedef 'PLIST_ENTRY' locally defined but not used [-Werror=unused-local-typedefs]
  } LIST_ENTRY, *PLIST_ENTRY; //, *RESTRICTED_POINTER PRLIST_ENTRY;
                 ^
environment/win32/emu_env_w32.c:398:24: error: typedef 'BYTE' locally defined but not used [-Werror=unused-local-typedefs]
  typedef unsigned char BYTE;
                        ^
environment/win32/emu_env_w32.c:418:4: error: typedef 'LDR_DATA_TABLE_ENTRY' locally defined but not used [-Werror=unused-local-typedefs]
  } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
    ^
environment/win32/emu_env_w32.c:418:27: error: typedef 'PLDR_DATA_TABLE_ENTRY' locally defined but not used [-Werror=unused-local-typedefs]
  } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
                           ^
environment/win32/emu_env_w32.c:431:4: error: typedef 'PEB_LDR_DATA' locally defined but not used [-Werror=unused-local-typedefs]
  } PEB_LDR_DATA, *PPEB_LDR_DATA;
    ^
environment/win32/emu_env_w32.c:431:19: error: typedef 'PPEB_LDR_DATA' locally defined but not used [-Werror=unused-local-typedefs]
  } PEB_LDR_DATA, *PPEB_LDR_DATA;
                   ^
cc1: all warnings being treated as errors
make[2]: *** [emu_env_w32.lo] Error 1

I checked on the internet and there was a similar issue with ArchLinux:

https://aur.archlinux.org/packages/libemu/?setlang=hr&comments=all

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1351872/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Aminu Aruwa (amin-aruwa) wrote :

i am running Ubuntu 14.04.2 LTS
having the same issues as well

environment/win32/emu_env_w32.c: In function 'emu_env_w32_new':
environment/win32/emu_env_w32.c:385:21: error: typedef 'PUNICODE_STRING' locally defined but not used [-Werror=unused-local-typedefs]
  } UNICODE_STRING, *PUNICODE_STRING;
                     ^
environment/win32/emu_env_w32.c:395:17: error: typedef 'PLIST_ENTRY' locally defined but not used [-Werror=unused-local-typedefs]
  } LIST_ENTRY, *PLIST_ENTRY; //, *RESTRICTED_POINTER PRLIST_ENTRY;
                 ^
environment/win32/emu_env_w32.c:398:24: error: typedef 'BYTE' locally defined but not used [-Werror=unused-local-typedefs]
  typedef unsigned char BYTE;
                        ^
environment/win32/emu_env_w32.c:418:4: error: typedef 'LDR_DATA_TABLE_ENTRY' locally defined but not used [-Werror=unused-local-typedefs]
  } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
    ^
environment/win32/emu_env_w32.c:418:27: error: typedef 'PLDR_DATA_TABLE_ENTRY' locally defined but not used [-Werror=unused-local-typedefs]
  } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
                           ^
environment/win32/emu_env_w32.c:431:4: error: typedef 'PEB_LDR_DATA' locally defined but not used [-Werror=unused-local-typedefs]
  } PEB_LDR_DATA, *PPEB_LDR_DATA;
    ^
environment/win32/emu_env_w32.c:431:19: error: typedef 'PPEB_LDR_DATA' locally defined but not used [-Werror=unused-local-typedefs]
  } PEB_LDR_DATA, *PPEB_LDR_DATA;
                   ^
cc1: all warnings being treated as errors
make[2]: *** [emu_env_w32.lo] Error 1
make[2]: Leaving directory `/tmp/libemu/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/libemu/src'
make: *** [install-recursive] Error 1

Paul White (paulw2u)
affects: ubuntu → libemu (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.