Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2005 16:12:40 +0200
From:      Eric Masson <e-masson@kisoft-services.com>
To:        Mailing List FreeBSD Ports <freebsd-ports@FreeBSD.org>
Subject:   USE_GETOPT_LONG issues in new port
Message-ID:  <861x94z09z.fsf@srvbsdnanssv.interne.kisoft-services.com>

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

I'm trying to make a new port for the libppd library (bigger work on
lpr-wrapper). Atm, I've copied and modified print/libpaper Makefile and
it looks like the following :

# New ports collection makefile for:    libpaper
# Date created:         Do 16 Nov 2003 20:00:00 CET
# Whom:                 lofi@freebsd.org
#

PORTNAME=       libppd
PORTVERSION=    0.10
CATEGORIES=     print
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     lpr
DISTNAME=       ${PORTNAME}-${PORTVERSION}

COMMENT=        A library providing routines for ppd files

USE_LIBTOOL_VER=15
INSTALLS_SHLIB= Yes
USE_GETOPT_LONG=Yes
CONFIGURE_ARGS= --build=${CONFIGURE_TARGET}

.include <bsd.port.mk>

When compiling the port, the following error is issued :

/bin/sh /usr/local/bin/libtool15 --mode=link cc  -O -pipe   -DPPD_PATH=\"/usr/local/share/postscript/ppd/\" -L/usr/local/lib -lglib12 -o ppdfilt  ppdfilt.o libppd.la 
cc -O -pipe -DPPD_PATH=\"/usr/local/share/postscript/ppd/\" -o .libs/ppdfilt ppdfilt.o  -L/usr/local/lib ./.libs/libppd.so -lglib12 -Wl,--rpath -Wl,/usr/local/lib
ppdfilt.o: In function `main':
ppdfilt.o(.text+0x3f8): undefined reference to `getopt_long'
*** Error code 1

Stop in /usr/ports/print/libppd/work/libppd-0.10/src.
*** Error code 1

Stop in /usr/ports/print/libppd/work/libppd-0.10/src.
*** Error code 1

Stop in /usr/ports/print/libppd/work/libppd-0.10.
*** Error code 1

Stop in /usr/ports/print/libppd/work/libppd-0.10.
*** Error code 1

Stop in /usr/ports/print/libppd.

It seems that LDFLAGS setup made in bsd.port.mk has no effect at linking
stage.

The complete make log is available at :
http://emss.free.fr/informatique/libppd/make.log

I'm no configure guru so could anyone help me please ?

Regards

Éric Masson

-- 
 Adorrrons les fufeurrrs, nos prrreux sauveurrrs ! A genoux ! et
 criez bien haut et fort votre éternelle reconnaissance à nos généreux
 sauveurs, qui nous ont sauvés, malgré nous, de la bêtise éternelle !
 -+-CF in Guide du Neuneu Usenet-Mission impossible, échec manifeste-+-



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