Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 12:23:44 +0100 (CET)
From:      Riccardo Torrini <riccardo@torrini.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/152399: databases/yasql fail to compile/run due to non-existing function call
Message-ID:  <20101119112344.63EBD1CC0D@tiger.fi.esaote.it>
Resent-Message-ID: <201011191200.oAJC0J7x041146@freefall.freebsd.org>

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

>Number:         152399
>Category:       ports
>Synopsis:       databases/yasql fail to compile/run due to non-existing function call
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 19 12:00:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Riccardo Torrini
>Release:        FreeBSD 8.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD tiger.fi.esaote.it 8.1-STABLE FreeBSD 8.1-STABLE #16: Tue Oct 19 09:24:48 CEST 2010 root@tiger.fi.esaote.it:/usr/obj/usr/src/sys/TIGER i386


	
>Description:
	yasql try to use perl err() function and fail to compile/run.
	Also give some warning about deprecated functions.

>How-To-Repeat:
	# cd /usr/ports/databases/yasql && make install clean
	# yasql
	syntax error at /usr/local/bin/yasql line 177, near "err"
	syntax error at /usr/local/bin/yasql line 180, near "}"
	Execution of /usr/local/bin/yasql aborted due to compilation errors.

	After substitued all err() with die() yasql start but if you use
	perl -w `which yasql` you can also get this warnings:

	Use of "do" to call subroutines is deprecated at /tmp/ya line 2407.
	Use of "do" to call subroutines is deprecated at /tmp/ya line 2410.
	\1 better written as $1 at /tmp/ya line 2876.
	\1 better written as $1 at /tmp/ya line 2890.
	Unrecognized escape \G passed through at /tmp/ya line 3565.
	Unrecognized escape \S passed through at /tmp/ya line 3565.

	First four lines are self-explained, last two have a missing "\"
	in the help section (to correctly show as "\G" asking for help).



>Fix:

	Change err() with die(), replace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