Hello,
following the recent discussions I gave GD.pm another try. The build
environment is the following:
Perl 5.8.0 (including patch to allow extension building)
OpenVMS 7.3
Compaqc C 6.5
Libgd 2.0.1
Libpng 1.2.2
Zlib 1.1.4
Freetype 2.1.0
Jpeglib 6B
and GD.pm 2.0.1
Following the discussions here I came up with the following patch to
Makefile.PL to add at least some level of support for OpenVMS from the
start (you still need to define the lib_root and pubbin logicals to
carter for the local environment, but at least you should have an idea
were to start with this patch...). I do want to propose this change to
Lincoln Stein, but wanted to get feedback from the group first it this
looks sensible at all.
Also with the versions noted above still the problem with a corrupt
descrip.mms created does persist. What happens is that as soon as you
have @INC defined the /include for CC gets garbled, i.e. of the normal
contents of @INC only perl_root:[lib.vms_axp.5_8_0] survives followed by
two comas and the the contents of @INC as set in Makefile.PL. Does anybody
have a fix for this already?
Greetings, Martin
*** Makefile.PL Tue Aug 27 20:58:59 2002
--- Makefile.PL.orig Fri Aug 9 11:37:59 2002
***************
*** 9,35 ****
my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/;
my @LIBS = qw(-lgd -lpng -lz);
- if ($^O eq 'VMS'){
- warn "This is a build on OpenVMS. In case of problems with the build\n";
- warn "do not bother Lincoln Stein but get in touch with\n";
- warn "Martin P.J. Zinser ([EMAIL PROTECTED])\n\n";
-
- if ($ENV{"LIB_ROOT"} eq "") {
- warn "Define lib_root as a concealed logical pointing to the\n";
- warn "Top directory where you have your libraries installed\n";
- warn "E.g. define/job/trans=conc lib_root public$device:[public.util.libs;
- warn "Also define the logical pubbin to point to the location\n"
- warn "of the object libraries\n"
- warn "Then re-invoke Makefile.PL\n";
- warn "Exiting now...\n";
- exit;
- }
-
- @INC = qw(-I/lib_root/gd -I/lib_root/libpng -I/lib_root/zlib);
- @LIBPATH = qw(-Lpubbin);
- @LIBS = qw(-llibgd.olb -llibpng.olb -llibz.olb);
- }
-
# FEATURE FLAGS
warn "\nPlease choose the features that match how libgd was built:\n";
--- 9,14 ----
***************
*** 48,58 ****
push @LIBS,'-ljpeg' if $JPEG;
push @LIBS, '-lm' unless $^O eq 'MSWin32';
- push @INC, '-I/lib_root/libjpeg' if ($JPEG && $^O eq 'VMS');
- push @INC, '-I/lib_root/ft2/include/freetype' if ($FT && $^O eq 'VMS');
- push @INC, '-I/X11' if ($XPM && $^O eq 'VMS');
-
-
# FreeBSD 3.3 with libgd built from ports croaks if -lXpm is specified
if ($^O ne 'freebsd' && $^O ne 'MSWin32') {
push @LIBS,'-lX11','-lXpm' if $XPM;
--- 27,32 ----
Dr. Martin P.J. Zinser [EMAIL PROTECTED]
Deutsche Boerse Systems Inc.
Suite 1580 Tel: +1-312-408-3085
141 West Jackson Blvd. FAX: +1-312-408-3071
Chicago, IL, 60604
USA Private: [EMAIL PROTECTED]