Sponsored Content
Top Forums Programming Sun Solaris C++ Compiling Error Post 302435831 by acheong87 on Thursday 8th of July 2010 09:31:44 AM
Old 07-08-2010
Sun Solaris C++ Compiling Error

Hello. I'm using SunStudio 12 Update 1. When compiling for x86, everything works fine. When compiling for SPARC, I get the following errors. I linked libCstd.so.1 explicitly, but I get the same errors. Would anyone be kind enough to step me through resolving this? Thank you very much.

Code:
** Linking binary camaAlpha_Agw
CC -lrt -mt -xarch=v9 -DCOMPILE_SOL_SPARC -ftrap=%none -xlibmil  -xchip=ultra2 -xbuiltin -xO4 -D_REENTRANT -DNDEBUG
  -instances=static -I. -I/home/Alpha/release64/include -I/home/Alpha/release64/include  -I/home/Alpha/src/emapi/common
  -I/home/Alpha/src/emapi/emapi -o /home/Alpha/release64/obj/camaAlpha_Agw/CompileDate.o
CC -lrt -mt -xarch=v9 -DCOMPILE_SOL_SPARC -ftrap=%none -xlibmil  -xchip=ultra2 -xbuiltin -xO4 -D_REENTRANT -DNDEBUG
  -instances=static -I. -I/home/Alpha/release64/include -I/home/Alpha/release64/include  -I/home/Alpha/src/emapi/common
  -I/home/Alpha/src/emapi/emapi -xildoff -norunpath -lrt -o /home/Alpha/release64/bin/camaAlpha_Agw /home/Alpha/release64/obj/camaAlpha_Agw/AgwApp.o
  /home/Alpha/release64/obj/camaAlpha_Agw/AgwCallBack.o /home/Alpha/release64/obj/camaAlpha_Agw/AgwHealth.o
  /home/Alpha/release64/obj/camaAlpha_Agw/AgwLink.o /home/Alpha/release64/obj/camaAlpha_Agw/AgwMain.o
  /home/Alpha/release64/obj/camaAlpha_Agw/AgwMessageQueue.o /home/Alpha/release64/obj/camaAlpha_Agw/AgwSession.o
  /home/Alpha/release64/obj/camaAlpha_Agw/AgwSortString.o /home/Alpha/release64/obj/camaAlpha_Agw/AgwUtility.o \
        /home/Alpha/release64/obj/camaAlpha_Agw/CompileDate.o -L/home/Alpha/release64/lib -L/home/Alpha/src/emapi/lib/SOL_SPARC
  -lFidApp -lFidInf -lFidCore -lFidevm -lAlphaDb  -lemapi -ldl -lsocket -ldemangle -lm -lnsl -lz -lsched -R /usr/lib/lwp/64
Undefined                        first referenced
 symbol                              in file
unsigned long std::basic_string<char,std::char_traits<char>,std::allocator<char> >::size()const
  /home/Alpha/src/emapi/lib/SOL_SPARC/libemapi.a(EmapiSessionImpl.o) 
  (symbol belongs to implicit dependency /usr/lib/sparcv9/libCstd.so.1)
void std::basic_string<char,std::char_traits<char>,std::allocator<char> >::clear()
  /home/Alpha/src/emapi/lib/SOL_SPARC/libemapi.a(MessageQueueItems.o)
  (symbol belongs to implicit dependency /usr/lib/sparcv9/libCstd.so.1)
char*__rwstd::__rw_basis<char*,std::allocator<char> >::data()const
  /home/Alpha/src/emapi/lib/SOL_SPARC/libemapi.a(EmapiTypes.o)
  (symbol belongs to implicit dependency /usr/lib/sparcv9/libCstd.so.1)
...
...
...


Last edited by acheong87; 07-08-2010 at 10:57 AM.. Reason: better formatting, thanks pluri
 

10 More Discussions You Might Find Interesting

1. Programming

CC LInker Error UNIX Sun Solaris

Hi Together, while compiling my program with CC I get the following Error message from the Linker: Undefined first referenced symbol in file std::basic_string<char,std::char_traits<char>,std::allocator<char>... (2 Replies)
Discussion started by: nik
2 Replies

2. Solaris

Error on compiling php for GD on SOLARIS 10

Hi everyone, I have SUn E250 server running solaris 10. I have installed apache 2 + MySQL + PHP-5.1.4 following the guidelines on this website http://meljr.com/~meljr/AMPSolaris10.html Excellent document for first time installation. Now, because I wanted to use Coppermine Photo Gallery, I... (9 Replies)
Discussion started by: callingrohit
9 Replies

3. Solaris

sun solaris 10 make error

i am new to solaris 10 just installed the entire DVD i have the make and gmake installed in the right postions but even when logged in as root when i run make i get "a command not found " do i have to specify a sepecial path in solaris am trying to compile postfix for a mail server i have... (9 Replies)
Discussion started by: sunrise
9 Replies

4. UNIX for Dummies Questions & Answers

Sun Solaris 10: How do I create a bootup disc? The Sun website confuses me

Hey there, I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
Discussion started by: Jupiter
0 Replies

5. Solaris

Sun Fire 280R Sun Solaris CRT/Monitor requirements

I am new to Sun. I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor? Thanks. (3 Replies)
Discussion started by: bramptonmt
3 Replies

6. Solaris

useful links and help resources for Sun's products and Sun's Solaris

Hi all, Those links might help anyone Knowledge base Video tutorials (0 Replies)
Discussion started by: h@foorsa.biz
0 Replies

7. Solaris

Compiling Error in Samba 3.4.1 on Solaris 10

Hi all, I am getting the following error While installing Samba 3.4.1 on Solaris 10. #./autogen.sh ./autogen.sh : autoheader : not found ./autogen.sh : test : argument expected Please help me as I am in a critical state of the project. Warm regards, Sathya (10 Replies)
Discussion started by: sathya47
10 Replies

8. Shell Programming and Scripting

awk script Error in Sun Solaris

Hi Friends, the below script has been through the errors in sun solaris. awk '/%s/{f=0 ;n++; print >(file="OUT_" n); close("OUT_" n-1)} f{ print > file}; /%s/{f=1}' $BASE_DIR/concat.TXT awk: syntax error near line 1 awk: bailing out near line 1 And ls $MERGE_DIR/*.R | awk ' { ... (2 Replies)
Discussion started by: krbala1985
2 Replies

9. UNIX Benchmarks

error compiling bm software under Solaris 10

anyone tried it , under Solaris 10 using make (part of SUNWsprot) and gcc 4.6 compiler.. got an error complaining about the Makefile script syntax... I don't think that's compatible at all... (2 Replies)
Discussion started by: ppchu99
2 Replies

10. Solaris

Fsck: alignment error Solaris 8, SUN Netra AX11505

Hello all, I recently powered on my Netra AX1105 server only to be greeted with the following error message. I am not sure what to do here, I cant fun fsck on OK prompt.. did ok>boot -r and now it keeps booting from net, then I run ok>boot disk then outputs the following message... and keeps... (3 Replies)
Discussion started by: br1an
3 Replies
qmail-pw2u(8)						      System Manager's Manual						     qmail-pw2u(8)

NAME
qmail-pw2u - build address assignments from a passwd file SYNOPSIS
qmail-pw2u [ -/ohHuUC ] [ -cchar ] DESCRIPTION
qmail-pw2u reads a V7-format passwd file from standard input and prints a qmail-users-format assignment file. A V7-format passwd file is a series of lines. Each line has the format user:password:uid:gid:gecos:home:shell where user is an account name, uid and gid are the user id and group id of that account, and home is the account's home directory. pass- word, gecos, and shell are ignored by qmail-pw2u. If you put the output of qmail-pw2u into /var/lib/qmail/users/assign, and then run qmail-newu, qmail-lspawn will obey the assignments printed by qmail-pw2u. WARNING: After changing any users, uids, gids, or home directories in your passwd file, you must run qmail-pw2u and qmail-newu again if you want qmail-lspawn to see the changes. RULES
By default, qmail-pw2u follows the same rules as qmail-getpw. It skips user if (1) uid is zero, (2) home does not exist, (3) user does not own home, or (4) user contains uppercase letters. It then gives each remaining user control over the basic user address and all addresses of the form user-anything. A catch-all user, alias, controls all other addresses. You may change these rules by setting up files in /var/lib/qmail/users: include Allowed users, one per line. If include exists, and user is not listed in include, user is ignored. exclude Ignored users, one per line. If exclude exists, and user is listed in exclude, user is ignored. mailnames Replacement names for users. Each line has the form user:mailname1:mailname2:... The addresses mailname1 and mailname1-ext and mailname2 and so on will be delivered to user. WARNING: The addresses user and user-ext will not be delivered to user unless user is listed as one of the mailnames. A line in mailnames is silently ignored if the user does not exist. subusers Extra addresses. Each line has the form sub:user:pre: sub will be handled by home/.qmail-pre, where home is user's home directory; sub-ext will be handled by home/.qmail-pre-ext. append Extra assignments, printed at the end of qmail-pw2u's output. OPTIONS
-o (Default.) Skip user if home does not exist (or is not visible to qmail-pw2u). Skip user if home is not owned by user. -h Stop if home does not exist. This is appropriate if every user is supposed to have a home directory. Skip user if home is not owned by user. -H Do not check the existence or ownership of home. -U (Default.) Skip user if there are any uppercase letters in user. -u Allow uppercase letters in user. -cchar Use char as the user-extension delimiter in place of -. -C Disable the user-extension mechanism. -/ Use home/.qmail-/... instead of home/.qmail-... SEE ALSO
qmail-users(5), qmail-lspawn(8), qmail-newu(8), qmail-getpw(8) qmail-pw2u(8)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy