Determing architecture in a makefile
I have a program that I'd like to build on both intel and ppc Macs running Leopard.
I'd like to have my makefile handle the job. I tried to determine the architecture by ..
ARCH = $(if $(findstring i386,$(MACHTYPE)),i386,powerpc)
But within the makefile MACHTYPE is empty. From the terminal, I get what I'd expect.
$ echo $MACHTYPE
i386-apple-darwin9.0
My eventual goal is to define a library for g95
FLIB = -L/sw/lib/gcc-lib/$(ARCH)-apple-darwin9/4.0.3/ -lf95
If anyone can help, I'd appreciate it.
TiA
It doesn't seem to be defined as an actual environment variable nor does it seem to be accurate.
Apple's generally recommended procedures are outlined here:
http://devworld.apple.com/DOCUMENTATION/Porting/Conceptual/PortingUnix/compiling /compiling.html#//apple_ref/doc/uid/TP40002850-BAJCFEBA
Similar Messages
-
I am porting some C and C++ code over to the Solaris 8 Intel platform. The code compiles fine on Linux X86 and Solaris 8 Sparc platforms using gcc. However on Intel Solaris using gcc, I get a warning (which seems to be more like an error since my programs starts with an immediate segmentation fault) that reports: "372 #error ISA not supported". All I know, this error is refering to the the file /usr/include/sys/isa_defs.h header file. So does anyone one know what to do here? Does Solaris 8 need a patch, does the header file need to be configure for the Intel platform....etc. I would really appreciate any help anyone might have!!!
Brent Miller
[email protected]sounds like "something" may not have been understood during compilation - like the program things it has been built for wrong instuction set architecture Does the makefile have flags that assume that Solaris equates to Sparc?
Try starting the program under truss to see what breaks - may give further clues -
How can I modify this makefile to create proper ARMV7 dylibs?
I need to modify this makefile in order to create proper dylibs for inclusion in my IOS projects. If I just using the dylibs generated without changing this file, I get this error trying to use the dylibs:
ld: warning: ld: warning: ignoring file Undefined symbols for architecture armv7s:
"_mongo_connect", referenced from:
-[ViewController viewDidLoad] in ViewController.o
libbson.dylib, file was built for unsupported file format
( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7s):
Undefined symbols for architecture armv7s:
"_mongo_connect", referenced from:
-[ViewController viewDidLoad] in ViewController.o
libbson.dylibignoring file
Undefined symbols for architecture armv7s:
"_mongo_connect", referenced from:
-[ViewController viewDidLoad] in ViewController.o
libmongoc.dylib, file was built for unsupported file format
( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7s):
Undefined symbols for architecture armv7s:
"_mongo_connect", referenced from:
-[ViewController viewDidLoad] in ViewController.o
libmongoc.dylib
Undefined symbols for architecture armv7s:
"_mongo_connect", referenced from:
-[ViewController viewDidLoad] in ViewController.o
The makefile:
# MongoDB C Driver Makefile
# Copyright 2009, 2010 10gen Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Version
MONGO_MAJOR=0
MONGO_MINOR=6
MONGO_PATCH=0
BSON_MAJOR=$(MONGO_MAJOR)
BSON_MINOR=$(MONGO_MINOR)
BSON_PATCH=$(MONGO_PATCH)
# Library names
MONGO_LIBNAME=libmongoc
BSON_LIBNAME=libbson
# Standard or posix env.
ENV?=posix
# TODO: add replica set test, cpp test, platform tests, json_test
TESTS=test_auth test_bcon test_bson test_bson_subobject test_count_delete \
test_cursors test_endian_swap test_errors test_examples \
test_functions test_gridfs test_helpers \
test_oid test_resize test_simple test_sizes test_update \
test_validate test_write_concern test_commands
MONGO_OBJECTS=src/bcon.o src/bson.o src/encoding.o src/gridfs.o src/md5.o src/mongo.o \
src/numbers.o
BSON_OBJECTS=src/bcon.o src/bson.o src/numbers.o src/encoding.o
ifeq ($(ENV),posix)
TESTS+=test_env_posix test_unix_socket
MONGO_OBJECTS+=src/env_posix.o
else
MONGO_OBJECTS+=src/env_standard.o
endif
DYN_MONGO_OBJECTS=$(foreach i,$(MONGO_OBJECTS),$(patsubst %.o,%.os,$(i)))
DYN_BSON_OBJECTS=$(foreach i,$(BSON_OBJECTS),$(patsubst %.o,%.os,$(i)))
# Compile flags
ALL_DEFINES=$(DEFINES)
ALL_DEFINES+=-D_POSIX_SOURCE
CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
DYN_FLAGS:=-fPIC -DMONGO_DLL_BUILD
# Endianness check
endian := $(shell sh -c 'echo "ab" | od -x | grep "6261" >/dev/null && echo little || echo big')
ifeq ($(endian),big)
ALL_DEFINES+=-DMONGO_BIG_ENDIAN
endif
# Int64 type check
int64:=$(shell ./check_int64.sh $(CC) stdint.h && echo stdint)
ifeq ($(int64),stdint)
ALL_DEFINES+=-DMONGO_HAVE_STDINT
else
int64:=$(shell ./check_int64.sh $(CC) unistd.h && echo unistd)
ifeq ($(int64),unistd)
ALL_DEFINES+=-DMONGO_HAVE_UNISTD
endif
endif
$(shell rm header_check.tmp tmp.c)
TEST_DEFINES=$(ALL_DEFINES)
TEST_DEFINES+=-DTEST_SERVER="\"127.0.0.1\""
OPTIMIZATION?=-O3
WARNINGS?=-Wall
DEBUG?=-ggdb
STD?=c99
PEDANTIC?=-pedantic
ALL_CFLAGS=-std=$(STD) $(PEDANTIC) $(CFLAGS) $(OPTIMIZATION) $(WARNINGS) $(DEBUG) $(ALL_DEFINES)
ALL_LDFLAGS=$(LDFLAGS)
# Shared libraries
DYLIBSUFFIX=so
STLIBSUFFIX=a
MONGO_DYLIBNAME=$(MONGO_LIBNAME).$(DYLIBSUFFIX)
MONGO_DYLIB_MAJOR_NAME=$(MONGO_DYLIBNAME).$(MONGO_MAJOR)
MONGO_DYLIB_MINOR_NAME=$(MONGO_DYLIB_MAJOR_NAME).$(MONGO_MINOR)
MONGO_DYLIB_PATCH_NAME=$(MONGO_DYLIB_MINOR_NAME).$(MONGO_PATCH)
MONGO_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(MONGO_DYLIB_MINOR_NAME) -o $(MONGO_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_MONGO_OBJECTS)
BSON_DYLIBNAME=$(BSON_LIBNAME).$(DYLIBSUFFIX)
BSON_DYLIB_MAJOR_NAME=$(BSON_DYLIBNAME).$(BSON_MAJOR)
BSON_DYLIB_MINOR_NAME=$(BSON_DYLIB_MAJOR_NAME).$(BSON_MINOR)
BSON_DYLIB_PATCH_NAME=$(BSON_DYLIB_MINOR_NAME).$(BSON_PATCH)
BSON_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(BSON_DYLIB_MINOR_NAME) -o $(BSON_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_BSON_OBJECTS)
# Static libraries
MONGO_STLIBNAME=$(MONGO_LIBNAME).$(STLIBSUFFIX)
BSON_STLIBNAME=$(BSON_LIBNAME).$(STLIBSUFFIX)
# Overrides
kernel_name := $(shell sh -c 'uname -s 2>/dev/null || echo not')
ifeq ($(kernel_name),SunOS)
ALL_LDFLAGS+=-ldl -lnsl -lsocket
INSTALL_CMD=cp -r
MONGO_DYLIB_MAKE_CMD=$(CC) -G -o $(MONGO_DYLIBNAME) -h $(MONGO_DYLIB_MINOR_NAME) $(ALL_LDFLAGS)
BSON_DYLIB_MAKE_CMD=$(CC) -G -o $(BSON_DYLIBNAME) -h $(BSON_DYLIB_MINOR_NAME) $(ALL_LDFLAGS)
endif
ifeq ($(kernel_name),Darwin)
ALL_CFLAGS+=-std=$(STD) $(CFLAGS) $(OPTIMIZATION) $(WARNINGS) $(DEBUG) $(ALL_DEFINES)
DYLIBSUFFIX=dylib
MONGO_DYLIB_MINOR_NAME=$(MONGO_LIBNAME).$(DYLIBSUFFIX).$(MONGO_MAJOR).$(MONGO_M INOR)
MONGO_DYLIB_MAJOR_NAME=$(MONGO_LIBNAME).$(DYLIBSUFFIX).$(MONGO_MAJOR)
MONGO_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(MONGO_DYLIB_MINOR_NAME) -o $(MONGO_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_MONGO_OBJECTS)
BSON_DYLIB_MINOR_NAME=$(BSON_LIBNAME).$(DYLIBSUFFIX).$(BSON_MAJOR).$(BSON_MINOR )
BSON_DYLIB_MAJOR_NAME=$(BSON_LIBNAME).$(DYLIBSUFFIX).$(BSON_MAJOR)
BSON_DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(BSON_DYLIB_MINOR_NAME) -o $(BSON_DYLIBNAME) $(ALL_LDFLAGS) $(DYN_BSON_OBJECTS)
endif
# Installation
ifeq ($(kernel_name),SunOS)
INSTALL?=cp -r
endif
INSTALL?= cp -a
INSTALL_INCLUDE_PATH?=/usr/local/include
INSTALL_LIBRARY_PATH?=/usr/local/lib
# TARGETS
all: $(MONGO_DYLIBNAME) $(BSON_DYLIBNAME) $(MONGO_STLIBNAME) $(BSON_STLIBNAME)
# Dependency targets. Run 'make deps' to generate these.
bcon.o: src/bcon.c src/bcon.h src/bson.h
bson.o: src/bson.c src/bson.h src/encoding.h
encoding.o: src/encoding.c src/bson.h src/encoding.h
env_standard.o: src/env_standard.c src/env.h src/mongo.h src/bson.h
env_posix.o: src/env_posix.c src/env.h src/mongo.h src/bson.h
gridfs.o: src/gridfs.c src/gridfs.h src/mongo.h src/bson.h
md5.o: src/md5.c src/md5.h
mongo.o: src/mongo.c src/mongo.h src/bson.h src/md5.h src/env.h
numbers.o: src/numbers.c
$(MONGO_DYLIBNAME): $(DYN_MONGO_OBJECTS)
$(MONGO_DYLIB_MAKE_CMD)
$(MONGO_STLIBNAME): $(MONGO_OBJECTS)
$(AR) -rs $@ $(MONGO_OBJECTS)
$(BSON_DYLIBNAME): $(DYN_BSON_OBJECTS)
$(BSON_DYLIB_MAKE_CMD)
$(BSON_STLIBNAME): $(BSON_OBJECTS)
$(AR) -rs $@ $(BSON_OBJECTS)
install:
mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
$(INSTALL) src/mongo.h src/bson.h $(INSTALL_INCLUDE_PATH)
$(INSTALL) $(MONGO_DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(MONGO_DYLIB_PATCH_NAME)
$(INSTALL) $(BSON_DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(BSON_DYLIB_PATCH_NAME)
cd $(INSTALL_LIBRARY_PATH) && ln -sf $(MONGO_DYLIB_PATCH_NAME) $(MONGO_DYLIB_MINOR_NAME)
cd $(INSTALL_LIBRARY_PATH) && ln -sf $(BSON_DYLIB_PATCH_NAME) $(BSON_DYLIB_MINOR_NAME)
cd $(INSTALL_LIBRARY_PATH) && ln -sf $(MONGO_DYLIB_MINOR_NAME) $(MONGO_DYLIBNAME)
cd $(INSTALL_LIBRARY_PATH) && ln -sf $(BSON_DYLIB_MINOR_NAME) $(BSON_DYLIBNAME)
$(INSTALL) $(MONGO_STLIBNAME) $(INSTALL_LIBRARY_PATH)
$(INSTALL) $(BSON_STLIBNAME) $(INSTALL_LIBRARY_PATH)
scan-build: clean
scan-build -V -v make
test: $(TESTS)
sh runtests.sh
valgrind: $(TESTS)
sh runtests.sh -v
docs:
python docs/buildscripts/docs.py
clean:
rm -rf src/*.o src/*.os test/*.o test/*.os test_* .scon* config.log
clobber: clean
rm -rf $(MONGO_DYLIBNAME) $(MONGO_STLIBNAME) $(BSON_DYLIBNAME) $(BSON_STLIBNAME) docs/html docs/source/doxygen
deps:
$(CC) -MM -DMONGO_HAVE_STDINT src/*.c
32bit:
$(MAKE) CFLAGS="-m32" LDFLAGS="-pg"
test_%: test/%_test.c test/test.h $(MONGO_STLIBNAME)
$(CC) -o $@ -L. -Isrc $(TEST_DEFINES) $(ALL_LDFLAGS) $< $(MONGO_STLIBNAME)
%.o: %.c
$(CC) -o $@ -c $(ALL_CFLAGS) $<
%.os: %.c
$(CC) -o $@ -c $(ALL_CFLAGS) $(DYN_FLAGS) $<
.PHONY: 32bit all clean clobber deps docs install test valgrindHi Petar,
Thanks for your answer. No doubt that we could solve the issue using on of the way you suggested.
However, even though I had the evdre issue right after applying time dimension modifications, it occurs that the evdre issue was not due to time dimension modifications. I tested it better and I can tell that using "total" as a level works.
Best regards,
Ludovic -
Makefile for building 32 and 64 bit versions of a driver/app
Does anyone have good example Makefile that can build both a 32bit and 64bit version on device driver and userspace programs? I'm using gcc and gmake to build a streams module and some user space utilities for both 32 and 64 bit x86 and Sparc architectures. I currently have a bunch of taget specific make files, but I know there must be a better more elegant way of doing this. Ideally I would like to build both the 32 and 64 bit versions for the running architecture with the same make command. I don't need to cross compile (ie. build sparc on x86 ).
Yes, with Creative Cloud you will have both 32 and 64 bit versions installed. 32 bit is useful in cases when you have a plugin that only supports 32 bit, not 64 bit.
You might check below forum discussion as well.
http://forums.adobe.com/message/4737722 -
"Undefined symbols for architecture" when building Universal Binaries
The build I'm doing works fine when specifying either i386 or x86_64 or ppc *by itself*, however whenever I try to combine the archs to make a UB, I get problems building libraries. I'm using an existing makefile system as this needs to be portable across many platforms. Any ideas?
Here's the output (trying i386 & x86_64):
gcc -I/Users/Documents/AccurevWorkspace/RDMe-AurigaDevmacosx/include -D_REENTRANT -DOSX_X86 -DNO_TERMCAP -DNOPOSIXMUTEXES -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5 -DNO_ENCRYPTION -DTASK_DEFN -DNO_ENCRYPTION -c sddlp_util.c -o osx/static/sddlp_util.o
ar ru osx/librdmeddl9_static.a osx/static/ddlp.o osx/static/ddlalign.o osx/static/ddllex.o osx/static/ddlp_util.o osx/static/ddltable.o osx/static/ddlxref.o osx/static/writejni.o osx/static/sddlp.o osx/static/sddlp_util.o
ar: creating archive osx/librdmeddl9_static.a
cp -f /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/source/tools/ddl/osx/librdmeddl9static.a /Users/Documents/AccurevWorkspace/RDMe-AurigaDevmacosx/lib/osx
gcc -c -I/Users/Documents/AccurevWorkspace/RDMe-AurigaDevmacosx/include -D_REENTRANT -DOSX_X86 -DNO_TERMCAP -DNOPOSIXMUTEXES -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5 -DNO_ENCRYPTION -DTASK_DEFN -DNO_ENCRYPTION ddlp_main.c -o osx/static/ddlp_main.o
gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5 -o osx/ddlp_static osx/static/ddlp_main.o -L/Users/Documents/AccurevWorkspace/RDMe-AurigaDevmacosx/lib/osx -lrdmeddl9_static -L/Users/Documents/AccurevWorkspace/RDMe-AurigaDevmacosx/lib/osx -lrdmebase9_static -L/Users/Documents/AccurevWorkspace/RDMe-AurigaDevmacosx/lib/osx -lrdmepsp9_static
ld: warning: in /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/lib/osx/librdmeddl9static.a, file is not of required architecture
ld: warning: in /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/lib/osx/librdmebase9static.a, file is not of required architecture
ld: warning: in /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/lib/osx/librdmepsp9static.a, file is not of required architecture
Undefined symbols for architecture i386:
"pspinit", referenced from:
_main in ddlp_main.o
"pspterm", referenced from:
_main in ddlp_main.o
"ddlpmain", referenced from:
_main in ddlp_main.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
ld: warning: in /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/lib/osx/librdmeddl9static.a, file is not of required architecture
ld: warning: in /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/lib/osx/librdmebase9static.a, file is not of required architecture
ld: warning: in /Users/Documents/AccurevWorkspace/RDMe-AurigaDev_macosx/lib/osx/librdmepsp9static.a, file is not of required architecture
Undefined symbols for architecture x86_64:
"pspinit", referenced from:
_main in ddlp_main.o
"pspterm", referenced from:
_main in ddlp_main.o
"ddlpmain", referenced from:
_main in ddlp_main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/0H/0H34PYrnF7SXdZBPnDciuU+jA/-Tmp-//cciWTBHk.out (No such file or directory)
make: * [osx/ddlp_static] Error 1OK, solved the problem. AR requires the -s flag when building UBs:
If you are building for multiple arches then you should pass ar the -s
flag (as Rainer said) to ar to ensure that the table of contents is
created. As you can see from the ar sources it calls ranlib -q normally,
and ranlib -f if it saw the -s flag. Ranlib -q will "Do nothing if a
universal file would be created." whereas ranlib -f will create the fat
archive.
http://www.nabble.com/Why-ar-doesn't-call-ranlib-on-Mac--td22319721.html -
I recently ran monolingual and removed all but the intel-64 bit architectures. Now my iphoto (along with Idvd, garage band, imovie) will not open. Here is the message that I get.
Process: iPhoto [3543]
Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
Identifier: com.apple.iPhoto
Version: ??? (???)
Build Info: iPhotoProject-4750000~1
Code Type: X86 (Native)
Parent Process: launchd [109]
Date/Time: 2011-06-10 21:48:59.821 -0500
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
Interval Since Last Report: -4164908 sec
Crashes Since Last Report: 8
Per-App Crashes Since Last Report: 11
Anonymous UUID: 45357CCD-011B-482E-A2EA-CF42096F1321
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
Reason: no suitable image found. Did find:
/Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
/Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
Binary Images:
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
Model: iMac10,1, BootROM IM101.00CC.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 4 GB, SMC 1.53f13
Graphics: ATI Radeon HD 4670, ATI Radeon HD 4670, PCIe, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 2.1.14.5
Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
Serial ATA Device: ST31000528ASQ, 931.51 GB
Serial ATA Device: OPTIARC DVD RW AD-5680H
USB Device: USB2.0 Hub, 0x05e3 (Genesys Logic, Inc.), 0x0608, 0x24300000
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0x24400000
USB Device: External HDD, 0x1058 (Western Digital Technologies, Inc.), 0x0901, 0x26400000
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0x26500000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8215, 0x06110000Please let me know when you find a fix. I did the same thing and have tried every suggestion I can find online. The message I get is...
Process: iPhoto [4991]
Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
Identifier: com.apple.iPhoto
Version: ??? (???)
Build Info: iPhotoProject-6070000~1
Code Type: X86 (Native)
Parent Process: launchd [142]
Date/Time: 2011-06-13 23:39:38.485 +1200
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
Interval Since Last Report: -1643976 sec
Crashes Since Last Report: 35
Per-App Crashes Since Last Report: 12
Anonymous UUID: D4811036-EA8D-479D-8D9F-11E2FC8F6D4C
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
Reason: no suitable image found. Did find:
/Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
/Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
Binary Images:
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
Model: MacBookPro7,1, BootROM MBP71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f6
Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.36.9)
Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545025B9SA02, 232.89 GB
Serial ATA Device: MATSHITADVD-R UJ-898, 3.5 GB
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0x26100000
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24600000
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06600000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8213, 0x06610000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x06500000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0236, 0x06300000
I have reinstalled Mac OSX 10.6.3 and done the updates from there.
I have reinstalled ilife 11 from disk and done the updates.
I have deleted all the suggested files and then redone install and updates.
I have tried just reinstalling iphoto and doing updates.
Is there any way to get a replacement - /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
file with the right architecture? -
What architecture is best for accurate data logging
Hello,
I'm desiging some LabVIEW code for a standard DAQ application that is required to plot about 100 variables onto the screen on several different graphs and numeric indicators, as well as perform some simple feedback control and log data into a file once a second.
I've done this before, and used a simple state machine architecture, where one state takes care of my logging, and I have a timer vi in there that countsdown 1 second and then writes to file. However, this method makes me miss a second every once in a while.
I started looking into the producer/consumer architecture as a possible remedy for this. Because I hear it's good for running two things at different times, so I"ll have my quicker loop handling data acquistion, plots and feedback control, and my slower logging loop, executing once a second. But I don't see how to implement this
questions:
1. is a simple producer consumer the right topology for my application?
2. when I create my queue do I create it a 100 element array (my data for logging) and then enqueue that in my producer loop from my data acquistion, then pass that to the logging VI.... this seems wrong to me, cause I'm going to be enqueing alot of 100 element arrays... and will be de-queing them slowly at once a second..
3. How do I trigger my consumer loop to execute every second, should I set it up as a timed while loop? or should something from the producer loop tell it to?
I'm sure this is a pretty standard thing to do, I'm jus tnot sure how to implment the correct architecture.
much thanks!Ok, let's try this. I've put together an example that should do what you need. I put notes in the block diagram, but essentially it runs data in a while loop at whatever execution rate you specify, then sends the data to another graph (or in your case, a log) every one second. Basically, I've used a 100ms execution rate for the while loop, then every 10th time (you can change this if you want), it sends a boolean 'true' to a case structure within the while loop that contains the enqueue element. The graphs that I included show that it does indeed add a new point to the second graph once a second while the first one is adding a point every 100ms.
The actual wiring of this Vi could be cleaner for sure, but it was a quick and dirty example I put together. Hopefully this will help you accomplish what you're trying to do.
Regards,
Austin S.
National Instruments
Academic Field Engineer
Attachments:
Enqueue array 2.vi 28 KB -
Single Sign on in a 3 tier architecture between SAP Netweaver CE and R/3
Hi All,
I am trying to implement SSO using SAP logon tickets in a 3 tier architecture between NW CE and R/3. But so far I have not been able to crack this.
Let me describe the scenario in detail:
We have two Java EE applications on Netweaver CE7.2 Application Server:
1. UI: Just handles all the UI logic : js, jsp, css, html, extjs .It calls the Business Layer Java EE application to get data from back-end systems.
2. Business Layer: Calls R/3 SOAP services does some processing on them and exposes the data back to the UI via a Restful JSON service (implemented using Java Spring framework)
Both UI and Business Layer Java EE applications define login modules to be used for SAP logon tickets. So the architecture is like this:
UI-RESTfull-->Business LayerSOAP->ABAP R/3
So ideally when the UI link is clicked it prompts the user for authentication (uses CE UME) and then the UI applications calls the Business Layer which then calls R/3. This unfortunately doesn't work. The authentication between UI and Business Layer Application fails.
However if you remove the Business Layer Java EE application and call the SOAP service directly from the UI. SAP logon tickets starts working.
So I have been able to make SAP logon tickets work with the following 2 tier architecture:
UI---SOAP--->R/3
So my Question is:
Is there a way to use SAP logon tickets in a 3 tier architecture between NW CE and R/3 (For the scenario described above)? Any help/pointers/documentation links would be greatHey Martin,
To enable SSO I updated web.xml and engine-j2ee.xml for both UI and Business Layer application according to the login module stacks defined (the first one) in the following link:
http://help.sap.com/saphelp_NW70EHP1/helpdata/en/04/120b40c6c01961e10000000a155106/content.htm
Initially both UI and Business Layer had the same entries for web.xml and engine.xml. But since this was not working I did all kinds of testing. For UI i used FORM based authentication and for Business Layer I was using "BASIC" authentication.
I tested the following Scenarios:
1. Without any changes to the above XML files: The Business layer rejects any requests from the UI . I checked the Browser and "MYSAPSSO2" cookie was created. Somehow UI doesnt use this to call Business Layer. Or the Business Layer rejects the token itself
2. I removed authentication from the Business Layer application (Web.xml) keeping the UI same: The call went to R3 but returned a "UnAuthorized" error back. In this case also at the browser level "MYSAPSSO2" token was created but was not used by the business layer to call R3.
3. The did all sorts of permutation and combination with the sample login modules provided (See link above) on both UI and Business Layer application . Nothing worked. All combinations led to two results which were the same as 1 and 2
It seems all this is happening because of another application in between UI and R3.
Hope this Clarifies.
Thanks,
Dhannajay -
Books about MVVM, architecture, design patterns for Windows Phone 8.1
Hi,
I'm looking for a book or books (or other resources) that explain how to develop an app with a proper architecture. I mean what each layer (bussines layer, data layer, network access) should do and how should it look like. I'm also looking for a book about
MVVM.
Right now I'm struggling with how to create a layer for network communication - how to separate classes for requests and responses, how to manage requests and create some queue of requests and also to provide some way to cancel them when they are no longer
needed, how to work with servers that use some level of security (cookies, certificates etc.).
Another thing is caching - how to design a short-term cache or a persistant cache (database), what technologies I can use etc.
Last thing that I'm struggling with is also naming. How to name classes in those layers, e.g. to distinguish between classes mapping data from some ORM database, for mapping on JSON in network communication. etc.
I hope you got the idea :)
Thanks.Currently, I don't find a book about MVVM pattern for Windows Phone 8.1, but I think MSDN and some blogs have some useful samples and conceptions: http://msdn.microsoft.com/en-us/library/windows/apps/jj883732.aspx
http://channel9.msdn.com/Series/Windows-Phone-8-1-Development-for-Absolute-Beginners
And I think your question includes too much scopes, maybe you need to split it into some blocks and get help in the related forum
Best Regards,
Please remember to mark the replies as answers if they help -
So slow performance I can see bad code architecture! Help!
I've been a Mac user since 2002, I've resisted the dark side until then. And I've never had the kinds of problems I am having for the past year and I can't figure it out at all. I would really like to reinstall Mac OS X 10.7, but I have never used Timemachine to restore data and I'm not sure how the entire process works. Can someone tell me or give me a relevant link for how to reinstall the entire OS cleanly, without keeping anything, and then to repopulate my home directory with the data from the most recent Timemachine backup. Note that my backup sits on an external USB drive, which is partitioned so that the first 500GB is used by the Timemachine and the rest (about 1TB) is storage space I keep files on (which are obviously not backed up!). So I'd need to restore from the first partition of the external drive. I am really worried that I'll have to hunt down and reinstall all the other apps I have on the system, some of which may not be avilable for download any more perhaps? Or maybe I'd lose some settings and preferences I like? Does the Timemachine backup that type of stuff, too, along with the home folder? I don't know.. I have relied on maybe 1-2 unix tools, too, but I think they are in my home directory, though I'm not sure!
The real solution is that I'd just like to speed things up a bit, and not have to go through the reinstall process. It is a dual core 2ghz machine with 2GB ram. It's a 13" Macbook mid-2006, so kinda old. But it used to run flawlessly up unti labout a year ago! I've run disk utility from Restore mode and it found no errors and there were no permissions to be fixed either. Here is the break down of the symptoms this machine is suffering with.
It takes 10 seconds for the hidden dock to appear when I move the mouse to the left edge of the screen, sometimes the beachball appears first. The CPU monitor does not rise above 15% ever!
Activating Expose by moving the mouse to the bottom left corner takes roughly 7 seconds or longer. Beachball never appars, CPU never above 20% either!
Double click on a desktop folder can take up to 10 seconds to highlight in blue the icon, and then a further 20-30 seconds to actually open the folder. Sometimes beachball appears twice or three times, the CPU isn't above 15% ever either.
Creating a new folder reveals a huge flaw in Apple's OS architecture due to the extreme latency of the system. I can see the folder icon appear first, then a few seconds later the text to the right appears and it says "Untitled Folder", and then the text gets highlighted. So they're wasting CPU time by showing it once and then highlighting it. Then I type the new name and I press enter. Instead of the new name appearing, I can see a further stupidity in design by Apple, because it reverts to "Untitled Folder" for about 5-10 seconds, and then the text is replaced with what I had typed.
In iPhoto if I select Export and the dialog box is supposed to appear, it doesn't happen the first time I select Export, ever! I always have to do it twice or three times, and then the dialog box appears.
In TextEdit, when I select Save for an untitled document, the dialog box appears, but the "File Type" combo box is wrongly placed. Half of it is on the modal dialog, and the other half is on the desktop. If I resize the window, the jaggedly placed selection box remains attached at it's mid-point to the right edge of the dialog box, so always half of it is on the desktop! This happens about 50% of the time.
If I click on the TimeMachine menu icon (little circular arrow) I get the beachball and then after 15-20 seconds the menu appears! If I click due to lack of patience many times, the clicks get queued up and then after 20 seconds they all get executed in rapid succession, so the menu opens and closes 3-4 times in a row!
The above happens for any menu bar icon, including WIFI, etc...
Timemachine's "Preparing to backup" can take 10 minutes. The actual backup takes about 15 minutes, even though it's only backing up 100MB. And it's always backing up 100MB, every freaking hour (how stupid of Apple not to provide a human-friendly way to control the frequency!). So for 30 minutes of every hour, Timemachine is backing up.
I keep my iTunes library on my external drive on the storage partition. When I'm playing music, all works fine. When I stop playing music, the external driev spins down. That's how it should be, to extend it's life. But OS X insists on waking up the drive every 15 minutes or so even when no application is using it's data. Unfortunately OS X is so terribly designed, that whenever an exteranl drive is being woken up the entire graphical interface completely and totally locks up for about 5-6 seconds. Streaming music may continue to play, but nothing else reacts to user input. Text typing freezes, mouse clicks don't work, things cannot be dragged, cannot switch apps, etc. There are a ton of people affected by this problem all posting on various forums, so reformatting and reinstalling won't fix this... It's another Apple criplpling effect! It's been present for at least 2 major versions now!
If I am typing an email in Chrome on gmail.com, occasionally the browser tab freezes and refuses to let me type anything for 10 seconds, and when this happens, iTunes starts chopping out for a second or two several times duirng the 10 codn period, as if it can't handle the load. However CPU stays below 15% during this whole time, too!
50% of the time when I wake the system from sleep it does not connect to WIFI. I have to click on the menubar and select my network and then it connects. My router is not flaky, my other computers do not have this problem, ever! I have every OS imaginable, too
Despite all these problems, I have no problems running music apps such as Reason or Garageband, with one caveat. Garageband struggles to playback songs I've composed on a 17" Powerbook G4!!!! They have maybe 20 tracks of instruments/audio files, and that ancient CPU could play them without stopping. This duo core 2GHZ with 2GB of ram periodically reports an overload and stops playback. The CPU does not even reach 70% during this problematic portion. Reason never complains, it's always below 10% no matter what I'm doing, and never gives me any problems whatsoever.
Launching any application takes a full minute, or longer. Chrome takes 2 full minutes to stop bouncing! Apple's Mail app takes a minute or a bit longer!
A basic Google search (typing text into Chrome's bar and pressing enter) takes 25-45 seconds to return results, despite the fact that I can download and acecss streaming and other content instantly from Netflix and other places without any delays!!
***?!?!?!? Is this a virus or something?!?!?!? I only install software I buy from the App Store or at a store (beleive it or not there still are boxed softwares, those are super expensive though, hehe!)
HELP!!
p.s. the third option I am thinking of is creating another user account and moving everything over. But I don't know how to do that safely. For example, I think iTunes doesn't properly store it's data, and even though I've told it to keep the library on the external drive, the "library" files (XML or wahtever) are kept on the local disk in the home directory? I don't know, cuz I have two sets of those files, one in my user's directory and one in the iTunes folder on the external drive..You are surprised that Mac OS X 10.7 is running on hardware that Apple officially supports and says it will run on? I find your logic unbelievably falwed.
Not a single problem I've mentioned would be caused by "slow" CPU or "little" RAM. How does iPhoto not bringing up the file dialog box have anything even remotely to do with the speed of the CPU or the quantity of RAM? If what you say is true, then yes, performance would be bad, but it wouldn't be selectively bad. I stated that apps such as Reason 5 run perfectly fine, even really well. I can load 30-50 racks and synths and not even reach 50% of CPU utilization, Reason never freezes, etc. DVD playback never freezes as well!! Your logic is horrendously flawed, it seems you don't know much about computer architecture Thus, unfortunately, your reply was of absolutely no help, sorry.
p.s. the external disk spin up problem freezing up the entire graphical interface also has nothing to do with either my CPU/RAM or the OS version I'm running. It is a known crippleware factor of Mac OS X that at least a thousand people are complaining about online and Apple has done nothing about! -
Hello all,
I am attempting to install Oracle12c GI on two virtual nodes (in Fusion VMware) and am getting the following error message (Both nodes are configured exactly the same):
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO:
INFO: - Linking recovery manager (rman)
INFO: rm -f /opt/oragrid/rdbms/lib/rman
INFO: /opt/oragrid/bin/orald -o /opt/oragrid/rdbms/lib/rman -m64 -z noexecstack -Wl,--disable-new-dtags -L/opt/oragrid/rdbms/lib/ -L/opt/oragrid/lib/ -L/opt/oragrid/lib/stubs/ /opt/oragrid/lib/s0main.o /opt/oragrid/rdbms/lib/sskrmed.o /opt/oragrid/rdbms/lib/skrmpt.o -ldbtools12 -lclient12 -lsql12 -lpls12 -lrt -lplp12 -lsnls12 -lunls12 -lnls12 -lslax12 -lpls12 -lrt -lplp12 /opt/oragrid/lib/libplc12.a -lclntsh -lclntshcore `cat /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnro12 `cat
INFO: /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnnz12 -lzt12 -lztkg12 -lztkg12 -lclient12 -lnnetd12 -lvsn12 -lcommon12 -lgeneric12 -lmm -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 `cat /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnro12 `cat /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lclient12 -lnnetd12 -lvsn12 -lcommon12 -lgeneric12 -lsn
INFO: ls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lclient12 -lnnetd12 -lvsn12 -lcommon12 -lgeneric12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 `cat /opt/oragrid/lib/sysliblist` -Wl,-rpath,/opt/oragrid/lib -lm `cat /opt/oragrid/lib/sysliblist` -ldl -lm -L/opt/oragrid/lib
INFO: test ! -f /opt/oragrid/bin/rman ||\
mv -f /opt/oragrid/bin/rman /opt/oragrid/bin/rmanO
INFO: mv /opt/oragrid/rdbms/lib/rman /opt/oragrid/bin/rman
INFO: chmod 751 /opt/oragrid/bin/rman
INFO: chmod 755 /opt/oragrid/bin
INFO:
INFO: - Linking Oracle
INFO: rm -f /opt/oragrid/rdbms/lib/oracle
INFO: /opt/oragrid/bin/orald -o /opt/oragrid/rdbms/lib/oracle -m64 -z noexecstack -Wl,--disable-new-dtags -L/opt/oragrid/rdbms/lib/ -L/opt/oragrid/lib/ -L/opt/oragrid/lib/stubs/ -Wl,-E /opt/oragrid/rdbms/lib/opimai.o /opt/oragrid/rdbms/lib/ssoraed.o /opt/oragrid/rdbms/lib/ttcsoi.o -Wl,--whole-archive -lperfsrv12 -Wl,--no-whole-archive /opt/oragrid/lib/nautab.o /opt/oragrid/lib/naeet.o /opt/oragrid/lib/naect.o /opt/oragrid/lib/naedhs.o /opt/oragrid/rdbms/lib/config.o -lserver12 -lodm12 -lcell12 -lnnet12 -lskgx
INFO: p12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lclient12 -lvsn12 -lcommon12 -lgeneric12 -lknlopt `if /usr/bin/ar tv /opt/oragrid/rdbms/lib/libknlopt.a | grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap12" ; fi` -lskjcx12 -lslax12 -lpls12 -lrt -lplp12 -lserver12 -lclient12 -lvsn12 -lcommon12 -lgeneric12 `if [ -f /opt/oragrid/lib/libavserver12.a ] ; then echo "-lavserver12" ; else echo "-lavstub12"; fi` `if [ -f
INFO: /opt/oragrid/lib/libavclient12.a ] ; then echo "-lavclient12" ; fi` -lknlopt -lslax12 -lpls12 -lrt -lplp12 -ljavavm12 -lserver12 -lwwg `cat /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnro12 `cat /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnnzst12 -lzt12 -lztkg12 -lmm -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lztkg12 `cat /opt/oragrid/lib/ldflags` -lncrypt12
INFO: -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnro12 `cat /opt/oragrid/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnnzst12 -lzt12 -lztkg12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 `if /usr/bin/ar tv /opt/oragrid/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo12"; fi` -L/opt/oragrid/ctx/lib/ -lctxc12 -lctx12 -lzx12 -lgx12 -lctx12 -lzx12 -lgx12 -lordimt12 -lclsra12 -ldbc
INFO: fg12 -lhasgen12 -lskgxn2 -lnnzst12 -lzt12 -lxml12 -locr12 -locrb12 -locrutl12 -lhasgen12 -lskgxn2 -lnnzst12 -lzt12 -lxml12 -lgeneric12 -loraz -llzopro -lorabz2 -lipp_z -lipp_bz2 -lippdcemerged -lippsemerged -lippdcmerged -lippsmerged -lippcore -lippcpemerged -lippcpmerged -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lsnls12 -lunls12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12
INFO: -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lasmclnt12 -lcommon12 -lcore12 -laio -lons `cat /opt/oragrid/lib/sysliblist` -Wl,-rpath,/opt/oragrid/lib -lm `cat /opt/oragrid/lib/sysliblist` -ldl -lm -L/opt/oragrid/lib
INFO: /
INFO: usr
INFO: /
INFO: bin
INFO: /
INFO: ld
INFO: :
INFO:
INFO: cannot
INFO:
INFO: find
INFO:
INFO: -
INFO: ljavavm12
INFO:
INFO: collect2:
INFO: ld returned 1 exit status
INFO:
INFO: make: *** [/opt/oragrid/rdbms/lib/oracle] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'irman ioracle' of makefile '/opt/oragrid/rdbms/lib/ins_rdbms.mk'. See '/opt/oraInventory/logs/installActions2013-11-25_04-25-06PM.log' for details.
Exception Severity: 1
Below are my VM specs:
**************************************************************Installed RPM's*****************************************************************
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
rpm -qa gcc
gcc-4.4.7-3.el6.x86_64
rpm -qa make
make-3.81-20.el6.x86_64
rpm -qa|grep oracle
oracleasmlib-2.0.4-1.el6.x86_64
oracle-logos-60.0.14-1.0.1.el6.noarch
oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64
kmod-oracleasm-2.0.6.rh1-2.el6.x86_64
oraclelinux-release-notes-6Server-9.x86_64
oraclelinux-release-6Server-4.0.4.x86_64
oracleasm-support-2.1.8-1.el6.x86_64
***************************************************************JAVA***************************************************************************
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
*************************************************************SYSCTL**************************************************************************
# Kernel sysctl configuration file for Red Hat Linux
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.core_pattern=/var/adm/crash/cores/%e.sig%s
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
# oracle-rdbms-server-12cR1-preinstall setting for fs.file-max is 6815744
fs.file-max = 6815744
# oracle-rdbms-server-12cR1-preinstall setting for kernel.sem is '250 32000 100 128'
kernel.sem = 250 32000 100 128
# oracle-rdbms-server-12cR1-preinstall setting for kernel.shmmni is 4096
kernel.shmmni = 4096
# oracle-rdbms-server-12cR1-preinstall setting for kernel.shmall is 1073741824 on x86_64
# oracle-rdbms-server-12cR1-preinstall setting for kernel.shmmax is 4398046511104 on x86_64
kernel.shmmax = 4398046511104
# oracle-rdbms-server-12cR1-preinstall setting for net.core.rmem_default is 262144
net.core.rmem_default = 262144
# oracle-rdbms-server-12cR1-preinstall setting for net.core.rmem_max is 4194304
net.core.rmem_max = 4194304
# oracle-rdbms-server-12cR1-preinstall setting for net.core.wmem_default is 262144
net.core.wmem_default = 262144
# oracle-rdbms-server-12cR1-preinstall setting for net.core.wmem_max is 1048576
net.core.wmem_max = 1048576
# oracle-rdbms-server-12cR1-preinstall setting for fs.aio-max-nr is 1048576
fs.aio-max-nr = 1048576
# oracle-rdbms-server-12cR1-preinstall setting for net.ipv4.ip_local_port_range is 9000 65500
net.ipv4.ip_local_port_range = 9000 65500
# The below entries were added and deal with an r_filtering issue oracle wants private interconnects set loose
net.ipv4.conf.eth4.rp_filter = 2
net.ipv4.conf.eth6.rp_filter = 2
net.ipv4.conf.eth1.rp_filter = 1
*************************************************************Filesystem************************************************************************
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oracle12c-lv_root
8.9G 3.5G 5.0G 42% /
tmpfs 2.2G 0 2.2G 0% /dev/shm
/dev/sda1 485M 101M 359M 22% /boot
/dev/mapper/vg_oracle12c-lv_home
2.0G 70M 1.9G 4% /home
/dev/mapper/vg_oracle12c-lv_tmp
4.5G 541M 3.7G 13% /tmp
/dev/mapper/vg_oracle12c-lv_var
5.0G 956M 3.8G 20% /var
/dev/mapper/oracle_vg-oragrid
20G 5.0G 14G 27% /opt/oragrid
.host:/ 466G 137G 330G 30% /mnt/hgfs
*******************************************************************CPU INFO*******************************************************************************
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 70
model name : Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
stepping : 1
cpu MHz : 2294.967
cache size : 6144 KB
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb xsaveopt pln pts dts fsgsbase smep
bogomips : 4589.93
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 70
model name : Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
stepping : 1
cpu MHz : 2294.967
cache size : 6144 KB
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb xsaveopt pln pts dts fsgsbase smep
bogomips : 4589.93
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 70
model name : Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
stepping : 1
cpu MHz : 2294.967
cache size : 6144 KB
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb xsaveopt pln pts dts fsgsbase smep
bogomips : 4589.93
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 70
model name : Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
stepping : 1
cpu MHz : 2294.967
cache size : 6144 KB
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb xsaveopt pln pts dts fsgsbase smep
bogomips : 4589.93
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
*******************************************************************************Memory************************************************************************
free -m
total used free shared buffers cached
Mem: 4331 3972 359 0 30 3412
-/+ buffers/cache: 530 3801
Swap: 14323 0 14323
****************************************************************************Network***************************************************************************
Note eth0 is NAT and used for internet connectivity, eth1 is the public network (static and accessible to the hypervising machine running fusion ), eth4 and and eth6 are private, and eth3 is connected to an openfiler storage appliance (This is also a VM serving out ISCSI targets).
eth0 Link encap:Ethernet HWaddr 00:50:56:22:C6:91
inet addr:192.168.90.140 Bcast:192.168.90.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe22:c691/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:227 errors:0 dropped:0 overruns:0 frame:0
TX packets:225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24414 (23.8 KiB) TX bytes:18545 (18.1 KiB)
eth1 Link encap:Ethernet HWaddr 00:50:56:3A:AE:95
inet addr:192.168.3.2 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe3a:ae95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:482561 errors:0 dropped:0 overruns:0 frame:0
TX packets:450616 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:483728272 (461.3 MiB) TX bytes:501489666 (478.2 MiB)
eth3 Link encap:Ethernet HWaddr 00:50:56:24:40:AB
inet addr:192.168.5.2 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe24:40ab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4944 errors:0 dropped:0 overruns:0 frame:0
TX packets:3817 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6186232 (5.8 MiB) TX bytes:346478 (338.3 KiB)
eth4 Link encap:Ethernet HWaddr 00:50:56:3F:77:AA
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe3f:77aa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1222 errors:0 dropped:0 overruns:0 frame:0
TX packets:978 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:205198 (200.3 KiB) TX bytes:168464 (164.5 KiB)
eth6 Link encap:Ethernet HWaddr 00:50:56:22:72:E3
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe22:72e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:354 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:54390 (53.1 KiB) TX bytes:17992 (17.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:194338 errors:0 dropped:0 overruns:0 frame:0
TX packets:194338 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:920534042 (877.8 MiB) TX bytes:920534042 (877.8 MiB)
*****************************************************************************ORACLE ASM AND MULTIPATH INFO********************************************
/etc/init.d/oracleasm listdisks
VOTE1
VOTE2
VOTE3
vote3 (14f504e46494c45523434517a65422d4b6364682d57544f65) dm-8 OPNFILER,VIRTUAL-DISK
size=3.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 3:0:0:2 sdh 8:112 active ready running
vote2 (14f504e46494c45526e6c6a48324a2d6a4347462d7a465074) dm-6 OPNFILER,VIRTUAL-DISK
size=3.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 3:0:0:1 sdg 8:96 active ready running
vote1 (14f504e46494c45525763646753422d594262512d414a6275) dm-7 OPNFILER,VIRTUAL-DISK
size=3.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 3:0:0:0 sdf 8:80 active ready running
If any more information is necessary please request and I will provide, as you can see there is more than enough memory and disk space for the installation. The only exception being that I am using a different 'oraInventory', 'gridhome', and 'oraBase'. I have looked closely at the output and the problem seems to be a file called 'ljavavm12', I have highlighted the line in bold above in the log output. Any help with this would be greatly appreciated.
Regards,
AlexResolved my own issue,
for anyone else having the same problem, here is how it was resolved:
ljavavm12 is part of libjavavm12.a, for some reason this file was not copied into the $GRID_HOME, after doing so make went through fine.
'cp /opt/oragrid/javavm/jdk/jdk7/lib/libjavavm12.a /opt/oragrid/lib/'
Alex, -
IM HAVING TROUBLE DOWNLOADING THINGS ON MY MY MAC G5. EVERYTIME I TRY TO DOWNLOAD SOMETHING A SCREEN POPS UP SAYING "CANNOT OPEN APPLICATION BECAUSE IT IS NOT SUPPORTED BY THIS ARCHITECTURE" SOMEONE PLEASE HELP
CS5 only runs on Intel Macs...
http://www.adobe.com/products/photoshop/tech-specs.html
Some parts of FCE 4 require an Intel Mac...
http://www.specrequirements.com/software/final-cut-express-4-system-requirements -
2504 with new-architecture enabled breaks MAC auth for guest access
Hello,
We have (2) 2504 WLC running version 7.6.120. WLC1 is the local controller and WLC2 is an achor controller for guest-access. We need to incorporate a 3850 for use with the WLC2 anchor. The guest access is currently working with Mac-Auth and Mac-Auth-Fail to Web-Auth.
When converged access is enabled on the WLC1 and WLC2, the MAc-Auth no longer works. That is, the previously authenticated user is now redirected to the Web-Auth page. The local controller shows the user as authenticated but the Anchor controller shows the state as WEb-Auth-REQD.
Rolling back using "config mobility new-architecture disable" and rebooting resolves the issue.
Does anyone what changes from the old to the new that would break this mac-auth/web-auth configuration?You should reach TAC for these sort of issues. Not many people deploying this CA setup yet & you may not get direct feedback immediately.
HTH
Rasika -
Performance issues with LOV bindings in 3-tier BC4J architecture
We are running BC4J and JClient (Jdeveloper 9.0.3.4/9iAS 9.0.2) in a 3-tier architecture, and have problems with the performance.
One of our problems are comboboxes with LOV bindings. The view objects that provides data for the LOV bindings contains simple queries from tables with only 4-10 rows, and there are no view links or entity objects to these views.
To create the LOV binding and to set the model for the combobox takes about 1 second for each combobox.
We have tried most of tips in http://otn.oracle.com/products/jdev/tips/muench/jclientperf/index.html, but they do not seem to help on our problem.
The performance is OK (if not great) when the same code is running as 2-tier.
Does anyone have any good suggestions?I can recommend that you look at the following two bugs in Metalink: Bug 2640945 and Bug 3621502
They are related to the disabling of the TCP socket-level acknowledgement which slows down remote communications for EJB components using ORMI (the protocol used by Oracle OC4J) to communicate between remote EJB client and server.
A BC4J Application Module deployed as an EJB suffers this same network latency penalty due to the TCP acknowledgement.
A customer sent me information (that you'll see there as a part of Bug# 3621502) like this on a related issue:
We found our application runs very slow in 3-Tier mode (JClient, BC4J deployed
as EJB Session Bean on 9iAS server 9.0.2 enterprise edition). We spent a lot
of time to tune up our codes but that helped very little. Eventually, we found
the problem seemed to happen on TCP level. There is a 200ms delay in TCP
level. After we read some documents about Nagle Algorithm, we disabled a
registry key (TcpDelAckTicks) in windows2000 on both client and server. This
makes our program a lot faster.
Anyway, we think we should provide our clients a better solution other than
changing windows registry for them, for example, there may be a way to disable
that Nagle's algorithm through java.net.Socket.setTcpNoDelay(true), in BC4J,
or anywhere in our codes. We have not figured out yet.
Bug 2640945 was fixed in Oracle Application Server 10g (v9.0.4) and it now disables this TCP Acknowledgement on the server side in that release. In the BugDB, I see backport patches available for earlier 9.0.3 and 9.0.2 releases of IAS as well.
Bug 3621502 is requesting that that same disabling also be performed on the client side by the ORMI code. I have received a test patch from development to try out, but haven't had the chance yet.
The customer's workaround in the interim was to disable this TCP Acknowledgement at the OS level by modifying a Windows registry setting as noted above.
See Also http://support.microsoft.com/default.aspx?kbid=328890
"New registry entry for controlling the TCP Acknowledgment (ACK) behavior in Windows XP and in Windows Server 2003" which documents that the registry entry to change disable this acknowledgement has a different name in Windows XP and Windows 2003.
Hope this info helps. It would be useful to hear back from you on whether this helps your performance issue. -
I have a Mac PowerPC G5 and i just installed the Version 10.5.4 to be able to install Virtual DjLE , and after I installed it, i try to open it and there was an error msg saying : " you can't open the application virtual dj le because it is not supported on this architecture"
What can I do to resolve this? ... Can someone help me with this?? ..
Thank you for your help!Hi, we're out of luck...
MAC SYSTEM REQUIREMENTS
MINIMUM system requirements:
Intel® processor
Mac OS X v10.5.x
1024x768 resolution
CoreAudio compatible soundcard
1024MB RAM
50MB free on the hard drive
RECOMENDED system requirements:
Intel® processor
Mac OS X v10.6.x
1440x900 resolution
Multi-channel CoreAudio compatible soundcard
2048MB (2Gb) RAM
200MB free on the hard drive
Additional requirements for Video mixing:
ATI™ or NVIDIA® video chipset w/256MB of Dedicated DDR3 RAM
Video must support dual-screen output
Supported Operating System and Processor Platforms:
MINIMUM: Mac OS X v10.5 Leapord on Intel processor platform
RECOMMENDED: Mac OS X v10.6.x Snow Leapord on Intel processor platform
Apple® Mac OS X 10.4.x Tiger or older are not supported
Motorola® (PowerBook® G4) processor platform or older are not supported
http://www.virtualdj.com/products/virtualdj/index.html
Might see if the still have version 6.x here...
http://www.virtualdj.com/download/updates.html
Maybe you are looking for
-
My iPhone 4 started to update but got stuck in recovery mode. I've tried everything anyone on the website has told me to do, but nothing has worked. When you go to turn it on, it shows the Apple symbol, then it goes to the connect to iTunes screen.
-
This may be an old quesiton, but, I have problems viewing .wmv files online and when friends send .wmv files? I don't understand why? My computer is brand new this past Christmas.... When I select the file to be viewed an error message pops up with t
-
I need to get osx 10.5 for my PPC G5
I really want leopard on my mac but i am certainly not going to illegally DL it, no way!! But i understand that i can get this free somewhere? on another note i have 512mb ram installed, 2x 128mb & 2x 1gb ram slots..... it refuses to detect the 2x 1
-
Adobe Digital Editions Help please?
I have purchased my first e-book: "Adobe Premiere Pro CC Digital Classroom" from JB HiFi. The payment went through successfully and I tried to download the e-book. I got the message that to download the e-book I had to install Adobe Digital Editions.
-
Crystal Report Rendering Issues
The webpage was viewed from the same PC but the website itself is hosted on two different PC (Server 2003 and windows xp). Why did the same Crystal Report wrap the text on Server 1 (running Server 2003) and not on Server1 (running XP Pro). What wou