[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
[ID 20000108.002] perlcc
Hi, i'm using perlcc for linux (RedHat 6.1 RPM). I am compiling a small
server (source included) with the command perlcc server.pl 1>stdlog
2>errlog (attached here). Is it something to do with a missing module? It
runs fine normaly. I get the same errors with the client for it.
Mark Zealey
mark@itsolve.co.uk
#!/usr/bin/perl
# This script is (C) Mark Zealey 2000. All rights reserved
foreach $ARGV (@ARGV){ $_=$ARGV;
if(/^help$/i){print "Just start the server, and then query it by using \nclient and then the postcode. For other information, try using:\n$0 version\n$0 author\n";exit;}
elsif(/^version$/i){print "This is version 1.0 of the post code server. It is (C) Mark Zealey 2000.\n";exit;}
elsif(/^author$/i){print "The postcode server is (C) Mark Zealey 2000.\nE-Mail: mark\@itsolve.co.uk\n";exit;}
}
print "Postcode server 2.0 (C) 2000 Mark Zealey, Started.\n";
use IO::Socket;
use Net::hostent;
open(LOG,"dbase") || die "Can't open database!";
@list=<LOG>;
close(LOG);
foreach $line (@list)
{
@_ = split(/,/,$line);
$first[$count] = $_[0];
$list[$count] = join(' ',@_);
$count++;
}
print "OK, dbase parsing compleated, starting network activities\n";
$server=IO::Socket::INET->new(Proto=>'tcp',LocalPort=>2345,Listen=>SOMAXCONN,Reuse=>1);
print "Listning on port 2345\n";
while ($client = $server->accept()) {
$client->autoflush(1);
$hostinfo = gethostbyaddr($client->peeraddr);
$SEARCH=<$client>;
chop($SEARCH);
print "Request for code $SEARCH\n";
if($SEARCH ne "quit")
{
for($count1=0;$count1<=$count;$count1++)
{
if ( ( $first[$count1] =~ /$SEARCH/i ) || ( $SEARCH =~ /$first[$count1]/i ) )
{
print $client "$list[$count1]\n";
$v=1;
}
}
if($v==0)
{
print $client "Record not found in database\n";
}
$v=0;
}
close $client;
print "Reply send. Closed connection\n";
}
--------------------------------------------------------------------------------
Compiling server.pl:
--------------------------------------------------------------------------------
Making C(server.pl.c) for server.pl!
perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 -I/usr/lib/perl5/site_perl/5.005/i386-linux -I/usr/lib/perl5/site_perl/5.005 -I. -MO=CC,-oserver.pl.c server.pl
server.pl syntax OK
No definition for sub Socket::SOMAXCONN
No definition for sub Socket::SOMAXCONN (unable to autoload)
No definition for sub Socket::MSG_EOF
No definition for sub Socket::MSG_EOF (unable to autoload)
No definition for sub Socket::SO_DONTROUTE
No definition for sub Socket::SO_DONTROUTE (unable to autoload)
No definition for sub Socket::AF_DATAKIT
No definition for sub Socket::AF_DATAKIT (unable to autoload)
No definition for sub Socket::SO_RCVTIMEO
No definition for sub Socket::SO_RCVTIMEO (unable to autoload)
No definition for sub Socket::SCM_CONNECT
No definition for sub Socket::SCM_CONNECT (unable to autoload)
No definition for sub Socket::MSG_EOR
No definition for sub Socket::MSG_EOR (unable to autoload)
No definition for sub Socket::MSG_CTLIGNORE
No definition for sub Socket::MSG_CTLIGNORE (unable to autoload)
No definition for sub Socket::AF_UNSPEC
No definition for sub Socket::AF_UNSPEC (unable to autoload)
No definition for sub Socket::SOL_SOCKET
No definition for sub Socket::SOL_SOCKET (unable to autoload)
No definition for sub Socket::MSG_MAXIOVLEN
No definition for sub Socket::MSG_MAXIOVLEN (unable to autoload)
No definition for sub Socket::SO_OOBINLINE
No definition for sub Socket::SO_OOBINLINE (unable to autoload)
No definition for sub Socket::PF_NIT
No definition for sub Socket::PF_NIT (unable to autoload)
No definition for sub Socket::SO_TYPE
No definition for sub Socket::SO_TYPE (unable to autoload)
No definition for sub Socket::PF_UNSPEC
No definition for sub Socket::PF_UNSPEC (unable to autoload)
No definition for sub Socket::AF_X25
No definition for sub Socket::AF_X25 (unable to autoload)
No definition for sub Socket::AF_LAT
No definition for sub Socket::AF_LAT (unable to autoload)
No definition for sub Socket::AF_GOSIP
No definition for sub Socket::AF_GOSIP (unable to autoload)
No definition for sub Socket::PF_PUP
No definition for sub Socket::PF_PUP (unable to autoload)
No definition for sub Socket::SO_SNDLOWAT
No definition for sub Socket::SO_SNDLOWAT (unable to autoload)
No definition for sub Socket::PF_802
No definition for sub Socket::PF_802 (unable to autoload)
No definition for sub Socket::AF_OSI
No definition for sub Socket::AF_OSI (unable to autoload)
No definition for sub Socket::PF_APPLETALK
No definition for sub Socket::PF_APPLETALK (unable to autoload)
No definition for sub Socket::AF_HYLINK
No definition for sub Socket::AF_HYLINK (unable to autoload)
No definition for sub Socket::SO_DONTLINGER
No definition for sub Socket::SO_DONTLINGER (unable to autoload)
No definition for sub Socket::PF_NBS
No definition for sub Socket::PF_NBS (unable to autoload)
No definition for sub Socket::AF_ECMA
No definition for sub Socket::AF_ECMA (unable to autoload)
No definition for sub Socket::MSG_NOSIGNAL
No definition for sub Socket::MSG_NOSIGNAL (unable to autoload)
No definition for sub Socket::PF_HYLINK
No definition for sub Socket::PF_HYLINK (unable to autoload)
No definition for sub Socket::SO_RCVBUF
No definition for sub Socket::SO_RCVBUF (unable to autoload)
No definition for sub Socket::SOCK_RDM
No definition for sub Socket::SOCK_RDM (unable to autoload)
No definition for sub Socket::SO_RCVLOWAT
No definition for sub Socket::SO_RCVLOWAT (unable to autoload)
No definition for sub Socket::SCM_TIMESTAMP
No definition for sub Socket::SCM_TIMESTAMP (unable to autoload)
No definition for sub Socket::PF_NS
No definition for sub Socket::PF_NS (unable to autoload)
No definition for sub Socket::PF_GOSIP
No definition for sub Socket::PF_GOSIP (unable to autoload)
No definition for sub Socket::SO_USELOOPBACK
No definition for sub Socket::SO_USELOOPBACK (unable to autoload)
No definition for sub Socket::SO_ERROR
No definition for sub Socket::SO_ERROR (unable to autoload)
No definition for sub Socket::AF_MAX
No definition for sub Socket::AF_MAX (unable to autoload)
No definition for sub Socket::SOCK_SEQPACKET
No definition for sub Socket::SOCK_SEQPACKET (unable to autoload)
No definition for sub Socket::SCM_CREDS
No definition for sub Socket::SCM_CREDS (unable to autoload)
No definition for sub Socket::MSG_URG
No definition for sub Socket::MSG_URG (unable to autoload)
No definition for sub Socket::SO_KEEPALIVE
No definition for sub Socket::SO_KEEPALIVE (unable to autoload)
No definition for sub Socket::AF_CCITT
No definition for sub Socket::AF_CCITT (unable to autoload)
No definition for sub Socket::AF_DLI
No definition for sub Socket::AF_DLI (unable to autoload)
No definition for sub Socket::MSG_FIN
No definition for sub Socket::MSG_FIN (unable to autoload)
No definition for sub Socket::AF_APPLETALK
No definition for sub Socket::AF_APPLETALK (unable to autoload)
No definition for sub Socket::MSG_OOB
No definition for sub Socket::MSG_OOB (unable to autoload)
No definition for sub Socket::AF_SNA
No definition for sub Socket::AF_SNA (unable to autoload)
No definition for sub Socket::PF_IMPLINK
No definition for sub Socket::PF_IMPLINK (unable to autoload)
No definition for sub Socket::PF_ECMA
No definition for sub Socket::PF_ECMA (unable to autoload)
No definition for sub Socket::PF_X25
No definition for sub Socket::PF_X25 (unable to autoload)
No definition for sub Socket::MSG_ERRQUEUE
No definition for sub Socket::MSG_ERRQUEUE (unable to autoload)
No definition for sub Socket::PF_LAT
No definition for sub Socket::PF_LAT (unable to autoload)
No definition for sub Socket::AF_OSINET
No definition for sub Socket::AF_OSINET (unable to autoload)
No definition for sub Socket::AF_IMPLINK
No definition for sub Socket::AF_IMPLINK (unable to autoload)
No definition for sub Socket::PF_OSI
No definition for sub Socket::PF_OSI (unable to autoload)
No definition for sub Socket::SO_SNDBUF
No definition for sub Socket::SO_SNDBUF (unable to autoload)
No definition for sub Socket::PF_OSINET
No definition for sub Socket::PF_OSINET (unable to autoload)
No definition for sub Socket::SO_DEBUG
No definition for sub Socket::SO_DEBUG (unable to autoload)
No definition for sub Socket::MSG_PROXY
No definition for sub Socket::MSG_PROXY (unable to autoload)
No definition for sub Socket::PF_CCITT
No definition for sub Socket::PF_CCITT (unable to autoload)
No definition for sub Socket::MSG_DONTWAIT
No definition for sub Socket::MSG_DONTWAIT (unable to autoload)
No definition for sub Socket::AF_NIT
No definition for sub Socket::AF_NIT (unable to autoload)
No definition for sub Socket::SO_BROADCAST
No definition for sub Socket::SO_BROADCAST (unable to autoload)
No definition for sub Socket::MSG_WAITALL
No definition for sub Socket::MSG_WAITALL (unable to autoload)
No definition for sub Socket::AF_CHAOS
No definition for sub Socket::AF_CHAOS (unable to autoload)
No definition for sub Socket::MSG_CTRUNC
No definition for sub Socket::MSG_CTRUNC (unable to autoload)
No definition for sub Socket::AF_DECnet
No definition for sub Socket::AF_DECnet (unable to autoload)
No definition for sub Socket::AF_PUP
No definition for sub Socket::AF_PUP (unable to autoload)
No definition for sub Socket::SO_REUSEADDR
No definition for sub Socket::SO_REUSEADDR (unable to autoload)
No definition for sub Socket::AF_802
No definition for sub Socket::AF_802 (unable to autoload)
No definition for sub Socket::SO_LINGER
No definition for sub Socket::SO_LINGER (unable to autoload)
No definition for sub Socket::AF_NS
No definition for sub Socket::AF_NS (unable to autoload)
No definition for sub Socket::PF_DECnet
No definition for sub Socket::PF_DECnet (unable to autoload)
No definition for sub Socket::AF_NBS
No definition for sub Socket::AF_NBS (unable to autoload)
No definition for sub Socket::MSG_DONTROUTE
No definition for sub Socket::MSG_DONTROUTE (unable to autoload)
No definition for sub Socket::MSG_PEEK
No definition for sub Socket::MSG_PEEK (unable to autoload)
No definition for sub Socket::SCM_CREDENTIALS
No definition for sub Socket::SCM_CREDENTIALS (unable to autoload)
No definition for sub Socket::MSG_TRUNC
No definition for sub Socket::MSG_TRUNC (unable to autoload)
No definition for sub Socket::MSG_CTLFLAGS
No definition for sub Socket::MSG_CTLFLAGS (unable to autoload)
No definition for sub Socket::PF_MAX
No definition for sub Socket::PF_MAX (unable to autoload)
No definition for sub Socket::SO_ACCEPTCONN
No definition for sub Socket::SO_ACCEPTCONN (unable to autoload)
No definition for sub Socket::MSG_RST
No definition for sub Socket::MSG_RST (unable to autoload)
No definition for sub Socket::MSG_SYN
No definition for sub Socket::MSG_SYN (unable to autoload)
No definition for sub Socket::PF_CHAOS
No definition for sub Socket::PF_CHAOS (unable to autoload)
No definition for sub Socket::SO_SNDTIMEO
No definition for sub Socket::SO_SNDTIMEO (unable to autoload)
No definition for sub Socket::PF_INET
No definition for sub Socket::PF_INET (unable to autoload)
No definition for sub Socket::PF_DLI
No definition for sub Socket::PF_DLI (unable to autoload)
No definition for sub Socket::SCM_RIGHTS
No definition for sub Socket::SCM_RIGHTS (unable to autoload)
No definition for sub Socket::PF_SNA
No definition for sub Socket::PF_SNA (unable to autoload)
No definition for sub Socket::PF_DATAKIT
No definition for sub Socket::PF_DATAKIT (unable to autoload)
No definition for sub Socket::PF_UNIX
No definition for sub Socket::PF_UNIX (unable to autoload)
substcont: op = LOGOP (0x813ecb8) pp_substcont, pmop = PMOP (0x813ecf8) pp_subst
pmopsym = (OP*)&pmop_list[15]
substcont: op = LOGOP (0x813cd40) pp_substcont, pmop = PMOP (0x813ccb0) pp_subst
pmopsym = (OP*)&pmop_list[16]
substcont: op = LOGOP (0x813efa0) pp_substcont, pmop = PMOP (0x813efd8) pp_subst
pmopsym = (OP*)&pmop_list[17]
Compiling C(server) for server.pl!
perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 -I/usr/lib/perl5/site_perl/5.005/i386-linux -I/usr/lib/perl5/site_perl/5.005 -I. /tmp/server.pl.tst
cc -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -I/usr/lib/perl5/5.00503/i386-linux/CORE /usr/lib/perl5/5.00503/i386-linux/auto/Fcntl/Fcntl.so /usr/lib/perl5/5.00503/i386-linux/auto/Socket/Socket.so -o server server.pl.c -L/usr/local/lib -L/usr/lib/perl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt
stdlog
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]