Bug #19121 Windows incompatible udf_example

Submitted: 15 Apr 2006 20:36 Modified: 22 Sep 2006 17:34
Reporter: Jean Tavernier Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.0.20 OS:Windows (Win XP)
Assigned to: Georg Richter CPU Architecture:Any

[15 Apr 2006 20:36] Jean Tavernier
Description:
There are two problems with the udf_example source and project file:
1) The lookup and reverse_lookup udfs require the following include files:
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>

These aren't available through Visual Studio

2) The dsp file has ..\..\lib\debug\strings.lib as the library path. This path doesn't exist.

How to repeat:
Try to compile udf_example.cpp with Visual Studio.

Suggested fix:
For 2, change the path to ..\..\lib_debug\strings.lib
[16 Apr 2006 6:29] MySQL Verification Team
Thank you for the bug report. That project file is an older one built for the
Visual Studio 6. There are several problems which it: the path
..\..\lib\debug\strings.lib is wrong because should be used with the release
package and not the source package (that directory has different names
in both packages).
Also the udf_example.cpp exists in the \sql directory in the source package
and in the release package just is missed.
[22 Sep 2006 12:43] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/12397

ChangeSet@1.2281, 2006-09-22 14:36:52+02:00, georg@lmy002.wdf.sap.corp +4 -0
  Fix for bug #19121: Windows incompatible udf_example
[22 Sep 2006 12:49] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/12398

ChangeSet@1.2281, 2006-09-22 14:42:43+02:00, georg@lmy002.wdf.sap.corp +6 -0
  Fix for bug #19121: Windows incompatible udf_example
[22 Sep 2006 16:06] Georg Richter
fixed in 5.0.26 and 5.1.12
[22 Sep 2006 17:34] Paul DuBois
Noted in 5.0.26, 5.1.12 changelogs.

The Windows build instructions also have been updated:

http://dev.mysql.com/doc/refman/5.0/en/udf-compiling.html

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.058 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.