Mailing List Archive

config.w32.h is missing when compiling in win32
i got the same issue, where i can get those file?





Hi

I'm interested in trying *wackamole* on xp/2003 server. Unfortunately
I've fallen at the first hurdle - compiling *wackamole*.

I've gone through the makefile and copied the folders into the right
directories, but I get:

C:\*wackamole*\*wackamole*-2.1.3>nmake -f NMakefile
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1073: don't know how to make '*config*.*w32*.*h*'
Stop.
C:\*wackamole*\*wackamole*-2.1.3>

Sadly, I appear to be missing *config*.*w32*.*h* from the *wackamole* zip
file?
I also note that "$(SPREAD)\win\libtspread.lib" does not appear in the
spread folder?

I normally only deal with perl, but have access to an install of
visualstudio.net 2003 to try to compile this (but I'm not a developer,
so am probably doing something stupid).

If anybody could point me to precompiled binaries, or give me some hints
on compiling I'd be grateful.

Kind Regards
Re: config.w32.h is missing when compiling in win32 [ In reply to ]
Finally got this file, hope it helps to compile on win32,


/* Don't edit this file, edit config.w32.h instead */
#ifndef CONFIG_H
#define CONFIG_H

#define _WIN32_WINNT 0x0501
#include <winsock2.h>
#undef interface

#define BUNDLEEXT "obj"
#define HAVE_GOOD_VARGS

#define IFNAMSIZ 256 /* can be huge names on windows */
#define ETH_ALEN 6

#define HAVE_SP_H 1
#define HAVE_PCAP_H 1
#define HAVE_STDIO_H 1
#define HAVE_SOCKLEN_T 1
#define HAVE_ERRNO_H 1
#define HAVE_ASSERT_H 1

#define HAVE_INTXX_T 1
#define HAVE_U_INTXX_T 1
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef unsigned __int8 u_int_8_t;
typedef unsigned __int16 u_int_16_t;
typedef unsigned __int32 u_int_32_t;

/* pthread stubs */

#define DONT_USE_THREADS 1

#ifndef DONT_USE_THREADS
typedef DWORD pthread_t;
typedef CRITICAL_SECTION pthread_mutex_t;

typedef struct {
int detached;
} pthread_attr_t;

enum {
PTHREAD_CREATE_DETACHED = 1,

PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 1,
};

int pthread_setcanceltype(int type, int *oldtype);
int pthread_cancel(pthread_t thread);

int pthread_create(pthread_t *thread, pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg);
int pthread_attr_init(pthread_attr_t *attr);
int pthread_attr_setdetachstate(pthread_attr_t *attr, int state);
int pthread_attr_destroy(pthread_attr_t *attr);

int pthread_mutex_init(pthread_mutex_t *mutex, void *attr);
int pthread_mutex_lock(pthread_mutex_t *mutex);
int pthread_mutex_unlock(pthread_mutex_t *mutex);
int pthread_mutex_destroy(pthread_mutex_t *mutex);
#endif

/* fun with posix descriptors */

#define read _hide_ms_read
#define write _hide_ms_write
#define close _hide_ms_close
#include <io.h>
#undef read
#undef write
#undef close

int wackamole_win32_write(int fd, const void *buf, int len);
int wackamole_win32_read(int fd, void *buf, int len);
int wackamole_win32_close(int fd);

#define read wackamole_win32_read
#define write wackamole_win32_write
#define close wackamole_win32_close
#define EWOULDBLOCK EAGAIN

enum {
RTLD_GLOBAL,
RTLD_NOW
};

void *dlopen(const char *name, int flags);
void *dlsym(void *handle, const char *symbol);
void dlclose(void *handle);
const char *dlerror(void);

#include "defines.h"

#include <signal.h>

#endif