Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2006 19:13:56 GMT
From:      Robert <drakcap@pacbell.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/102329: Solution to compiler error of "cups-pstoraster" port on 4.x
Message-ID:  <200608201913.k7KJDtFv066265@www.freebsd.org>
Resent-Message-ID: <200608201920.k7KJKHEs020593@freefall.freebsd.org>

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

>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:



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