14392 Can not make " libnice" , error "-Wno-missing-field-initializers" - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old June 25th, 2009, 10:45
admail2 admail2 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can not make " libnice" , error "-Wno-missing-field-initializers"

I was compiling Gnome2, but it failed on "libnice", then I try to make "libnice" individual, the following is error info.

It seems that the error is related to GCC version, but I have no idea how to make it work. Does anyone help to take a look? Thank you so much.
�e
Code:
# make install clean

===>  Building for libnice-0.0.8
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/net-im/libnice/work/libnice-0.0.8'
Making all in stun
gmake[2]: Entering directory `/usr/ports/net-im/libnice/work/libnice-0.0.8/stun'
Making all in .
gmake[3]: Entering directory `/usr/ports/net-im/libnice/work/libnice-0.0.8/stun'
/bin/sh /usr/ports/net-im/libnice/work/gnome-libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I.. -I/usr/local/include -DHAVE_GETIFADDRS -std=gnu99 -DG_LOG_DOMAIN=\"libnice-stun\" -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O2 -fno-strict-aliasing -pipe -MT stunagent.lo -MD -MP -MF .deps/stunagent.Tpo -c -o stunagent.lo stunagent.c
 cc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -DHAVE_GETIFADDRS -std=gnu99 -DG_LOG_DOMAIN=\"libnice-stun\" -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O2 -fno-strict-aliasing -pipe -MT stunagent.lo -MD -MP -MF .deps/stunagent.Tpo -c stunagent.c  -fPIC -DPIC -o .libs/stunagent.o
cc1: error: unrecognized command line option "-Wno-missing-field-initializers"
gmake[3]: *** [stunagent.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/net-im/libnice/work/libnice-0.0.8/stun'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/net-im/libnice/work/libnice-0.0.8/stun'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net-im/libnice/work/libnice-0.0.8'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/net-im/libnice.

Last edited by DutchDaemon; June 25th, 2009 at 10:53. Reason: [code] added
Reply With Quote
  #2  
Old June 25th, 2009, 10:59
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,932
Thanks: 30
Thanked 1,925 Times in 1,351 Posts
Default

Builds fine here with gmake-3.81_3 (/usr/ports/devel/gmake). Is your ports tree up-to-date?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old June 25th, 2009, 12:44
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,847
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Did you set any CFLAGS or COPTFLAGS in /etc/make.conf?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old June 25th, 2009, 12:56
admail2 admail2 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No,my make.conf just likes below:

Code:
# added by use.perl 2009-06-23 15:22:50
PERL_VER=5.8.8
PERL_VERSION=5.8.8
MASTER_SITE_OVERRIDE=XXXX

FETCH_CMD=wget -c -t 1 
DISABLE_SIZE=yes
Earth#
Reply With Quote
  #5  
Old June 25th, 2009, 12:57
admail2 admail2 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

forgot to say, the system is FreeBSD 6.2, the gcc version is 3.4.6.
Reply With Quote
  #6  
Old June 25th, 2009, 13:18
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,932
Thanks: 30
Thanked 1,925 Times in 1,351 Posts
Default

Well, if man (g)cc doesn not contain the string "-Wmissing-field-initializers" .. you'll know enough, I guess.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #7  
Old June 25th, 2009, 14:46
admail2 admail2 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, actually I'm new on freebsd, or say i'm new for *nix system.

could you please give me a direction how I can fix it?

upgrade GCC ? or modify the Makefile?

On the other hand, do i need to add CFLAGS or COPTFLAGS as SirDice mentioned?

Thank you so much.
Reply With Quote
  #8  
Old June 25th, 2009, 15:02
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,932
Thanks: 30
Thanked 1,925 Times in 1,351 Posts
Default

Don't touch optimisation flags, please. Why are you running 6.2? Try 6.4 or 7.2.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #9  
Old June 25th, 2009, 15:22
admail2 admail2 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well,

if I can not resolve it...I will try to use 7.1/7.2....

Reply With Quote
  #10  
Old June 25th, 2009, 15:33
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,932
Thanks: 30
Thanked 1,925 Times in 1,351 Posts
Default

Try 6.4 first, it shouldn't involve recompiling all of your ports.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #11  
Old June 26th, 2009, 01:29
admail2 admail2 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Try 6.4 first, it shouldn't involve recompiling all of your ports.
Thanks DutchDaemon, but I could not use freebsd-update as my server is in a local lan...

thanks,
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] "make install" slow ftp download sites, how to change? johnblue Installation and Maintenance of FreeBSD Ports or Packages 12 February 16th, 2012 01:25
[Solved] Error "timecounter TSC must not be in use when changing frequencies; change denied" cosmos General 13 January 30th, 2011 13:23
[Solved] Problem with big "make install clean" Splatbert Installation and Maintenance of FreeBSD Ports or Packages 16 April 26th, 2009 21:02
"Burncd" and ioctl(CDRIOCFIXATE): Input/output error Embjet System Hardware 7 March 1st, 2009 21:40
getting ERROR /usr/libexec/ld-elf.so.1: Shared object "libsnmp.so.4" not found, akshay_aradhye Web & Network Services 5 February 18th, 2009 22:53


All times are GMT +1. The time now is 12:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0