Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Oct 2002 07:07:47 +0800
From:      glastech@iinet.net.au
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43845: [PATCH] - The cups-pstoraster port does not build due to undefined functions
Message-ID:  <E17z3S7-000OPB-00@localhost>

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

>Number:         43845
>Category:       ports
>Synopsis:       [PATCH] - The cups-pstoraster port does not build due to undefined functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 08 16:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Geoff Glasson
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD localhost 4.6-STABLE FreeBSD 4.6-STABLE #11: Sat Aug 17 11:12:59 WST 2002 root@:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
	Compilation of the port failed giving the following error message.

./obj/gomni.o: In function `OpenDevice':
./obj/gomni.o(.text+0x151): undefined reference to `bmp_map_16m_rgb_color'
./obj/gomni.o(.text+0x15b): undefined reference to `bmp_map_16m_color_rgb'
gmake: *** [bin/espgs] Error 1
*** Error code 2

>How-To-Repeat:
	Go to the /usr/ports/print/cups-pstoraster directory and type 'make clean all'.  It will take
some time for the error to occur as there a number of files to be compiled prior to the file giving the
error.
>Fix:


        The Makefile supplied with the port only builds the CUPS driver, however it is dependent
upon the BMP16M driver to supply the functions listed as undefined during compilation.  Changing
the Makefile so that it built the BMP16M driver as well resulted in the port building, installing,
and operating correctly.

	The supplied patch enables the port to build successfully - on my system at least.


--- Makefile.patch begins here ---
*** Makefile.old	Wed Oct  9 06:49:50 2002
--- Makefile	Wed Oct  9 06:50:05 2002
***************
*** 27,33 ****
  CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
  			LDFLAGS="-L${LOCALBASE}/lib"
  CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
! 		--with-drivers=cups --with-gs=espgs \
  		--with-fontpath=${LOCALBASE}/share/ghostscript/fonts \
  		--enable-compiled-inits
  
--- 27,33 ----
  CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
  			LDFLAGS="-L${LOCALBASE}/lib"
  CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
! 		--with-drivers=cups,bmp16m --with-gs=espgs \
  		--with-fontpath=${LOCALBASE}/share/ghostscript/fonts \
  		--enable-compiled-inits
  
--- Makefile.patch ends here ---



>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?E17z3S7-000OPB-00>