From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 20 19:20:35 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE89A16A4E0 for ; Sun, 20 Aug 2006 19:20:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F98843D7D for ; Sun, 20 Aug 2006 19:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7KJKH4I020597 for ; Sun, 20 Aug 2006 19:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7KJKHEs020593; Sun, 20 Aug 2006 19:20:17 GMT (envelope-from gnats) Resent-Date: Sun, 20 Aug 2006 19:20:17 GMT Resent-Message-Id: <200608201920.k7KJKHEs020593@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF2E216A4DA for ; Sun, 20 Aug 2006 19:13:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 339D243D5A for ; Sun, 20 Aug 2006 19:13:56 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k7KJDuGx066266 for ; Sun, 20 Aug 2006 19:13:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k7KJDtFv066265; Sun, 20 Aug 2006 19:13:56 GMT (envelope-from nobody) Message-Id: <200608201913.k7KJDtFv066265@www.freebsd.org> Date: Sun, 20 Aug 2006 19:13:56 GMT From: Robert To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/102329: Solution to compiler error of "cups-pstoraster" port on 4.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2006 19:20:35 -0000 >Number: 102329 >Category: ports >Synopsis: Solution to compiler error of "cups-pstoraster" port on 4.x >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 20 19:20:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Robert >Release: 4.11-Stable >Organization: >Environment: FreeBSD 4.11-STABLE #4: Tue Jul 4 17:48:52 PDT 2006 >Description: "Cups-pstoraster" port has not compiled on FreeBSD 4.x systems since July 6 or so, and has consistently failed to compile since the upgrade of "cups-base" to 1.2.2 on my system. The end of the compilation, on my system and on "pointyhat", looks like this: ./obj/echogs -a ./obj/ldt.tr -s -  -lm if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \         XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \         FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \         DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \         DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \         DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \         DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \         /bin/sh <./obj/ldt.tr /usr/local/lib/libcups.so: undefined reference to `pthread_getspecific' /usr/local/lib/libcups.so: undefined reference to `pthread_once' /usr/local/lib/libcups.so: undefined reference to `pthread_key_create' /usr/local/lib/libcups.so: undefined reference to `pthread_mutex_unlock' /usr/local/lib/libcups.so: undefined reference to `pthread_mutex_lock' /usr/local/lib/libcups.so: undefined reference to `pthread_setspecific' gmake: *** [bin/espgs] Error 1 *** Error code 2 >How-To-Repeat: Attempt to compile the "cups-pstoraster" port on a 4.x system after upgrading "cups-base" to 1.2.2. >Fix: I have found the solution, which I will describe below: 1) in "cups-pstoraster" port, perform "make configure" but do not "make" yet. 2) go to work directory of "ports/print/ghostscript-gnu" (which should be "work/ghostscript-7.07"). 3) Edit the "Makefile" in that directory in the following manner: a) line 235: add "-L/usr/local/lib/pth" to "XLDFLAGS" b) uncomment lines 255 and 305. c) comment out lines 258 and 308. 4) Save the edited "Makefile", go back to the "cups-pstoraster" port directory and perform the "make" operation. The compile operation now completes flawlessly. I would gladly update the "cups-pstoraster" port, as I see there is no maintainer for it, but I'm a newbie in that particular area. If someone else can do this faster they are welcome to the job. >Release-Note: >Audit-Trail: >Unformatted: