| Summary: | /usr/ports/databases/p5-DBD-mysql50/work/DBD-mysql-2.9004 fails to compile | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Bob Melson <melsonr> |
| Component: | Individual Port(s) | Assignee: | skv <skv> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Bob Melson
2004-08-21 22:30:19 UTC
Responsible Changed From-To: freebsd-ports-bugs->skv Over to maintainer. I don't think anyone has answered this yet, but here goes.. The
problem is that the extra parameter was added with mysql 4.1.3 and 5.0.1,
but not 5.0.0.
Here is a patch that seems to work:
*** work/DBD-mysql-2.9004/mysql.xs.orig Mon Jun 28 23:03:15 2004
--- work/DBD-mysql-2.9004/mysql.xs Tue Sep 7 17:01:09 2004
***************
*** 97,103 ****
}
if (strEQ(command, "shutdown")) {
! #if MYSQL_VERSION_ID < 40103
result = mysql_shutdown(sock);
#else
result = mysql_shutdown(sock, SHUTDOWN_DEFAULT);
--- 97,103 ----
}
if (strEQ(command, "shutdown")) {
! #if MYSQL_VERSION_ID < 40103 || MYSQL_VERSION_ID == 50000
result = mysql_shutdown(sock);
#else
result = mysql_shutdown(sock, SHUTDOWN_DEFAULT);
-Chad
State Changed From-To: open->closed Committed, thanks. |