Hi.
Nachdem ich die sgi freeware ver von gcc installiert habe, kommen etwas andere Meldungen.
Hier mal alle relevanten Stellen aus meiner .profile:
--
export PATH=$PATH:/usr/freeware/bin/
export PATH=$PATH:/usr/local/bin/
export PATH=$PATH:/usr/samba/bin/
export DRQUEUE_ROOT=$DRQUEUE_ROOT/mnt/shared/drqueue/
export DRQUEUE_MASTER=$DRQUEUE_MASTER: worldwindow
--
Dann die aktuelle Makefile:
--
$Id: Makefile 1348 2005-07-20 18:02:38Z jorge $
CC = gcc
CPP = g++
OBJS_LIBDRQUEUE = computer_info.o computer_status.o task.o logger.o communications.o \
computer.o request.o semaphores.o job.o drerrno.o database.o common.o \
aqsissg.o mayasg.o mentalraysg.o blendersg.o bmrtsg.o pixiesg.o 3delightsg.o \
lightwavesg.o aftereffectssg.o shakesg.o terragensg.o nukesg.o
LDFLAGS =
ifeq ($(origin INSTROOT),undefined)
INSTROOT = /mnt/shared/drqueue
endif
ifeq ($(origin INSTUID),undefined)
INSTUID = drqueue
endif
ifeq ($(origin INSTGID),undefined)
INSTGID = drqueue
endif
ifeq ($(origin DOTNETPATH),undefined)
DOTNETPATH = C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322
endif
ifeq ($(origin NSISPATH),undefined)
NSISPATH = C:/Program\ Files/NSIS
endif
#Figure out OS-specific Configuration parameters
ifeq ($(origin systype),undefined)
systype=$(shell uname -s)
endif
ifeq ($(systype),Linux)
CFLAGS = -DCOMM_REPORT -Wall -I. -D__LINUX -g -O2
CPPFLAGS = -D__CPLUSPLUS -D_GNU_SOURCE -DCOMM_REPORT -Wall -I. -D__LINUX -g -O2
MAKE = gmake
else
ifeq ($(systype),IRIX64)
CFLAGS = -DCOMM_REPORT -Wall -I. -D__IRIX -g -O2
CPPFLAGS = -D__CPLUSPLUS -DCOMM_REPORT -Wall -I. -D__IRIX -g -O2
MAKE = /usr/freeware/bin/gmake
else
ifeq ($(systype),Darwin)
CFLAGS = -DCOMM_REPORT -Wall -I. -D__OSX -g -O2
CPPFLAGS = -D__CPLUSPLUS -DCOMM_REPORT -Wall -I. -D__OSX -g -O2
MAKE = gmake
else
ifeq ($(systype),FreeBSD)
CFLAGS = -DCOMM_REPORT -Wall -I. -D__FREEBSD -g -O2
CPPFLAGS = -D__CPLUSPLUS -DCOMM_REPORT -Wall -I. -D__FREEBSD -g -O2
MAKE = gmake
else
ifeq ($(systype),CYGWIN_NT-5.1)
CFLAGS = -DCOMM_REPORT -Wall -I. -D__CYGWIN -g -O2
CPPFLAGS = -D__CPLUSPLUS -DCOMM_REPORT -Wall -I. -D__CYGWIN -g -O2
MAKE = gmake
UIFLAGS += -e _mainCRTStartup -mwindows contrib/windows/Resources/drqueue.res
else
$(error Cannot make DrQueue -- systype "$(systype)" is unknown)
$(error Cannot make DrQueue -- systype "$(systype)" is unknown)
endif
endif
endif
endif
endif
ifneq ($(origin LIBWRAP),undefined)
CFLAGS += -DLIBWRAP
LDFLAGS += -lwrap
endif
#abstract make targets
.PHONY: default all install miniinstall irix_install linux_install doc tags clean
all: base drqman
base: slave master requeue sendjob jobfinfo blockhost cjob jobinfo compinfo
install: miniinstall $(systype)_install
drqman: libdrqueue.a
$(MAKE) -C drqman
IRIX_install:
install -d -m 0777 $(INSTROOT)/tmp
install -d -m 0777 $(INSTROOT)/logs
install -d -m 0755 $(INSTROOT)/bin
install -d -m 0755 $(INSTROOT)/etc
install -d -m 0777 $(INSTROOT)/db
install -d -m 0777 $(INSTROOT)/contrib
cp ./bin/* $(INSTROOT)/bin/ || exit 0
cp ./etc/* $(INSTROOT)/etc/ || exit 0
cp ./contrib/* $(INSTROOT)/contrib/ || exit 0
chmod 0755 $(INSTROOT)/bin/* || exit 0
chmod 0755 $(INSTROOT)/contrib/* || exit 0
chown $(INSTUID):$(INSTGID) $(INSTROOT)/bin/*
chown $(INSTUID):$(INSTGID) $(INSTROOT)/contrib/*
Linux_install:
install -d -m 0777 $(INSTROOT)/tmp
install -d -m 0777 $(INSTROOT)/logs
install -d -m 0755 $(INSTROOT)/bin
install -d -m 0755 $(INSTROOT)/etc
install -d -m 0777 $(INSTROOT)/db
install -d -m 0777 $(INSTROOT)/contrib
cp ./bin/* $(INSTROOT)/bin/ || exit 0
cp ./etc/* $(INSTROOT)/etc/ || exit 0
cp ./contrib/* $(INSTROOT)/contrib/ || exit 0
chmod 0755 $(INSTROOT)/bin/* || exit 0
chmod 0755 $(INSTROOT)/contrib/* || exit 0
chown $(INSTUID):$(INSTGID) $(INSTROOT)/bin/*
chown $(INSTUID):$(INSTGID) $(INSTROOT)/contrib/*
CYGWIN_NT-5.1_install:
install -d -m 0777 $(INSTROOT)/tmp
install -d -m 0777 $(INSTROOT)/logs
install -d -m 0755 $(INSTROOT)/bin
install -d -m 0755 $(INSTROOT)/etc
install -d -m 0777 $(INSTROOT)/db
install -d -m 0777 $(INSTROOT)/contrib
install -d -m 0777 $(INSTROOT)/contrib/windows
install -d -m 0777 $(INSTROOT)/contrib/windows/Installer
install -d -m 0777 $(INSTROOT)/contrib/windows
install -d -m 0777 $(INSTROOT)/contrib/windows/Installer
cp ./bin/*.exe $(INSTROOT)/bin/ || exit 0
cp /usr/sbin/cygserver $(INSTROOT)/bin || exit 0
cp `which expr.exe` $(INSTROOT)/bin || exit 0
cp `which tcsh.exe` $(INSTROOT)/bin || exit 0
cp `which cygpath.exe` $(INSTROOT)/bin || exit 0
cp ./etc/* $(INSTROOT)/etc/ || exit 0
sh ./contrib/windows/build_services.sh $(PWD)/contrib/windows $(DOTNETPATH)
cp ./contrib/* $(INSTROOT)/contrib/ || exit 0
cp ./contrib/windows/*.exe $(INSTROOT)/contrib/windows || exit 0
cp ./contrib/windows/Installer/* $(INSTROOT)/contrib/windows/installer || exit 0
cp COPYING $(INSTROOT)/
chmod 0755 $(INSTROOT)/bin/* || exit 0
chmod 0755 $(INSTROOT)/contrib/* || exit 0
sh contrib/windows/install_dlls.sh $(INSTROOT)/bin
$(NSISPATH)/makensis.exe `cygpath -w $(INSTROOT)/contrib/windows/Installer/installer.nsi`
mv $(INSTROOT)/contrib/windows/Installer/Install.exe $(INSTROOT)/contrib/drqueue-setup.exe
FreeBSD_install:
install -d -m 0777 $(INSTROOT)/tmp
install -d -m 0777 $(INSTROOT)/logs
install -d -m 0755 $(INSTROOT)/bin
install -d -m 0755 $(INSTROOT)/etc
install -d -m 0777 $(INSTROOT)/db
install -d -m 0777 $(INSTROOT)/contrib
cp ./bin/* $(INSTROOT)/bin/ || exit 0
cp ./etc/* $(INSTROOT)/etc/ || exit 0
cp ./contrib/* $(INSTROOT)/contrib/ || exit 0
chmod 0755 $(INSTROOT)/bin/* || exit 0
chmod 0755 $(INSTROOT)/contrib/* || exit 0
chown $(INSTUID):$(INSTGID) $(INSTROOT)/bin/*
chown $(INSTUID):$(INSTGID) $(INSTROOT)/contrib/*
Darwin_install:
install -d -m 0777 $(INSTROOT)/tmp
install -d -m 0777 $(INSTROOT)/logs
install -d -m 0755 $(INSTROOT)/bin
install -d -m 0755 $(INSTROOT)/etc
install -d -m 0777 $(INSTROOT)/db
install -d -m 0777 $(INSTROOT)/contrib
cp ./bin/* $(INSTROOT)/bin/ || exit 0
cp ./etc/* $(INSTROOT)/etc/ || exit 0
cp ./contrib/* $(INSTROOT)/contrib/ || exit 0
chmod 0755 $(INSTROOT)/bin/* || exit 0
chmod 0755 $(INSTROOT)/contrib/* || exit 0
chown $(INSTUID):$(INSTGID) $(INSTROOT)/bin/*
chown $(INSTUID):$(INSTGID) $(INSTROOT)/contrib/*
miniinstall: base
ifeq ($(systype),IRIX)
install -root $(PWD) -d -m 0755 bin
install -root $(PWD) -m 0755 -f /bin -src slave slave.$(systype)
install -root $(PWD) -m 0755 -f /bin -src master master.$(systype)
install -root $(PWD) -m 0755 -f /bin -src requeue requeue.$(systype)
install -root $(PWD) -m 0755 -f /bin -src jobfinfo jobfinfo.$(systype)
install -root $(PWD) -m 0755 -f /bin -src jobinfo jobinfo.$(systype)
install -root $(PWD) -m 0755 -f /bin -src blockhost blockhost.$(systype)
install -root $(PWD) -m 0755 -f /bin -src cjob cjob.$(systype)
install -root $(PWD) -m 0755 -f /bin -src sendjob sendjob.$(systype)
test -x ./drqman/drqman && install -root $(PWD) -m 0755 -f /bin -src drqman/drqman drqman.$(systype) || test 1
else
ifeq ($(systype),CYGWIN_NT-5.1)
install -d -m 0755 bin
install -d -m 0755 bin
install -m 0755 -p ./slave.exe bin/slave.exe
install -m 0755 -p ./master.exe bin/master.exe
install -m 0755 -p ./requeue.exe bin/requeue.exe
install -m 0755 -p ./jobfinfo.exe bin/jobfinfo.exe
install -m 0755 -p ./jobinfo.exe bin/jobfinfo.exe
install -m 0755 -p ./blockhost.exe bin/blockhost.exe
install -m 0755 -p ./cjob.exe bin/cjob.exe
install -m 0755 -p ./sendjob.exe bin/sendjob.exe
test -x ./drqman/drqman.exe && install -m 0755 -p ./drqman/drqman.exe bin/drqman.exe || exit 0
else
install -d -m 0755 bin
install -m 0755 -p ./slave bin/slave.$(systype)
install -m 0755 -p ./master bin/master.$(systype)
install -m 0755 -p ./requeue bin/requeue.$(systype)
install -m 0755 -p ./jobfinfo bin/jobfinfo.$(systype)
install -m 0755 -p ./jobinfo bin/jobinfo.$(systype)
install -m 0755 -p ./blockhost bin/blockhost.$(systype)
install -m 0755 -p ./cjob bin/cjob.$(systype)
install -m 0755 -p ./sendjob bin/sendjob.$(systype)
test -x ./drqman/drqman && install -m 0755 -p ./drqman/drqman bin/drqman.$(systype) || exit 0
endif
endif
doc:
cxref *.[ch] drqman/*.[ch] -all-comments -xref-all -index-all -R/home/jorge/prog/drqueue -O/home/jorge/prog/drqueue/doc -html32 -D__LINUX
tags:
etags *.[ch] drqman/*.[ch]
clean:
rm -fR *.o *.exe *~ libdrqueue.a slave master sendjob requeue jobfinfo jobinfo cjob TAGS tmp/* logs/* db/* contrib/windows/*.exe bin/*.$(systype)
rm -fR blockhost
$(MAKE) -C drqman clean
#actual object make targets
libdrqueue.a : $(OBJS_LIBDRQUEUE) libdrqueue.h
ar sq $@ $(OBJS_LIBDRQUEUE)
ifeq ($(systype),CYGWIN_NT-5.1)
contrib/windows/Resources/drqueue.res: contrib/windows/Resources/drqueue.rc
$(MAKE) -C contrib/windows/Resources
slave: slave.o libdrqueue.a
$(CC) -o $@ slave.o libdrqueue.a $(LDFLAGS) #$(UIFLAGS)
master: master.o libdrqueue.a contrib/windows/Resources/drqueue.res
$(CC) -o $@ master.o libdrqueue.a $(LDFLAGS) #$(UIFLAGS)
else
slave: slave.o libdrqueue.a
$(CC) -o $@ slave.o libdrqueue.a $(LDFLAGS)
master: master.o libdrqueue.a
$(CC) -o $@ master.o libdrqueue.a $(LDFLAGS)
endif
requeue: requeue.o libdrqueue.a
requeue.o: requeue.c
$(CC) -c $(CFLAGS) -o $@ $<
jobfinfo: jobfinfo.o libdrqueue.a
jobfinfo.o: jobfinfo.c
$jobinfo: jobinfo.o libdrqueue.a
jobinfo.o: jobinfo.c
$(CC) -c $(CFLAGS) -o $@ $<
blockhost: blockhost.o libdrqueue.a
blockhost.o: blockhost.c
$(CC) -c $(CFLAGS) -o $@ $<
cjob: cjob.o libdrqueue.a
cjob.o: cjob.c
$(CC) -c $(CFLAGS) -o $@ $<
compinfo: compinfo.o libdrqueue.a
compinfo.o: compinfo.c
$(CC) -c $(CFLAGS) -o $@ $<
sendjob: sendjob.o libdrqueue.a
$(CPP) $(CPPDFLAGS) -o $@ sendjob.o libdrqueue.a $(LDFLAGS)
libdrqueue.h: computer_info.h computer_status.h task.h logger.h communications.h \
computer.h request.h semaphores.h job.h drerrno.h database.h common.h
%.o: %.c %.h constants.h
$(CC) -c $(CFLAGS) -o $@ $<
(CC) -c $(CFLAGS) -o $@ $<
----
Und das aktuelle gmake-log:
---
WorldWindow 7# gmake
gcc -c -DCOMM_REPORT -Wall -I. -D__IRIX -g -O2 -o slave.o slave.c
slave.c:22:19: stdio.h: No such file or directory
slave.c:24:20: signal.h: No such file or directory
slave.c:28:19: errno.h: No such file or directory
slave.c:33:19: ctype.h: No such file or directory
In file included from slave.h:25,
from slave.c:42:
computer.h:27:18: time.h: No such file or directory
In file included from computer.h:30,
from slave.h:25,
from slave.c:42:
computer_status.h:46:18: time.h: No such file or directory
In file included from slave.h:26,
from slave.c:42:
job.h:39:18: time.h: No such file or directory
In file included from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/syslimits.h:7,
from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/limits.h:11,
from slave.h:28,
from slave.c:42:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/limits.h:122:75: limits.h: No such file or directory
In file included from slave.c:42:
slave.h:29:20: signal.h: No such file or directory
In file included from slave.c:42:
slave.h:52: error: `PATH_MAX' undeclared here (not in a function)
In file included from libdrqueue.h:32,
from slave.c:43:
logger.h:25:19: stdio.h: No such file or directory
In file included from libdrqueue.h:32,
from slave.c:43:
logger.h:40: error: parse error before '*' token
logger.h:40: warning: type defaults to `int' in declaration of `log_slave_open_task'
logger.h:40: warning: data definition has no type or storage class
logger.h:42: error: parse error before '*' token
logger.h:42: warning: type defaults to `int' in declaration of `log_slave_open_computer'
logger.h:42: warning: data definition has no type or storage class
logger.h:47: error: parse error before '*' token
logger.h:47: warning: type defaults to `int' in declaration of `log_master_open'
logger.h:47: warning: data definition has no type or storage class
slave.c: In function `main':
slave.c:70: warning: implicit declaration of function `system'
slave.c:73: warning: implicit declaration of function `fprintf'
slave.c:73: error: `stderr' undeclared (first use in this function)
slave.c:73: error: (Each undeclared identifier is reported only once
slave.c:73: error: for each function it appears in.)
slave.c:74: warning: implicit declaration of function `exit'
slave.c:101: warning: implicit declaration of function `pipe'
slave.c:106: warning: implicit declaration of function `fork'
slave.c:144: warning: implicit declaration of function `select'
slave.c:155: warning: implicit declaration of function `read'
slave.c: In function `set_signal_handlers':
slave.c:171: warning: implicit declaration of function `sigemptyset'
slave.c:173: warning: implicit declaration of function `sigaction'
slave.c: In function `clean_out':
slave.c:216: warning: implicit declaration of function `kill'
slave.c:221: warning: implicit declaration of function `printf'
slave.c:229: warning: implicit declaration of function `perror'
slave.c: In function `get_shared_memory_slave':
slave.c:247: warning: implicit declaration of function `getenv'
slave.c:247: warning: assignment makes pointer from integer without a cast
slave.c:248: warning: implicit declaration of function `snprintf'
slave.c:264: error: `stderr' undeclared (first use in this function)
slave.c: In function `get_semaphores_slave':
slave.c:279: warning: assignment makes pointer from integer without a cast
slave.c: In function `slave_consistency_process':
slave.c:397: warning: implicit declaration of function `sleep'
slave.c: In function `slave_listening_process':
slave.c:418: warning: implicit declaration of function `close'
slave.c:419: warning: implicit declaration of function `alarm'
slave.c: In function `launch_task':
slave.c:480: warning: implicit declaration of function `setpgid'
slave.c:484: warning: implicit declaration of function `dup2'
slave.c:484: error: `STDOUT_FILENO' undeclared (first use in this function)
slave.c:485: error: `STDERR_FILENO' undeclared (first use in this function)
slave.c:498: warning: implicit declaration of function `execve'
slave.c:500: error: `errno' undeclared (first use in this function)
slave.c: In function `zerocmd':
slave.c:566: warning: implicit declaration of function `isspace'
slave.c: In function `usage':
slave.c:590: error: `stderr' undeclared (first use in this function)
slave.c: In function `slave_get_options':
slave.c:606: warning: implicit declaration of function `getopt'
slave.c:610: error: `optarg' undeclared (first use in this function)
slave.c:617: warning: implicit declaration of function `atoi'
gmake: *** [slave.o] Error 1
---
Das merkwürdige ist bsp
"find / ctype.h" (in der csh)
-> Nichts.
find limits.h
-> usr/nekoware/lib/gcc/mips-sgi-IRIX6.5//3.4.0/include/limits.h
find stdio.h
-> usr/nekoware/lib/gcc/mips-sgi-IRIX6.5//3.4.0/include/stdio.h
find time.h
->
/usr/include/sys/time.h
das, obwohl die libstdc++ mit gcc (sgi freeware) installiert wurde..
Tom99: Könnte man sich vielleicht mal per icq gemeinsam daran setzen? (falls es nicht zu weit weg ist auch gerne persönlich)
Habe auch gerade Jorge in der Leitung, welcher sich leider nicht so gut mit Irix auskennt..
Grüße und vielen dank für jegliche Hilfe,
Chris