Pro*C/C++ precompilation question at Solaris 10
Hello.
Would someone tell me where the sys_include path is?
I have tried with /usr/include with my precompiler option and it seems it cannot find <iostream> (PCC-S-02015).
Thanks in advance.
It's a couple of years since I worked in Pro*C but I have worked with Pro*C fairly recently and even once worked in the Unix, pre-Ansi Pro*c environment. Pro*C is just a pre-compiler, so you can take a look at the generated C code and see what it is doing. That can be very helpful. It generates a bunch of function calls to replace each SQL statement.
The declare section just tells Oracle to recognise those variables and their types, it doesn't change the actual declaration, so I'd say the 2nd foo is indeed local to gag.
I would worry about any references to foo below gag in that source file - they may use the type etc. of the local variable, but since they are the same data type, it may well work (more by luck than good management).
As I recall a varchar is a struct, so they can change the value inside gag, but it won't take effect outside the function. You can pass *foo if you want to - you're passing a pointer to the struct.
I hope this helps (and is right)
David
Similar Messages
-
Help with Pro*C/C++ precompiler error
Hello.
I have a little experience working with Pro*C/C++ and now I am trying to learn more by my own.
I think this is an easy question. I am trying to precompile the Thread_example1.pc code from Pro*C/C++ Precompiler Programmer's Guide, Release 9.2 (I am trying it in a windows machine because I have pthreads for windows installed, so that I have commented the DCE_THREADS references).
The thing is I am not able to precompile the code (I have tried several precompiler options).
Now I am getting the error (I am sorry it is in Spanish):
Error semßntico en la lÝnea 126, columna 32, archivo d:\Ejercicios_ProC\MultithreadExample\Thread_example1.pc:
EXEC SQL CONTEXT ALLOCATE :ctx;
...............................1
PCC-S-02322, se ha encontrado un identificador no definido
The thing is that it is defined (outside a EXEC SQL DECLARE section but the precompiler CODE is set to default that does not need to be inside).
If I declare it inside a EXEC SQL DECLARE section I get:
Error semßntico en la lÝnea 105, columna 18, archivo d:\Ejercicios_ProC\MultithreadExample\Thread_example1.pc:
sql_context ctx[THREADS];
.................1
PCC-S-02322, se ha encontrado un identificador no definido
I have also tried writing EXEC SQL CONTEXT USE :ctx[THREADS]; just before the declare section but I get the same error than before.
Can someone help me?Hmm, try the updated one (mltthrd1.pc). I've tried it (and a converted-to-pthread version on Linux). Both work fine. What version of Pro*C are you using?
NAME
MltThrd1
FUNCTION
NOTES
32-bit Pro*C/C++ Multithreaded sample program from Pro*C/C++ User's Guide.
Requirements
The program requires a table ACCOUNTS to be in the schema
SCOTT/TIGER. The description of ACCOUNTS is.
SQL> desc accounts
Name Null? Type
ACCOUNT NUMBER(10)
BALANCE NUMBER(12,2)
For proper execution, the table should be filled with the
accounts 10001 to 10008.
shsu: run MltThrd1.sql first.
OWNER
DATE
MODIFIED
rahmed 10/10/96 - ported for WIN32 port.
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sqlca.h>
#define CONNINFO "SCOTT/TIGER"
#define THREADS 3
EXEC SQL BEGIN DECLARE SECTION;
struct parameters
sql_context * ctx;
int thread_id;
typedef struct parameters parameters;
struct record_log
char action;
unsigned int from_account;
unsigned int to_account;
double amount;
typedef struct record_log record_log;
EXEC SQL END DECLARE SECTION;
/* Function prototypes */
void err_report(struct sqlca);
void do_transaction(parameters *);
void get_transaction(record_log**);
void logon(sql_context,char *);
void logoff(sql_context);
record_log records[]= { { 'M', 10001, 10002, 12.50 },
{ 'M', 10001, 10003, 25.00 },
{ 'M', 10001, 10003, 123.00 },
{ 'M', 10001, 10003, 125.00 },
{ 'M', 10002, 10006, 12.23 },
{ 'M', 10007, 10008, 225.23 },
{ 'M', 10002, 10008, 0.70 },
{ 'M', 10001, 10003, 11.30 },
{ 'M', 10003, 10002, 47.50 },
{ 'M', 10002, 10006, 125.00 },
{ 'M', 10007, 10008, 225.00 },
{ 'M', 10002, 10008, 0.70 },
{ 'M', 10001, 10003, 11.00 },
{ 'M', 10003, 10002, 47.50 },
{ 'M', 10002, 10006, 125.00 },
{ 'M', 10007, 10008, 225.00 },
{ 'M', 10002, 10008, 0.70 },
{ 'M', 10001, 10003, 11.00 },
{ 'M', 10003, 10002, 47.50 },
{ 'M', 10008, 10001, 1034.54}};
static unsigned int trx_nr=0;
HANDLE hMutex;
void main()
EXEC SQL BEGIN DECLARE SECTION;
sql_context ctx[THREADS];
EXEC SQL END DECLARE SECTION;
HANDLE thread[THREADS];
parameters params[THREADS];
int j;
DWORD ThreadId ;
/* Initialize a process in which to spawn threads. */
EXEC SQL ENABLE THREADS;
EXEC SQL WHENEVER SQLERROR DO err_report(sqlca);
/* Create THREADS sessions by connecting THREADS times, each
connection in a separate runtime context. */
for(i=0; i<THREADS; i++){
printf("Start Session %d....\n",i);
EXEC SQL CONTEXT ALLOCATE :ctx[j];
logon(ctx[j],CONNINFO);
/* Create mutex for transaction retrieval.
Created an unnamed/unowned mutex. */
hMutex=CreateMutex(NULL,FALSE,NULL);
if (!hMutex){
printf("Can't initialize mutex\n");
exit(1);
/* Spawn threads. */
for(i=0; i<THREADS; i++){
params[j].ctx=ctx[j];
params[j].thread_id=i;
printf("Thread %d... ",i);
thread[j]=CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)do_transaction,
¶ms[j],0,&ThreadId);
if (!thread[j])
printf("Cant create thread %d\n",i);
else
printf("Created\n");
/* Logoff sessions. */
for(i=0;i<THREADS;i++){
printf("Waiting for Thread %d to stop....",i); /* waiting for thread to end */
if(WaitForSingleObject(
thread[j], /* handle of thread */
INFINITE) != WAIT_OBJECT_0) /* time-out interval */
printf("Error waiting for thread % to terminate\n", i);
else
printf("Thread %d stopped\n",i);
printf("Stop Session %d....\n",i);
logoff(ctx[j]);
EXEC SQL CONTEXT FREE :ctx[j];
} /* end main() */
* Function: do_transaction()
* Description: This function executes one transaction out of
* the records array. The records array is managed
* by get_transaction().
void do_transaction(parameters *params)
struct sqlca sqlca;
EXEC SQL BEGIN DECLARE SECTION;
record_log *trx;
EXEC SQL END DECLARE SECTION;
sql_context ctx;
ctx = params->ctx;
/* Done all transactions ? */
while (trx_nr < (sizeof(records)/sizeof(record_log))){
get_transaction(&trx);
EXEC SQL WHENEVER SQLERROR DO err_report(sqlca);
/* Use the specified SQL context to perform the executable SQL
statements that follow. */
EXEC SQL CONTEXT USE :ctx;
printf("Thread %d executing transaction # %d\n",params->thread_id,trx_nr);
switch(trx->action){
case 'M': EXEC SQL UPDATE ACCOUNTS
SET BALANCE=BALANCE+:trx->amount
WHERE ACCOUNT=:trx->to_account;
EXEC SQL UPDATE ACCOUNTS
SET BALANCE=BALANCE-:trx->amount
WHERE ACCOUNT=:trx->from_account;
break;
default:
break;
EXEC SQL COMMIT;
* Function: err_report()
* Description: This routine prints the most recent error.
void err_report(struct sqlca sqlca)
if (sqlca.sqlcode < 0)
printf("\n%.*s\n\n",sqlca.sqlerrm.sqlerrml,sqlca.sqlerrm.sqlerrmc);
exit(1);
* Function: logon()
* Description: This routine logs on to Oracle.
void logon(sql_context ctx,char *conninfo){
EXEC SQL BEGIN DECLARE SECTION;
char connstr[20];
EXEC SQL END DECLARE SECTION;
EXEC SQL CONTEXT USE :ctx;
strcpy(&connstr[0],(char*)conninfo);
EXEC SQL CONNECT :connstr;
* Function: logoff()
* Description: This routine logs off from Oracle.
void logoff(sql_context ctx)
EXEC SQL CONTEXT USE :ctx;
EXEC SQL COMMIT WORK RELEASE;
* Function: get_transaction()
* Description: This functions manages the records array.
void get_transaction(record_log** temp)
DWORD dwWaitResult;
/* Request ownership of mutex. */
dwWaitResult=WaitForSingleObject(
hMutex, /* handle of mutex */
INFINITE); /* time-out interval */
switch (dwWaitResult) {
/* The thread got mutex ownership. */
case WAIT_OBJECT_0:
*temp = &records[trx_nr];
trx_nr++;
/* Release ownership of the mutex object. */
if (! ReleaseMutex(hMutex))
printf("Not able to release mutex\n");
break;
/* Cannot get mutex ownership due to time-out. */
case WAIT_TIMEOUT:
printf("Cannot get mutex ownership due to time-out\n");
/* Got ownership of the abandoned mutex object. */
case WAIT_ABANDONED:
printf("Got ownership of the abandoned mutex object\n");
} -
Where can I buy a larger hard drive for my late 2008, 15" macbook pro? From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended. But how/where?
Welcome to Apple Support Communities
You can install the new hard disk yourself if you want to. You just need a 2'5" SATA II hard drive, which is compatible with your MacBook Pro. You can buy one at OWC > http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ You can filter hard drives by computer, so press a "Click to view all...", choose your computer in the sidebar and it will give you the compatible hard drives.
There are different brands for the MacBook Pro. The most recommended are HGST and Seagate, which have good reputation. A 7200 rpm hard drive will give you extra performance -
hello everyone ,i have macbook and macbook pro 15,so my question is can i use magsafe 60v charger to charge my macbook pro which having 85v magsafe but not in working condition.
mangesh171 wrote:
my question is can i use magsafe 60v charger to charge my macbook pro which having 85v magsafe but not in working condition.
No.
Power Adapter/ cord wattage
“Power adapters for Intel-based Apple notebooks are available in 45W, 60W, and 85W varieties. Although you should always use the proper wattage adapter for your Apple notebook, you can use an adapter of a higher wattage without issue.”
http://support.apple.com/kb/HT2346
Best. -
respected sir, i have problem with my mac book pro 13, i shows question mark when i start up the laptop. so please reply with the convinient solution
ajit5544 wrote:
.. my mac book pro 13, i shows question mark when i start up the laptop. ...
See here > http://support.apple.com/kb/TS2570 -
Some basic Questions about Solaris
Hi...
I�ve further got some problems ...
1. Can anyone tell me where i can get a list with
Commands for the SOLARIS 8 system ???
For example: I would like to know how to start
the Xwindow from the bash ...
(like you can start it with startx in SuSE)
Need to know the basic commands.
C yaI recommend http://sun.drydog.com/faq, which deals
with a good deal of questions concerning Solaris on
Intel PC. Ther, you will find hints and links which
enable you to go further. http://docs.sun.com is
an important site for all of Solaris documentation.
While I can't tell you how to keep X inactive and
restart it on demand (maybe lowering initdefault?),
you may choose a text session from the login
screen. X is deactivated, then, and you are
working on a full screen ascii console. Unfortionately,
as far as I know, there aren't virtual consoles like
under SCO, Interactive, or Linux. But you may
obtain and start the GPL screen program, which
provides virtual multi-terminal function on ascii
screens (even for modem-based connections).
HTH
regards, e.sanio -
MacBook Pro 13" Screen Issue Question
Hey guys
I have this strange area on my MacBook Pro screen that is noticalby brighter than the rest of the screen. I've tried using the screen capture function, but the patch doesn't show up on that images generated. Here's a photo i took with my iPhone
xtjied.jpg
It's the area near the centre of the photo where the issue is present. It is easier to see on the photo if you move away from the screen, so you're further away, then it stands out more. However i can see it clearly when using the MBP on my lap or on a table.
My MacBook is still in warranty, so my questions are:
A) Should i take my machine to the Apple Store to show them the issue?
B) What are they store likely to do, will they replace the screen, replace the machine or simply turn me away and tell me the issue doesn't warrant action?
Even though it might seem like a small issue, once i see it whilst working my vision is drawn to it, so i lose focus on the rest of my screen.
Thanks in advnace
TomThanks for you response, I just want to check you're seeing the same error i am, i know the photo looks like there's a large area with a different brightness, but that's just because of the way I was positioned when taking the photo.
Here's a better photo to illustrate the issue i'm having
http://i.imgur.com/mDogr.jpg
It's the small area just off centre that is a different colour to the rest of the image.
http://i.imgur.com/UF8c9.jpg
it kind of looks like a thumb print, but it's not
Would you still expect them to replace/repair my machine?
Thanks again -
Just Bought a Mac Pro... Question about an upgrade
So I just got my mac pro home... 2.66, 5gig, 250gig, 23 apple screen.
Absolutly love the machine. blazing fast and it does everything.
I put windows on it with bootcamp and wanted to try a serious video game on it to test how it handled it.
I was pleased but not thrilled with the results. The game ran great on the settings the game put the game at. But when I started to turn the res and details up... I turned it up to the max (ps this was the new hitman game). It loaded the game, and the game looks amazing, but its choppy as heck.
The video card that I have in there is the GeForce w/ 256 ram on it.
My Question is... can I send that video card to apple and have them give me a bigger video card with me only having to pay the difference?
If thats a no, since the website store allows for multiple video cards in the computer, could I just add another more serious video card ontop of the one thats in there to increase the graphics capabilities of it?
All is is appreciated.
Michael
MacBook Pro Mac OS X (10.4.7)Apple will not exchange the video card with an upgraded one. The only way to do this would have been with a build to order. Your best bet is to put that card on eBay and buy the new X1900 XT. The standard card in the MacPro isn't really designed for gaming but the X1900 is the best there is right now.
Here is a link...
http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/6404000/wo/mv1Ny xX99y673RUluNLEYksH4ei/3.0.19.1.0.8.25.7.11.0.3 -
MacBook Pro crashed, and then question mark folder appeared
So I have a MacBook Pro, the other day I left my computer on sleep mode as I always do. I open my computer to find a screen that is slightly grey, like the picture link: http://farm1.staticflickr.com/55/126466201_486bff5598.jpg
I've had this happen to me before, and so I restarted it without worries.
First I held down the Power button for 3-5 seconds and then it powered off.
I'm not one to have patients as I am a teenager, so I quickly booted the computer on.
I had the signature Mac chime, and then it went to a grey screen, I went to get something to drink, as I remembered Mac's take quite the time to boot back up.
I came back to the same grey screen with a flashing folder with a question mark on it. I was now in panic mode. I lucky had my trustee iPhone by my side and quickly described my problem, found many articles on solutions, but nothing truly worked. I tried the "Hold C and turn on power at the same time", "Safe boot by holding Shift", "Try PRAM", and blah blah blah.
At first I was missing my Install disc, as many of the articles stated, my problem may be resolved by using the disc. I am a teenager, this disc could be ANYWHERE, so thinking on my feet, I went to my mothers laptop case and found her Install disc (which was 10.6.7, my computer was running 10.6.3). I didn't realize the difference until much later.
After a few hours of trying to fiddle around with my moms disc, I decided to go on a hard core hunt for my disc.
Hours later, my room in a huge mess, I found my disc, under my bed (of course).
It took me an hour to figure out how to get my moms stuck disc out of my MacBook.
I found that solution through another article.
So I put in my Install disc and I went to go backup my MacBook with my external hard drive, and I went through the steps required and I thought forsure it was fixed and done, until this: http://tinypic.com/r/hupto4/5
I'm stuck.
I've been sitting trying to fix this for at least 12 hours now, and I have had minimal success.
--Questions
1.) Could I have damaged something, by putting my moms install disc in?
2.) Where did my hard drive go? Could I have possibly deleted it?
3.) Is this the end for my MacBook Pro?
Specs:
MacBook Pro
Bought: Last year (but on the back it says 2010)
Snow Leoperd
OS X 10.6.3
External drive: My Passport (Link: http://www.wdc.com/en/products/products.aspx?id=440 )
Please provide a step-by-step fixture if possible.
Thanks!Failed hard drive possible. Bring it to an Apple store or AASP.
-
New to Macbook Pro, External hard drive question.
I've just made the swirch to an Apple Macbook Pro from a PC. I've used the PC since the early 90's and all I know is Windows. However I'm finding myself more at home in Lion. My question is probably a simple one so I'll get to it. I have a 1TB Seagate Mac/PC external usb powered hard drive that I've used on my PC for all my iTunes media, 95% of which was purchased from Apple (who the **** knows if that matters but information could be crucial and besides I saw someone else say that in a post, only he found his music, whatever that means, anyway....). Now I have added all files to the library of my iTunes on the Mac while still running them from the external hard drive and everything transferd smothly (see not a complete idiot) but for some reason I can not write to the hard drive. If I try to update an app, delete a fie, rename or otherwis change the file in itunes I get an error claiming I don't have permission to do so. When I look at the drive itself, sure enough it says I may read only. Now the drive was formatted and used on a Windows PC prior to today. What do I need to do on the Mac end to make it read and writable (is that the right word?) so I can enjoy updating my apps or plain getting rid of some old things? Thanks in advance for any help.
New Mac UserYour external harddisk uses the NTFS file system which is common for Windows PCs.
Mac OSX can read from NTFS harddisks but cannot write to them.
For full access you need a third-party helper tool like the free NTFS-3G or Fuse4X or the commercial ones from Paragon or Tuxera NTFS for Mac.
In the long run and when you don't need a "Windows-PC-compatibility" of the external harddisk anymore you should consider reformating/repartioning the external harddisk using the Mac OSX native partition and file system formats. (GUID and MacOS Extended (Journaled)).
But such an action would delete everything that is on that external harddisk so it is not that easy.
Stefan -
Newbie to apple. just got a macbook pro...10 questions
hi.
i recently just switched/purchased a new 15 inch Macbook Pro yesterday. i have been playing with it last night and this morning and i have a few questions...
1. what do i do with all those discs?
-do i have to install MAC OS X, itunes, and apple care? im sorry i just don't get it. is there more stuff on the MAC OS X discs(1 and 2) that i have to install?
2. transferring music/files/pics/etc. from pc to macbook pro?
-how is this done? Ive read where you can just connect an Ethernet cable to each computer...i tried falling directions but no success. then i tired to drag my music from my ipod into my library in my macbook but it did not do anything?..how can i transfer my music/files to my new macbook pro?
3. right click?
-is there a way to right click?
4. wireless Internet?
-i did not want to buy an apple port or whatever its called. im planing on just getting a linksys...is there a specific one i should buy?
5. noise?
- ive been reading in other posts how people have solved or not solved the "whining" noise... is there a final solution? if so what?
6. print screen?
- is there a print screen option on macs? like on pc's where you press the print screen button and it copies whats currently shown. an apple person from the store showed me it can be done but i forgot what he did. all i remember is that he dragged the cursor and was able to copy the screen.
7. multiple screens?
-i remember this apple person showed me that you can have like 4 screens at the same time minimized in each corner but only one would work but you could still see the others...how can i do this?
8. best way to turn it off?
-i usually just put my PC on standby when i was done with it. what is the best option when im done using my macbook? should i just put it to sleep? and also when im sleeping should i turn it off completely or just put it to sleep?
9. icons wont move on desktop?
- i just downloaded firefox and when it was done it left an icon on my desktop. i tried dragging it to my applications but it just made a copy. how do i get rid of it or move it?
10. AIM?
-why does aim always sign off by itself? whenever i log on about 30 seconds later it logs off...can this be fixed? i dont really like using ichat. i dont like how to buddy list is setup unlike aim.
thanks!I will give this my best shot. I too am a recent convert.
1. File them away in a safe place for future use if necessary. If you need to boot or reinstall anything later.
2. Export all of your music to an external HD from your PC and then just import them on your MBP. Go to the File menu in iTunes for this. I think I just copied my My Music file from my Win PC to a external HD and then imported them on the MBP.
3. Hold control and click at the same time. You can buy a mouse and that will help also. I bought a wireless mouse that comes with a USB key. You just plug in key and mouse works great.
4. You can use any wireless router. I have a Linksys (cant remember the model but I think its WRTGRX2).
5. Dont have problem or just dont notice it.
6. ??
7. ??
8. I asked the Genius at my local Apple store this question and he said to just close the screen to put it to sleep if Im going to be using it again the same day and only shut down when I wont be using it for a couple of days. In standby or sleep mode it does use up some battery power. I usually turn it off each nite but during the day put it to sleep in between uses.
9. Once you drag the icon to the application folder you basically did a copy and paste of the application so you can drag the desktop icon to the trash can and get rid of it. You will still have the copy of it in the application folder and that can be used to access program. you could also drag from the application folder the icon into the bottom shortcut list of applications (i cant remember at this moment what this is called) but if you drag it in from the left side you will be placing a shortcut of the application for quick access.
10. ??
Hope I kind of helped. -
DNS and Static IP Address Question on Solaris v10 X86
I�ve recently installed Solaris v10 X86 and have two questions. The system is a Dell E521 with 4GB RAM and 1GB SysKonnect NIC, and internet is provided via a cable modem, that�s plugged into a Netgear router, and the Solaris 10 box is plugged into the Netgear router via a CAT5 ethernet cable.
1. I can connect to my router login page using the following URL:
http://192.168.1.1/start.htm and I can also connect to various web pages such as yahoo, if I first "ping yahoo.com" (on another machine that�s internet enabled) and then plug the web site�s ip address into the Solaris/Mozilla browser. So it appears that I haven�t been successful at pointing the Solaris x86 at a DNS server to resolve the DNS name.
2. I've purchased a commercially available software package and it requires a static ip address for this Solaris x86 server. If the ip address changes, it�ll stop working by design and require that I reacquire the license file. When connecting through this Netgear router, how do I lock this Solaris v10 x86 server into a specific ip address? (the ip address floats presently when cycling my PC�s on/off) presently, and assume the Solaris box will too, usually through an ip range of 192.168.1.<1 through 5>
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
skge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255
ether 0:0:5a:9b:1f:10
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
192.168.1.0 192.168.1.3 U 1 1 skge0
224.0.0.0 127.0.0.1 U 1 0 lo0
default 192.168.1.1 UG 1 0
127.0.0.1 127.0.0.1 UH 8 163 lo0
Some of the present Netgear router settings:
Internet IP Address
Get Dynamically From ISP (yes)
Use Static IP Address (no)
IP Address 75.185. CROSSED-OUT3
IP Subnet Mask 255.255.248.0
Gateway IP Address 75.185.CROSSED-OUT4
Domain Name Server (DNS) Address
Get Automatically From ISP (yes)
Use These DNS Servers (blank)
Primary DNS ... (blank)
Secondary DNS ... (blank)
Netgear Router Status Page:
Account Name WGT624v3
Hardware Version V3H1
Firmware Version V2.0.16_1.0.1NA
Internet Port
MAC Address 00:40:ca:a8:CROSSED-OUT2
IP Address 75.185.CROSSED-OUT3
DHCP DHCPClient
IP Subnet Mask 255.255.248.0
Domain Name Server 65.24.7.3
65.24.7.6
LAN Port
MAC Address 00:18:4D:85:CROSSED-OUT1
IP Address 192.168.1.1
DHCP ON
IP Subnet Mask 255.255.255.0
Excerpt from doing a prtconf -D command:
pci10de,26f, instance #0 (driver name: pci_pci)
pci1028,8010, instance #0 (driver name: hci1394)
pci1148,5021, instance #0 (driver name: skge)
pci1028,1ed
pci1022,1100
The NIC is a SysKonnect 9821 1GB Ethernet card. The drivers in Solaris 10 were apparently very old and didn't install drivers or configure/plumb when I installed Solaris 10, so I downloaded the
latest drivers (hard to find!), followed the instructions and got the NIC drivers installed and then plumbed.
My router's ip address appears to be 192.168.1.1 and in one of the articles I've read, there is a recommendation to create a file (touch) within /etc named defaultrouter and enter the router's ip address. I did this, and the file now contains:
192.168.1.1
I also read where another file called resolv.conf needed to be pointed to a DNS server, which in this case, according to my Netgear router, and according to ipconfig/all on another WinBox on the same network, also shows the same 192.168.1.1 address for the DNS, so I created that file too (wasn't there) and it contains:
nameserver 192.168.1.1
There is a host name file called hostname.skge0 and it contains one line:
INTHOST
There is a hosts file, and it contains:
127.0.0.1 localhost loghost homex86
192.168.1.3 INTHOST
There is a netmasks file, and other than the commented out lines, it appears to contain one relevant line:
192.168.1.0 255.255.255.0
There is a nsswitch.conf file and other than the commented out lines, it contains:
passwd: files
group: files
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
There is an nsswitch.dns file:
passwd: files
group: files
ipnodes: files dns
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
Finally, I've also seen some advice using the folling command (and I tried it):
"route add default 192.168.1.1" as an alternative method of setting up route table
The only other command I've tried is:
"ifconfig skge0 192.168.1.1 netmask 255.255.255.0 up" but I suspect that was redundant as the plumb command I used to get the NIC functioning earlier probably already provided what was needed.
Finally, on this small network, I ran an ipconfig/all on a Windows based PC, to see what network settings were reported through the wireless connection, and this is an excerpt of that information:
C:\Documents and Settings\mark_burke>ipconfig/all
Windows IP Configuration
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Controller
Physical Address. . . . . . . . . : (withheld)
Ethernet adapter {xxxxxxxx}:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Nortel IPSECSHM Adapter - Packet Scheduler Min
iport
Physical Address. . . . . . . . . : (withheld)
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Dell Wireless 1370 WLAN Mini-PCI Card
Physical Address. . . . . . . . . : (withheld)
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1I�ve recently installed Solaris v10 X86 and have two
questions. The system is a Dell E521 with 4GB RAM
and 1GB SysKonnect NIC, and internet is provided via
a cable modem, that�s plugged into a Netgear router,
and the Solaris 10 box is plugged into the Netgear
router via a CAT5 ethernet cable.
1. I can connect to my router login page using the
following URL:
http://192.168.1.1/start.htm and I can also connect
to various web pages such as yahoo, if I first "ping
yahoo.com" (on another machine that�s internet
enabled) and then plug the web site�s ip address into
the Solaris/Mozilla browser. So it appears that I
haven�t been successful at pointing the Solaris x86
at a DNS server to resolve the DNS name.You can either copy nsswitch.dns to nsswitch.conf, or you can modify nsswitch.conf so that 'dns' is used for hostname lookups.
2. I've purchased a commercially available software
package and it requires a static ip address for this
Solaris x86 server. If the ip address changes, it�ll
stop working by design and require that I reacquire
the license file. When connecting through this
Netgear router, how do I lock this Solaris v10 x86
server into a specific ip address? (the ip address
floats presently when cycling my PC�s on/off)
presently, and assume the Solaris box will too,
usually through an ip range of 192.168.1.<1 through
5>One method is setting the router so that the server's MAC address is tied to a specific IP.
Otherwise you can edit /etc/hostname.<interface> and place a static address there, forgoing DHCP services from the router. You may want the address to appear outside the router's DHCP range.
Darren -
Thinking about getting a new macbook pro, just a few questions first --
Hey guys,
I've been a mac user for about 5 years now and I love them. I've had a white 2.0 c2d macbook for about a year now. I primarily used this macbook for work, and my PC desktop for occasional games. I was thinking about getting a mac pro to do some gaming since my PC desktop broke about 2 months ago, but recently I've been getting more expenses so my wallet has grown thinner. So now I don't really have enough cash to get the mac pro. I also can't sell the macbook for a mac pro because I need something mobile for work. What I can do though is sell my macbook and get a macbook pro.
My question to you guys is, how do you like your macbook pro as a desktop replacement? I have a dell 2407-HC monitor as well to use with it. Does it game well over boot camp? I know cider hasn't yielded good performance, so please stick to bootcamp reviews. I'm not looking at anything really really intense, as I don't really have time to do as much gaming as I used to, but it'd be nice if it could run the orange box (mostly team fortress 2), dawn of war dark crusade, assassin's creed (when it comes out), and possibly the warhammer online mmo or age of conan mmo.
The other question is whether or not I should wait for a new one. Macrumors says that it's been about 150 days, and the macbook pros are updated every 180 days or so. I've already waited a few months since my desktop broke to see if the mac pro was going to be updated for penryn, but now the situation has changed, and now it looks like I might have to wait if I want a macbook pro. So, to wait or not to wait?
Any other opinions are welcome as well. Thanks.
Message was edited by: logisticprism1leonhart1981
What's the beneift of buying 2.6GHz Quad-core Intel Core i7 instead of 2.3GHz Quad-core Intel Core i7?
Benefit of the QUAD core and the BASE UNIT 13" is extra cores for "heavy" photo and video editing and dedicated graphics
On 95% of things you wouldnt notice a difference, web viewing, typing, youtube, etc. Simple APPS
http://www.apple.com/macbook-pro/specs-retina/
The 2.6 is DUAL CORE, not quad core.
On the top model:
Intel Iris Pro Graphics
NVIDIA GeForce GT 750M with 2GB of GDDR5 memory and automatic graphics switching
There are lots of new reviews of the new late 2013 Retina macbook Pro including DETAILED SPECS on speed diff. between
Reviews of the new Retina 2013 Macbook Pro
13”
Digital Trends (13") - http://www.digitaltrends.com/laptop-...h-2013-review/
LaptopMag (13") - http://www.laptopmag.com/reviews/lap...play-2013.aspx
Engadget (13") - http://www.engadget.com/2013/10/29/m...-13-inch-2013/
The Verge (13") - http://www.theverge.com/2013/10/30/5...ay-review-2013
CNet (13") - http://www.cnet.com/laptops/apple-ma...-35831098.html
15”
The Verge (15") - http://www.theverge.com/2013/10/24/5...w-15-inch-2013
LaptopMag (15") - http://www.laptopmag.com/reviews/lap...inch-2013.aspx
TechCrunch (15") - http://techcrunch.com/2013/10/25/lat...ok-pro-review/
CNet (15") - http://www.cnet.com/apple-macbook-pro-with-retina-2013/
PC Mag (15") - http://www.pcmag.com/article2/0,2817,2426359,00.asp
Arstechnica (15") - http://arstechnica.com/apple/2013/10...-pro-reviewed/
Slashgear (15") - http://www.slashgear.com/macbook-pro...2013-26303163/
The best pragmatic review of the new Retina Pro is:
http://www.theverge.com/2013/10/30/5044874/13-inch-macbook-pro-with-retina-displ ay-review-2013
Happy Halloween -
Bought Refurbished MacBook Pro. A few question...
Ok, so I got a refurbished MacBook Pro because I've been using a Powerbook G4 for 5 years. I'm glad the look hasn't changed since the new ones are basically identical. I have a 17" now and am replacing it with another 17", but I have a few questions.
I save $600 on the refurbished one. Are refurbished units reliable?
Also, are the newer MacBooks much better than the previous iterations? The specs of the refurbished one are: 2.33GHz, ATI Radeon X1600 256MB, 2GB Ram, 160GB HD 5400RPM, 8x DVD Superdrive. But the newer systems are 2.4GHz and have the new Nvidia card. The new one is $600 more. Are those two components worth the extra $600?
Thanks for any answers!The vast majority of refurbs are in fact new and, for whatever reason, are no longer able to be sold as new by Apple Stores (or whichever reseller they came from). These include returns, exchanges for other products (like a better MBP) etc etc and some are lucky to get CTOs with unexpected upgrades. As things go these perform like any other new product.
However, there are some units that have been returned for technical/hardware issues which are subsequently repaired and then put into the refurb chain. Some of these do continue to be problematic although I don't bvelieve it's a high percentage.
overall most seem to be very happy with their refurb purchase especially given it comes with Apple's standard one year warranty and are eligible for Apple Care extended warranty.
As for comparing to the current 2.4GHz MBP, it really depends on what you intend on doing with it whether it is worth the extra cash so that's rather difficult to answer. -
Osx10.9 & final cut pro 7 & motion 4 question
Mac now for the new version of osx10.9, like final cut pro 7 and motion 4 reactions are not os10.8.7 so smooth, motion 4 in os10.8.7 archiving project now osx10.9 Versions an open crashes
Would like to ask these questions can improve the look ~ Thank you!Yes.
No.
Maybe.
What format? What filters?
Generally, I do not think using the roundtrip feature is a good idea if you are doing filters. Apply your filters and render. Export the rendered footage as self-contained movies to Motion. Or do you keying and then apply your filters.
bogiesan
Maybe you are looking for
-
All of a sudden my Palm Desktop lost all it's data except Media (photos). There are no error messages. Additionally, it will not properly Sync. Again, there no error messages. I have tried to Sync several times using my Palm TX as the updater. I
-
Installing XP using boot camp with partitiion drive?
I recently re-installed Leopard on my mac, and i decided to partition the drive. Then, when I went to install XP using boot camp it said that it only works with 1 partition! Is there any way round this without re-partitioning my drive? I also have an
-
Dear experts, The customer raises 2 requirements to reduce manual entry workload. To meet those 2 requirements, is it the only way to use enhancement, etc.? Any bad impact of that? Requirement 1: Default expiry date in contract and scheduling agreeme
-
Coloring the treenode dynamically
Hi, I am trying to create a chat application using Socket/ServerSocket classes.Application's requirement is such that one client on one end can talk to many clients on other end.I am displaying the clientid using a Jtree. Now the problem is,i want to
-
Problem with 3D spinning cube. I build a cube and then export to quicktime and re-import so I can reduce the size (60%) to have the cube over other video. Problem is that when the cube spins the corners are cut off as the perspective changes. I can a