Bug 3015 - cannot compile perl module YAML-Syck-0.28
: cannot compile perl module YAML-Syck-0.28
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 6.5b1
: Sun Other
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-16 11:22 UTC by Russell Blaine
Modified: 2011-03-16 04:34 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Blaine 2006-02-16 11:22:47 UTC
When running the build-perl-modules.pl script for SlimServer_v2006-02-16, the compilation of the YAML-Syck-0.28 module fails using Sun Studio compilers:

Downloading YAML-Syck-0.28.tar.gz to: /export/home/rab/software/slimserver/SlimServer_v2006-02-16
Uncompressing..
Configuring..
 /usr/bin/perl Makefile.PL 
Building..
"gram.c", line 1115: warning: implicit function declaration: sycklex
"node.c", line 125: void function cannot return value
cc: acomp failed for node.c
make: Fatal error: Command failed for target `node.o'
Couldn't find a valid dynamic library for YAML-Syck-0.28.tar.gz - something is wrong. Exiting!

Diffs for the fix are this:

125c125
<     return syck_replace_str2( n, str, strlen( str ), style );
---
>     syck_replace_str2( n, str, strlen( str ), style );

Funny though, after fixing the file and running the build-perl-modules.pl script again, it downloads a fresh copy (thus overwriting the diffs), the compilation fails again, but the script thinks it has succeeded:

Downloading YAML-Syck-0.28.tar.gz to: /export/home/rab/software/slimserver/SlimServer_v2006-02-16
Uncompressing..
Configuring..
 /usr/bin/perl Makefile.PL 
Building..
"gram.c", line 1115: warning: implicit function declaration: sycklex
"node.c", line 125: void function cannot return value
cc: acomp failed for node.c
make: Fatal error: Command failed for target `node.o'
Library for YAML-Syck-0.28.tar.gz is OK!
All done!
Comment 1 Dan Sully 2006-04-23 17:19:37 UTC
We aren't using YAML::Syck right now. Newer nightlies don't have this.