Bug 171891 - multimedia/webcamd: Version 3.7.0.3 fails to build with clang
Summary: multimedia/webcamd: Version 3.7.0.3 fails to build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hans Petter Selasky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-23 11:50 UTC by Raphael Kubo da Costa
Modified: 2012-09-23 17:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa freebsd_committer freebsd_triage 2012-09-23 11:50:02 UTC
Trying to build multimedia/webcamd fails here with clang:

/usr/local/libexec/ccache/world/clang -O2 -pipe -march=core2 -fno-strict-aliasing -march=core2 -D_GNU_SOURCE -DCURR_FILE_NAME=\"lirc_igorplugusb\" -DBITS_PER_LONG=64 -DLINUX -Wall -Wno-pointer-sign -Wno-unused-variable -I/usr/ports/multimedia/webcamd/work/webcamd-3.7.0.3 -I/usr/ports/multimedia/webcamd/work/webcamd-3.7.0.3/dummy -I/usr/ports/multimedia/webcamd/work/webcamd-3.7.0.3/headers -Imedia_tree/drivers/media/common/tuners -Imedia_tree/drivers/media/dvb/dvb-core -Imedia_tree/drivers/media/dvb/dvb-usb -Imedia_tree/drivers/media/dvb/frontends -Imedia_tree/drivers/media/dvb/ttpci -Imedia_tree/drivers/media/video/gspca -Imedia_tree/drivers/media/video/hdpvr -Imedia_tree/drivers/media/dvb-core -Imedia_tree/drivers/media/dvb-usb -Imedia_tree/drivers/media/dvb-frontends -Imedia_tree/drivers/media/tuners -Imedia_tree/drivers/media/pci/ttpci -Imedia_tree/drivers/media/common/siano -Imedia_tree/drivers/media/common/b2c2 -Imedia_tree/drivers/media/usb/gspca -Imedia_tree/drivers/media/usb/
 dvb-usb -Imedia_tree/include -I/usr/local -I/usr/local/include -include webcamd_global.h -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include   -DHAVE_HAL -std=gnu99 -Qunused-arguments -fstack-protector  -c media_tree/drivers/staging/media/lirc/lirc_igorplugusb.c
In file included from media_tree/drivers/staging/media/lirc/lirc_igorplugusb.c:1:
media_tree/drivers/staging/media/lirc/lirc_igorplugusb.c:547:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
MODULE_INFO(vermagic, VERMAGIC_STRING);
^~~~~~~~~~~
media_tree/drivers/staging/media/lirc/lirc_igorplugusb.c:547:13: error: a parameter list without types is only allowed in a function definition
MODULE_INFO(vermagic, VERMAGIC_STRING);
            ^
1 warning and 1 error generated.
*** [lirc_igorplugusb.o] Error code 1
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-23 11:50:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hselasky

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Chris Rees 2012-09-23 12:03:20 UTC
No fix?

There is already a list of clang broken ports.

Chris
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-09-23 17:40:29 UTC
Author: nox
Date: Sun Sep 23 16:40:17 2012
New Revision: 304751
URL: http://svn.freebsd.org/changeset/ports/304751

Log:
  - Fix build with clang. [1]
  - Remove duplicate patch.
  
  PR:		ports/171891 [1]
  Submitted by:	rakuco, hselasky (maintainer, clang fix) [1]

Added:
  head/multimedia/webcamd/files/patch-clang   (contents, props changed)
Deleted:
  head/multimedia/webcamd/files/patch-media_tree-include-linux-dvb-ca.h

Added: head/multimedia/webcamd/files/patch-clang
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/webcamd/files/patch-clang	Sun Sep 23 16:40:17 2012	(r304751)
@@ -0,0 +1,10 @@
+--- kernel/linux_defs.h.orig	2012-09-23 16:06:07.000000000 +0200
++++ kernel/linux_defs.h	2012-09-23 16:06:24.000000000 +0200
+@@ -98,6 +98,7 @@
+ #define	symbol_put(x) __nop
+ #define	EXPORT_SYMBOL(...)
+ #define	EXPORT_SYMBOL_GPL(...)
++#define	MODULE_INFO(...)
+ #define	MODULE_AUTHOR(...)
+ #define	MODULE_DESCRIPTION(...)
+ #define	MODULE_LICENSE(...)
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Juergen Lock freebsd_committer freebsd_triage 2012-09-23 17:41:58 UTC
State Changed
From-To: open->closed

Committed. Thanks!