From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 12:08:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DC0116A4CE for ; Fri, 24 Sep 2004 12:08:05 +0000 (GMT) Received: from hp2.euro.net.mk (hp2.euro.net.mk [212.110.94.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8489F43D1D for ; Fri, 24 Sep 2004 12:08:02 +0000 (GMT) (envelope-from FreeBSD@euro.net.mk) Received: from [212.110.94.68] by hp2.euronet.com.mk (NTMail 7.00.0018/SG1971.09.57a4aa33) with ESMTP id jrvtqaaa for freebsd-questions@freebsd.org; Fri, 24 Sep 2004 14:12:21 +0200 Date: Fri, 24 Sep 2004 14:07:52 +0200 From: Perica Veljanovski To: Ty Hoeffer , FreeBSD-Questions In-Reply-To: <200409231447.56386.pth3k@virginia.edu> References: <20040923190908.C2EC.FREEBSD@euro.net.mk> <200409231447.56386.pth3k@virginia.edu> Message-Id: <20040924140105.C2F7.FREEBSD@euro.net.mk> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.10.02 [en] X-VSMLoop: euronet.com.mk Subject: Re: problem installing p5-DBD-mysql50 from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 12:08:05 -0000 > On Thursday 23 September 2004 13:09, Perica Veljanovski wrote: > > Hi all, > > > > I have a problem installing the p5-DBD on my bsd box: > > > > /usr/ports/databases/p5-DBD-mysql50#make install > > fails with the following err: > > ----------------------------------------------------------------------- > > ===> Building for p5-DBD-mysql50-2.9003 > > cc -c -I/usr/local/lib/perl5/site_perl/5.8.4/mach/auto/DBI > > -I/usr/local/include/mysql -O -pipe -D_THREAD_SAFE -O -pipe -O -pipe > > -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -DPIC -fPIC > > "-I/usr/local/lib/perl5/5.8.4/mach/CORE" mysql.c mysql.xs: In function > > `XS_DBD__mysql__dr__admin_internal': > > mysql.xs:103: `SHUTDOWN_DEFAULT' undeclared (first use in this function) > > mysql.xs:103: (Each undeclared identifier is reported only once > > mysql.xs:103: for each function it appears in.) > > mysql.xs:103: too many arguments to function `mysql_shutdown' > > *** Error code 1 > > > > Stop in /usr/ports/databases/p5-DBD-mysql50/work/DBD-mysql-2.9003. > > *** Error code 1 > > > > Stop in /usr/ports/databases/p5-DBD-mysql50. > > ----------------------------------------------------------------------- > > I run on a cvsup-ed 4.7 to FreeBSD 4.10-STABLE (port's cvsuped allso) > > I have: > > mysql Ver 14.3 Distrib 5.0.0-alpha, for portbld-freebsd4.10 (i386) > > perl, v5.8.4 built for i386-freebsd-64int > > p5-DBI-1.42_1 The perl5 Database Interface. Required for DBD::*modules > > All installed from ports. > > ----------------------------------------------------------------------- > > Can you help me with this. I can't locate the problem? > > > > ps. mysql-server isn't running :P > > > > 10x ahead > > I had the same problem last week. I just installed the pieces sepparately. > installed mysql50-server from the ports & the DBI/DBD stuff from CPAN. > > you could try just install the CPAN modules: > > perl -MCPAN -e 'install Bundle::DBI' > or > perl -MCPAN -e 'install Bundle::DBD' > > Ty Hoeffer > > -- > *************************************************************************** > * Ty Hoeffer -- IS Net Engineer -- UVa. Health System/Computing Services > * pth3k at Virginia.EDU -- http://warhammer.mcc.virginia.edu/ty > * "Democracy is two wolves and a lamb deciding what to have for dinner. > * Liberty is a well armed lamb contesting the decision." Ben Franklin > *************************************************************************** > _______________________________________________ I tired the newest modules from CPAN, the same thing. But after a couple of minutes searching trough the .c I found that removing the "SHUTDOWN_DEFAULT" from the following line: result = mysql_shutdown(sock, SHUTDOWN_DEFAULT); does the trick. --- ps.10x Ty