FCGI & GD.pm problems

bpm (bpm@terraweb.com)
Thu, 8 Aug 1996 21:17:35 -0500

From: bpm@terraweb.com (bpm)
To: fastcgi-developers@openmarket.com
Subject: FCGI & GD.pm problems
Date: Thu, 8 Aug 1996 21:17:35 -0500
Message-Id: <19960809021735.AAA22633@vlad.terraweb.com>

Well, I've got perl5.003, FCGI dev kit 1.5 configured and running on a
sparc solaris 2.4 (sorry don't have 2.5 :-) ) & all seems to work just
great BUT

The GD.pm package breaks when I make it with the fcgi includes.  I'm
not that great of a 'c' hacker to know why, but if I make the GD.pm
package with the CCFLAGS as:

# --- MakeMaker cflags section:

CCFLAGS = -I/usr/local/httpd/fcgi-devel-kit/include -include /usr/local/httpd/fcgi-devel-kit/include/fcgi_stdio.h -I/usr/local/include -I/opt/gnu/include


then I get a nice core file. This is the core trace:

GDB 4.14 (sparc-sun-solaris2.4), 
Copyright 1995 Free Software Foundation, Inc...
 
warning: core file may not match specified executable file.
Core was generated by `/opt/gnu/bin/perl ./gd_example.cgi'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /opt/gnu/lib/perl5/site_perl/sun4-solaris/auto/GD/GD.so...
done.
#0  0xef65e918 in putc_unlocked ()
(gdb) bt
#0  0xef65e918 in putc_unlocked ()
#1  0xef58e648 in Putword ()
#2  0xef58e38c in GIFEncode ()
#3  0xef58dec4 in gdImageGif ()
#4  0xef586158 in XS_GD__Image_gd__Gif ()
#5  0x4dda4 in Perl_pp_entersub ()
#6  0x48fc4 in Perl_runops ()
#7  0x1e740 in perl_run ()
#8  0x1d5b4 in main ()


It used to work, but that was before all of the fast-cgi additions.
Any ideas?

The strange part is that the gddemo in the gd1.2 release works fine.

If I make the package, but edit the Makefile to have the CCFLAGS be:
# --- MakeMaker cflags section:

CCFLAGS = -I/usr/local/include -I/opt/gnu/include

Then the GD.pm works just fine.

??????  I don't know.  But I thought that you would like to know.
Otherwise, the CGI.pm, etc & FCGI work GREAT.

Thanks

-- 
---
Brian Millett                    
Technology Applications Inc.     "Heaven can not exist,
(314) 530-1981                          If the family is not eternal"
bpm@techapp.com                   F. Ballard Washburn