Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2001 00:36:50 -0700 (PDT)
From:      Daniel Lang <dl@leo.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/28169: xlockmore-5.01 port fails with XFree86-4 due to missing -lc_r
Message-ID:  <200106150736.f5F7ao914239@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         28169
>Category:       ports
>Synopsis:       xlockmore-5.01 port fails with XFree86-4 due to missing -lc_r
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 15 00:40:04 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Lang
>Release:        4.3-STABLE
>Organization:
TU Muenchen
>Environment:
FreeBSD atrbg11.informatik.tu-muenchen.de 4.3-STABLE FreeBSD 4.3-STABLE #4: Wed Jun 13 13:31:42 CEST 2001     root@atrbg11.informatik.tu-muenchen.de:/usr/obj/usr/src/sys/ATRBG11  i386
port just cvsupped
>Description:
xlockmore build is broken, if used with XFree86-4. 
Linking of the xlock binary failsdue to unresolved symbols:
[..]
/usr/X11R6/lib/libGL.so: undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.so: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.so: undefined reference to `pthread_setspecific'
[..]

>How-To-Repeat:
Build xlockmore port on a System with XFree86-4.

>Fix:
No real fix. Configure should do the job, but it just tests MesaGL,
not GL, and it would add -lpthread, not -pthread or -lc_r
Anyway, this is a quick-n-dirty hack to make it go through

--- modes/Makefile      Fri Jun 15 09:28:58 2001
+++ modes/Makefile.orig Fri Jun 15 09:28:14 2001
@@ -317,7 +317,7 @@
 #CFLAGS = -g
 XLOCKLDFLAGS = -Wl,-R/usr/lib:/usr/X11R6/lib:/usr/X11R6/lib:/usr/X11R6/lib:/usr/lib $(CHECKLDFLAG)
 XLIBS = /usr/X11R6/lib
-XLOCKLIBS = $(MODULELIB) -L/usr/X11R6/lib  -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/lib  -lSM -lICE   -lXpm -lGL -lGLU -lcrypt -lX11 -lXext -lm -lc_r
+XLOCKLIBS = $(MODULELIB) -L/usr/X11R6/lib  -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/lib  -lSM -lICE   -lXpm -lGL -lGLU -lcrypt -lX11 -lXext -lm
 
 ####
 #### These might have become not necessary as configure do the job

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106150736.f5F7ao914239>