Bug 46210

Summary: portupgrade failure with xfree86
Product: Ports & Packages Reporter: Tiarnan O'Corrain <ocorrain>
Component: Individual Port(s)Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Tiarnan O'Corrain 2002-12-12 16:00:09 UTC
 Portupgrade -RN XFree86 doesn't work either. I just tried to build it
 on a 4.7-STABLE system (here is an excerpt):
 
 making all in programs/appres...
 cc -O4 -march=pentiumpro -mcpu=pentiumpro -pipe -ffast-math
 -funroll-loops 
 -ansi
  -pedantic -Dasm=__asm -Wall -Wpointer-arith     
 -I/usr/ports/x11/XFree86-4-clie
 nts/work/xc -I/usr/ports/x11/XFree86-4-clients/work/xc/exports/include 
 
 -I/usr/X
 11R6/include -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -c appres.c
 In file included from appres.c:34:
 /usr/include/stdlib.h:110: warning: ANSI C does not support `long long'
 /usr/include/stdlib.h:114: warning: ANSI C does not support `long long'
 rm -f appres
 cc -o appres -O4 -march=pentiumpro -mcpu=pentiumpro -pipe -ffast-math 
 -funroll-l
 oops -ansi -pedantic -Dasm=__asm -Wall -Wpointer-arith     
 -L/usr/ports/x11/XFre
 e86-4-clients/work/xc/exports/lib appres.o -lXt -lSM -lICE -lXext -lX11
 
 -L/usr/X
 11R6/lib     -Wl,-rpath,/usr/X11R6/lib
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_signal'
 /usr/X11R6/lib/libXThrStub.so.6: undefined reference to
 `_Xthr_zero_stub_'
 /usr/X11R6/lib/libX11.so: undefined reference to
 `pthread_cond_broadcast'
 /usr/X11R6/lib/libXThrStub.so.6: undefined reference to
 `_Xthr_self_stub_'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_init'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_unlock'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_self'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_destroy'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_lock'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_wait'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_destroy'
 /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_init'
 *** Error code 1
 
 Stop in /usr/ports/x11/XFree86-4-clients/work/xc/programs/appres.
 *** Error code 1
 
 Stop in /usr/ports/x11/XFree86-4-clients/work/xc/programs.
 *** Error code 1
 
 Stop in /usr/ports/x11/XFree86-4-clients.
 ** Command failed [exit code 1]: /usr/bin/script -qa
 /tmp/portupgrade73455.3 
 mak
 e
 ** Fix the problem and try again.
Comment 1 Giorgos Keramidas freebsd_committer freebsd_triage 2002-12-14 21:44:27 UTC
Responsible Changed
From-To: gnats-admin->freebsd-ports


--- Refile PR --- 
Fix synopsis and category fields. 
Also assign this to freebsd-ports, since it seems to be ports related.
Comment 2 Marcus vA 2002-12-22 01:55:49 UTC
> cc -O4 -march=pentiumpro -mcpu=pentiumpro -pipe -ffast-math
    ^^^^^^	
Set your Optimization-flag (-O4) to a value <= -O2, then it should work.

HTH
Regards

Marcus

---
Mr. Cole's Axiom:
The sum of the intelligence on the planet is a constant; the
population is growing.
Comment 3 Tilman Keskinoz freebsd_committer freebsd_triage 2003-01-01 12:42:32 UTC
Responsible Changed
From-To: freebsd-ports->anholt

Over to Maintainer
Comment 4 Eric Anholt freebsd_committer freebsd_triage 2003-01-10 03:02:00 UTC
State Changed
From-To: open->closed

Configuration error (CFLAGS for world at -O3 or greater breaks).