CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Undifined boot_Socket while compailing C procedure

 



yuri_gelman
Deleted

Jan 29, 2001, 4:56 PM

Post #1 of 1 (759 views)
Undifined boot_Socket while compailing C procedure Can't Post

Hello guys.
I'm trying to finish the C shared object library that has to map to Perl procedures in .pm file. Part of the procedures are using DBI intreface so I had to use DynaLoader and Socket.
Here is the code of the call:
#include <stdio.h>
#include "/usr/local/lib/perl5/sun4-solaris/5.00405/CORE/EXTERN.h"
#include "/usr/local/lib/perl5/sun4-solaris/5.00405/CORE/perl.h"

#ifdef __cplusplus
# define EXTERN_C extern "C"
#else
# define EXTERN_C extern
#endif


static void xs_init (void);


EXTERN_C void boot_DynaLoader _((CV* cv));
EXTERN_C void boot_Socket _((CV* cv));


EXTERN_C void
xs_init()
{
char *file = __FILE__;
/* DynaLoader is a special case */
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
newXS("Socket::bootstrap", boot_Socket, file);
}

When I tried to compile the code using gcc on Solaris 5.7 I've got message that boot_Socket is undefined and because of this the procedure cannot be compiled.


Please let me know what can be done in order to make this work.

Thanks for a help.



Y. Gelman
Oracle DBA

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives