Opened 13 years ago

Closed 13 years ago

#31301 closed defect (fixed)

p5-dbd-mysql @4.018 build failure on osx lion

Reported by: macportscf@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: p5-dbd-mysql

Description

The DBD-MySQL-Package fails to build on my OSX Lion. The dependencies are installed before, but then on the first file the compilation breaks.

The error messages in the logfile (file attached) is

[...]
:info:build dbdimp.c: In function ‘mysql_db_FETCH_attrib’:
:info:build dbdimp.c:2447: error: ‘sv_undef’ undeclared (first use in this function)
:info:build dbdimp.c:2447: error: (Each undeclared identifier is reported only once
:info:build dbdimp.c:2447: error: for each function it appears in.)
[...]
:info:build make: *** [dbdimp.o] Error 1
[...]

Attachments (2)

5.14-dbd-mysql__main.log (21.8 KB) - added by macportscf@… 13 years ago.
Logfile of build
dbdimp.c.patch (437 bytes) - added by macportscf@… 13 years ago.
Patch with fix

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by macportscf@…

Attachment: 5.14-dbd-mysql__main.log added

Logfile of build

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Port: p5.14-dbd-mysql added

comment:2 Changed 13 years ago by macportscf@…

I just found a solution.

In dbdimp.c in line 2447 it uses the function "sv_undef". All other files in the directory uses "PL_sv_undef". When changing the line in dbdimp.c to PL_sv_undef the compilation gets through.

Changed 13 years ago by macportscf@…

Attachment: dbdimp.c.patch added

Patch with fix

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: haspatch added
Port: p5-dbd-mysql added; p5.14-dbd-mysql removed
Summary: [p5.14-dbd-mysql] @4.018 build failure on osx lionp5-dbd-mysql @4.018 build failure on osx lion

Before seeing your comment, I updated the port to 4.020 in r84121. Does that help or is the patch still needed?

comment:4 in reply to:  3 Changed 13 years ago by macportscf@…

Replying to ryandesign@…:

Before seeing your comment, I updated the port to 4.020 in r84121. Does that help or is the patch still needed?

No, the Patch is not needed anymore as it was fixed in 4.019.

Thank you.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.