Hard-coded Solaris pathname in Tk::JPEG 
Author Message
 Hard-coded Solaris pathname in Tk::JPEG

I'm building the Tk::JPEG-2.010 that I got from CPAN.  My version of
Perl is 5.004_04, and I'm running under RedHat Linux 5.0.

The build fails with the following error (broken into mutiple lines
for ease of reading):

  gcc -c -I/usr/lib/perl5/site_perl/i686-linux/Tk -I/usr/X11R6/include
    -Dbool=char -DHAS_BOOL -O2    -DVERSION=\"2.010\"
    -DXS_VERSION=\"800.005\" -fPIC
    -I/usr/lib/perl5/i686-linux/5.00404/CORE -DBASEEXT=\"JPEG\"  JPEG.c
  make: *** No rule to make target
    `/usr/local/lib/perl5/sun4-solaris/5.00464/Tk/pTk/imgInt.h',
    needed by `imgJPEG.o'.  Stop.

Note the reference to `sun4-solaris/5.00464'.

I noticed that the `imgJPEG.d' file that comes with the Tk::JPEG-2.010
distribution has a list of hard-coded pathnames which contain this
Solaris-based string.

I removed this `imgJPEG.d' file and rebuilt the application, and then
everything worked fine.

I'm not sure if `imgJPEG.d' should actually be removed from the
compressed tar file, or if this file should somehow get regenerated
during the build so that it will contain local pathnames.

Since I got this build to work, I'm not looking for any assistance.  I
just wanted to bring this case to the attention of anyone who might
need to know about this.

--

 perl -e '$n=170;for($d=2;($d*$d)<=$n;$d+=(1+($d%2))){for($t=0;($n%$d)==0;




Fri, 10 Nov 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. problem with tk or tk:jpeg memory usage

2. Tk::PNG and Tk::JPeg module Problem

3. Solution found - Perl Module Tk::JPEG is not compatible with Tk

4. problem with tk or tk:jpeg memory usage

5. Help Tk::Jpeg and Tk 800.023

6. bug in Tk::Pod, pathname mangled

7. Hard coding a variable into a perl script - help

8. Subroutine Prototypes, Hard References and Maintainable Code: take 2

9. Subroutine Prototypes, Hard References and Maintainable Code

10. PERL JPEG or TIFF Source Code Libraries

11. can't find Tk/JPEG.pm in @INC

12. Problems compiling Tk::JPEG

 

 
Powered by phpBB® Forum Software