Author |
Message |
Lynx Newbie
Age:34 Gender: Joined: Jan 26 2009 Posts: 19 Location: My mothers basement. Offline
|
Posted: Mon Jan 26, 2009 9:21 am Post subject: Error compiling on Darwin/Mac OS X |
|
|
|
|
I've been attempting to get asss compiling on OS X (with help from Goldeye), however I'm stuck on this issue.
Make Deps:
christopher-burkes-macbook-pro:src turkst3r$ make deps
python /asss-1.4.4/scripts/makedeps.py -I. -Iinclude -I/asss-1.4.4/build -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/include/BerkeleyDB.4.5/include -I/usr/include/mysql/include -I/usr//include/python2.3 \
*/*.c -P '$(BUILDDIR)/' -o /asss-1.4.4/build/deps.mk
makedeps: ignoring option: -I/asss-1.4.4/build
makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: ignoring option: -fPIC
makedeps: ignoring option: -I/usr/include/BerkeleyDB.4.5/include
makedeps: ignoring option: -I/usr/include/mysql/include
makedeps: ignoring option: -I/usr//include/python2.3
makedeps: warning: "pthread.h" not found
makedeps: warning: "zlib.h" not found
makedeps: warning: "mysql.h" not found
makedeps: warning: "db.h" not found
makedeps: warning: "errno.h" not found
makedeps: warning: "Python.h" not found
makedeps: warning: "structmember.h" not found
|
Make
christopher-burkes-macbook-pro:src turkst3r$ make
gcc -std=gnu99 -pipe -I. -Iinclude -I/asss-1.4.4/build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o /asss-1.4.4/build/admincmd.o core/admincmd.c
core/admincmd.c: In function ?Cdelfile?:
core/admincmd.c:63: error: ?PATH_MAX? undeclared (first use in this function)
core/admincmd.c:63: error: (Each undeclared identifier is reported only once
core/admincmd.c:63: error: for each function it appears in.)
core/admincmd.c:63: warning: unused variable ?path?
core/admincmd.c:63: warning: unused variable ?wd?
core/admincmd.c: In function ?Crenfile?:
core/admincmd.c:85: error: ?PATH_MAX? undeclared (first use in this function)
core/admincmd.c:85: warning: unused variable ?newpath?
core/admincmd.c:85: warning: unused variable ?oldpath?
core/admincmd.c:85: warning: unused variable ?wd?
core/admincmd.c: In function ?Cgetfile?:
core/admincmd.c:124: error: ?PATH_MAX? undeclared (first use in this function)
core/admincmd.c:124: warning: unused variable ?path?
core/admincmd.c:124: warning: unused variable ?wd?
core/admincmd.c: In function ?Cputfile?:
core/admincmd.c:241: error: ?PATH_MAX? undeclared (first use in this function)
core/admincmd.c:241: warning: unused variable ?serverpath?
core/admincmd.c:241: warning: unused variable ?wd?
core/admincmd.c: In function ?Cputzip?:
core/admincmd.c:288: error: ?PATH_MAX? undeclared (first use in this function)
core/admincmd.c:288: warning: unused variable ?serverpath?
core/admincmd.c:288: warning: unused variable ?wd?
core/admincmd.c: In function ?Cpwd?:
core/admincmd.c:379: error: ?PATH_MAX? undeclared (first use in this function)
core/admincmd.c:379: warning: unused variable ?wd?
{standard input}:84:non-relocatable subtraction expression, "_logfile" minus "L00000000001$pb"
{standard input}:84:symbol: "_logfile" can't be undefined in a subtraction expression
{standard input}:69:non-relocatable subtraction expression, "_logfile" minus "L00000000001$pb"
{standard input}:69:symbol: "_logfile" can't be undefined in a subtraction expression
make: *** [/asss-1.4.4/build/admincmd.o] Error 1
|
When I locate limits.h it returns (amongst others):
/usr/include/i386/limits.h
/usr/include/limits.h
|
As I understand it, PATH_MAX errors are usually due to different different distros, which could well be the reason in my case. Goldeye suggested to use #include <sys/limits.h> in the indef WIN32 section, however still no avail.
Licience stuff was here, not important. This is the limits.h file (/usr/include/limits.h)
* @(#)limits.h 8.2 (Berkeley) 1/4/94
*/
#ifndef _LIMITS_H_
#define _LIMITS_H_
#include <sys/cdefs.h>
#include <machine/limits.h>
#include <sys/syslimits.h>
#if !defined(_ANSI_SOURCE)
#define _POSIX_AIO_LISTIO_MAX 2
#define _POSIX_AIO_MAX 1
#define _POSIX_DELAYTIMER_MAX 32
#define _POSIX_HOST_NAME_MAX 255
#define _POSIX_LOGIN_NAME_MAX 9
#define _POSIX_MQ_OPEN_MAX 8
#define _POSIX_MQ_PRIO_MAX 32
#define _POSIX_ARG_MAX 4096
#define _POSIX_CHILD_MAX 25
#define _POSIX_LINK_MAX 8
#define _POSIX_MAX_CANON 255
#define _POSIX_MAX_INPUT 255
#define _POSIX_NAME_MAX 14
#define _POSIX_NGROUPS_MAX 8
#define _POSIX_OPEN_MAX 20
#define _POSIX_PATH_MAX 256
#define PATH_MAX 256
#define _POSIX_PIPE_BUF 512
#define _POSIX_SSIZE_MAX 32767
#define _POSIX_STREAM_MAX 8
#define _POSIX_TZNAME_MAX 6
#define _POSIX_RE_DUP_MAX 255
#define _POSIX_RTSIG_MAX 8
#define _POSIX_SEM_NSEMS_MAX 256
#define _POSIX_SEM_VALUE_MAX 32767
#define _POSIX_SIGQUEUE_MAX 32
#define _POSIX_SS_REPL_MAX 4
#define _POSIX_SYMLINK_MAX 255
#define _POSIX_SYMLOOP_MAX 8
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
#define _POSIX_THREAD_KEYS_MAX 128
#define _POSIX_THREAD_THREADS_MAX 64
#define _POSIX_TIMER_MAX 32
#define _POSIX_TRACE_EVENT_NAME_MAX 30
#define _POSIX_TRACE_NAME_MAX 8
#define _POSIX_TRACE_SYS_MAX 8
#define _POSIX_TRACE_USER_EVENT_MAX 32
#define _POSIX_TTY_NAME_MAX 9
#define _POSIX2_BC_BASE_MAX 99
#define _POSIX2_BC_DIM_MAX 2048
#define _POSIX2_BC_SCALE_MAX 99
#define _POSIX2_BC_STRING_MAX 1000
#define _POSIX2_CHARCLASS_NAME_MAX 14
#define _POSIX2_COLL_WEIGHTS_MAX 2
#define _POSIX2_EQUIV_CLASS_MAX 2
#define _POSIX2_EXPR_NEST_MAX 32
#define _POSIX2_LINE_MAX 2048
#define _POSIX2_RE_DUP_MAX 255
#define PTHREAD_STACK_MIN 8192
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
#define PTHREAD_KEYS_MAX 512
#if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
#define PASS_MAX 128
#endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
#define NL_ARGMAX 9
#define NL_LANGMAX 14
#define NL_MSGMAX 32767
#define NL_NMAX 1
#define NL_SETMAX 255
#define NL_TEXTMAX 2048
#define _XOPEN_IOV_MAX 16
#define IOV_MAX 1024
#define _XOPEN_NAME_MAX 255
#define _XOPEN_PATH_MAX 1024
#endif /* _ANSI_SOURCE */
/* NZERO to be defined here. TBD. See also sys/param.h */
#endif /* !_LIMITS_H_ */
|
Many thanks in advance,
Lynx |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Jan 26, 2009 5:00 pm Post subject: |
|
|
|
|
The make deps warnings can be ignored.
Tried changing the #include to just <limits.h>? Also, which file were you changing? You didn't specify in your post. I assume admincmd.c. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Lynx Newbie
Age:34 Gender: Joined: Jan 26 2009 Posts: 19 Location: My mothers basement. Offline
|
|
Back to top |
|
|
krslynx Guest
Offline
|
Posted: Sat Jan 31, 2009 8:50 pm Post subject: |
|
|
|
|
bump? |
|
Back to top |
|
|
Gold_eye Guest
Offline
|
Posted: Thu Feb 05, 2009 2:17 am Post subject: |
|
|
|
|
IIRC fcloseall is linux only. You gotta work around it in code. As for the pthread call I'm not sure offhand. Maybe make sure it's an up to date/ gnu version? |
|
Back to top |
|
|
krslynx Guest
Offline
|
|
Back to top |
|
|
|