16551 Upgrading xscreensaver - 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 October 20th, 2010, 19:53
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default Upgrading xscreensaver

Hi guys,

I'm facing an issue with upgrading xscreensaver. Here is how I do this:

$ portmaster -di xscreensaver

The configuring succeeds and the compilation starts, but soon it fails with the following error:

Code:
cc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes
-Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -c
-I. -I. -I./../../utils -I./.. -I../..  -D_THREAD_SAFE -D_REENTRANT
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/local/include/pango-1.0
-I/usr/local/include/gio-unix-2.0/ -I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/libxml2
-I/usr/local/include/libglade-2.0   -D_REENTRANT -I/usr/local/include/gtk-2.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include
-DSTANDALONE -DUSE_GL -DHAVE_CONFIG_H -O -pipe -march=prescott -I/usr/local/include
-I/usr/local/include/gnome-xml -I/usr/local/include surfaces.c
In file included from ./../xlockmore.h:39,
                 from surfaces.c:49:
/usr/local/include/GL/glu.h:287: warning: function declaration isn't a prototype
surfaces.c: In function 'draw_surface':
surfaces.c:652: internal compiler error: in assign_386_stack_local, at config/i386/i386.c:13484
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[1]: *** [surfaces.o] Ошибка 1
gmake[1]: Leaving directory `/usr/ports/x11/xscreensaver/work/xscreensaver-5.12/hacks/glx'
gmake: *** [all] Ошибка 5
*** Error code 1

Stop in /usr/ports/x11/xscreensaver.
*** Error code 1

Stop in /usr/ports/x11/xscreensaver.

===>>> make failed for x11/xscreensaver
===>>> Aborting update
The interesting thing is that the same precise error occurred while updating previous versions of xscreensaver, 5.10 and 5.11. As a workaround I use packages when they come out. But this error still worries me. Has anybody come across this error and how can it be fixed?

I'm not sure if this matters but just in case here is how this port is configured.

Code:
===> The following configuration options are available for xscreensaver-5.12:
     KERBEROS=off "Add support for kerberos"
     PAM=off "Add support for pam authentication"
     SETUID_HACKS=off "Install sonar hack suid so it can ping"
     FIREF=off "Add extra port x11/fireflies"
     XAOS1=off "Add extra port graphics/xaos"
     XDALI=off "Add extra port x11-clocks/xdaliclock"
     XURTH=off "Add extra port astro/xearth"
     XMOUN=off "Add extra port graphics/xmountains"
     XPLAN=off "Add extra port astro/xplanet"
     XSNOW=off "Add extra port x11/xsnow"
===> Use 'make config' to modify these settings
Thanks in advance.
__________________
I'm a rebel in the S.D.G.

Last edited by DutchDaemon; October 20th, 2010 at 20:06.
Reply With Quote
  #2  
Old October 20th, 2010, 20:10
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,817
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Run make rmconfig to make sure (you're showing the options, not the possibly configured options, it seems). I have never had trouble with this port with its default config.
__________________
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 Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old October 21st, 2010, 18:27
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default

Still no luck. I cleared the config, reconfigured and tried to rebuild, but I'm still getting the same error.
__________________
I'm a rebel in the S.D.G.
Reply With Quote
  #4  
Old October 21st, 2010, 18:55
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,817
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Is the rest of your installed ports currently up to date? This should always be the case before one attempts to install new ports (including the specifics in /usr/ports/UPDATING).
__________________
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 Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #5  
Old October 21st, 2010, 18:58
qsecofr qsecofr is offline
Member
 
Join Date: Mar 2009
Location: PDX
Posts: 198
Thanks: 27
Thanked 8 Times in 8 Posts
Default

What's in /etc/make.conf? I had a similar issue with xscreensaver failing to build. I googled and I think my issue related to CFLAGS having either an incompatible -O or -pipe options. (system not accessible to me at the moment, so relying on memory) I commented out CFLAGS entirely and went with the system default values.
Reply With Quote
The Following User Says Thank You to qsecofr For This Useful Post:
lyuts (October 22nd, 2010)
  #6  
Old October 21st, 2010, 23:23
SIFE SIFE is offline
Member
 
Join Date: Feb 2009
Location: When ever where ever
Posts: 462
Thanks: 51
Thanked 16 Times in 15 Posts
Default

Try to comment out CFLAGS in your /etc/make.conf.
Reply With Quote
The Following User Says Thank You to SIFE For This Useful Post:
lyuts (October 22nd, 2010)
  #7  
Old October 22nd, 2010, 07:54
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Is the rest of your installed ports currently up to date? This should always be the case before one attempts to install new ports (including the specifics in /usr/ports/UPDATING).
Yes, I have all other ports up to date and I do follow the instructions in /usr/ports/UPDATING.
__________________
I'm a rebel in the S.D.G.
Reply With Quote
  #8  
Old October 22nd, 2010, 07:56
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default

Quote:
Originally Posted by qsecofr View Post
What's in /etc/make.conf? I had a similar issue with xscreensaver failing to build. I googled and I think my issue related to CFLAGS having either an incompatible -O or -pipe options. (system not accessible to me at the moment, so relying on memory) I commented out CFLAGS entirely and went with the system default values.
I don't remember modifying /etc/make.conf but I will take a look at it as soon as I get home.
__________________
I'm a rebel in the S.D.G.
Reply With Quote
  #9  
Old October 22nd, 2010, 17:12
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default

My /etc/make.conf is as follows:

Code:
CFLAGS= -O -pipe
#avoid compiling profiled libraries
NO_PROFILE=true                                                                                
CPUTYPE?=core2
# added by use.perl 2010-10-16 18:32:28
PERL_VERSION=5.12.2
I removed CFLAGS and tried to compile x11/xcreensaver again. This time everything went ok.

So you are suggesting to leave make.conf without CFLAGS?
__________________
I'm a rebel in the S.D.G.
Reply With Quote
  #10  
Old October 22nd, 2010, 17:19
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default

I found this problem mentioned in thisfreebsd mailing list.
__________________
I'm a rebel in the S.D.G.
Reply With Quote
  #11  
Old October 22nd, 2010, 19:37
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,701
Thanks: 429
Thanked 1,757 Times in 1,456 Posts
Default

Quote:
Originally Posted by lyuts View Post
My /etc/make.conf is as follows:

Code:
CFLAGS= -O -pipe
#avoid compiling profiled libraries
NO_PROFILE=true                                                                                
CPUTYPE?=core2
# added by use.perl 2010-10-16 18:32:28
PERL_VERSION=5.12.2
I removed CFLAGS and tried to compile x11/xcreensaver again. This time everything went ok.

So you are suggesting to leave make.conf without CFLAGS?
YES. Setting CFLAGS offers little or no benefit and causes more than a few problems. Whoever advised you to set CFLAGS would have told you this, except they couldn't post because their system was broken due to setting CFLAGS.
Reply With Quote
  #12  
Old October 23rd, 2010, 08:12
lyuts lyuts is offline
Member
 
Join Date: Nov 2008
Location: Kyiv, Ukraine
Posts: 182
Thanks: 6
Thanked 10 Times in 10 Posts
Default

Quote:
Originally Posted by wblock View Post
YES. Setting CFLAGS offers little or no benefit and causes more than a few problems. Whoever advised you to set CFLAGS would have told you this, except they couldn't post because their system was broken due to setting CFLAGS.
Noone advised be to set CFLAGS that way. I didn't touch /etc/make.conf at all. After upgrading my system to 8.1 a picked the new file when running mergemaster. The only modification was done, as it appears, by perl port. Anyway, I will keep in mind what you said.
__________________
I'm a rebel in the S.D.G.
Reply With Quote
Reply

Tags
build xscreensaver fail, internal compiler error, xscreensaver

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
xscreensaver fails to install rloc Installation and Maintenance of FreeBSD Ports or Packages 2 October 21st, 2010 23:18
Upgrading Jails after upgrading FreeBSD8? Thorny Installing & Upgrading 16 January 4th, 2010 00:09
Upgrading 6.0 to 6.x...(4) jaymax Installing & Upgrading 0 July 20th, 2009 18:28
upgrading from 7.2 to 8 LateNiteTV Installing & Upgrading 9 June 15th, 2009 18:26
[Solved] Upgrading from 6.0 to 7.2 ph0enix Installing & Upgrading 19 April 2nd, 2009 00:28


All times are GMT +1. The time now is 01:08.


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