THanks alot for the install info. But I would like your opinion for the following questions:
1 - Do you think that it will work without installing the XS? It seems to be working fine but it is giving me a warning message all the time. 2 - DO I need to worry about it messing anything (kernel/perl installation) if I were to compile and install this module? thanks, -rkl > Hi, > > I just took a look at this. After downloading and unbundling > Class-Datge-1.1.7.tar.gz I found the Date.xs file that you mentioned. > There was no INSTALL file so I did the following: > > perl Makefile.PL # builds Makefile in which Date.xs is referenced > make > make install # no "test" target in this Makefile > > The make ran the following command that shows Date.xs is used to build > Date.c out the following that gives a clue about Date.xs: > > /usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap > /usr/lib/perl5/5.8.0/ExtUtils/typemap Date.xs > Date.xsc && mv Date.xsc > Date.c > Please specify prototyping behavior for Date.xs (see perlxs manual) > > After this, Date.c is compiled into Date.o by gcc: > > gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 > -DVERSION=\"1.1.7\" -DXS_VERSION=\"1.1.7\" > "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE" Date.c > > Then Date.o is loaded into Date.dll: > > LD_RUN_PATH="" ld2 -s -L/usr/local/lib Date.o -o > blib/arch/auto/Class/Date/Date.dll > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a > > And converted into a shared ar archive name libDate.dll.a: > > gcc -shared -o Date.dll -Wl,--out-implib=libDate.dll.a > -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 > -s -L/usr/local/lib Date.o > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a > > Running "make install" installs Date.dll and libDate.dll.a into > > /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/Class/Date/ > > And > > /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/Class/ > > Running "man perlxs" says that XS is an interface format for creating > extensions of perl in C and C libraries. > > Based on this and looking inside Date.xs, it seem that the latter is > where the data types and structures and functions of Class::Date are > defined in a format that is used to generate C code that is compiled > into dynamic libs that are loaded into perl at runtime to implement the > funtionality of this module. > > -tristram > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 12:30 AM > To: [EMAIL PROTECTED] > Subject: Help w/Class::Date Date.xs > > > Can someone help me with where to put the Date.xs file? > > I just downloaded the Class-Date-1.1.7.tar.gz. > > I figured out where to put the 2 files in /usr/lib/perl5/5.8.0/Class: > - Class::Date.pm > - Class::Date::Const.pm > > - Date.xs -where shoud it go? > > I ran th test in the t directory which look like a couple of test > script. It says ok but can't find the xs part: > > "Cannot find the XS part of Class::Date, > using strftime, tzset and tzname from POSIX module." > > thanks, > -rkl > > > ----------------------------------------- > eMail solutions by > http://www.swanmail.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ----------------------------------------- eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]