Bug 69871 - compile error for databases/py-MySQLdb
Summary: compile error for databases/py-MySQLdb
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Clement Laforet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-01 12:10 UTC by claudiu
Modified: 2004-08-02 08:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description claudiu 2004-08-01 12:10:24 UTC
When trying to compile py-MySQLdb-1.0.0 as follows:
root@tom:/usr/ports/databases/py-MySQLdb# make
the compile exits with the following error:

running build_ext
building '_mysql' extension
creating build/temp.freebsd-4.10-STABLE-i386-2.3
cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentiumpro -D_THREAD_SAFE -DTHREAD_STACK_SIZE=0x20000 -O -pipe -march=pentiumpro -fPIC -I/usr/local/include/mysql -I/usr/local/include/python2.3 -c _mysql.c -o build/temp.freebsd-4.10-STABLE-i386-2.3/_mysql.o
_mysql.c: In function `_mysql_ConnectionObject_shutdown':
_mysql.c:1548: `SHUTDOWN_DEFAULT' undeclared (first use in this function)
_mysql.c:1548: (Each undeclared identifier is reported only once
_mysql.c:1548: for each function it appears in.)
_mysql.c:1548: too many arguments to function `mysql_shutdown'
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.

Fix: 

this is the diff. you know what to do. I check-ed it and verified it and it works.

root@tom:/usr/ports/databases/py-MySQLdb/files# diff patch-_mysql.c.orig patch-_mysql.c
13c13
< +#if MYSQL_VERSION_ID >= 040103
---
> +#if MYSQL_VERSION_ID >= 40103
How-To-Repeat: recompile the software.
I'm using mysql-4.0.20, installed from ports.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-08-02 06:17:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer.
Comment 2 Clement Laforet freebsd_committer 2004-08-02 08:31:15 UTC
State Changed
From-To: open->closed

Fix committed, thanks!