Question

cannot able to compile on solaris 9.also getting not an idebtifier error while do export $PATH-need to resplve this issue asap since it is production

Asked by: sants_pp

Hi,
     Os:solaris 9
     i am getting following error when i execute  bash#export $PATH
         bash: export: `/usr/local/bin:/usr/bin:/usr/sbin': not a valid identifier
gcc is installed on my machine but i cannot to configure anything.getting following error
    checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

but system has GCC installed already

bash-2.05# gcc
gcc: no input files

i am configuring hobbit client(monitoring tool0 on it but i could not able to compile the source code and install it.every timne it fails.when i configure i am also getting.
   Checking for Large File Support ...
ERROR: Compiler doesnt recognize the off_t C type.

that would be great if anyone help me to respolve this issue asap


This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-03-21 at 13:33:34ID23260571
Topics

Sun Solaris

,

Unix Operating Systems

,

Unix Systems Programming

Participating Experts
3
Points
500
Comments
26

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. gcc install on Solaris
    This is probably an FAQ, but I haven't had any luck finding an answer yet that works. On a brand-new UltraSparc workstation with Solaris 2.6, how can I install the latest gcc )and whatever libraries it wants), given that Sun doesn't supply any sort of C compiler? I tried ...
  2. gcc on solaris 7
    i try this on my sun server with solaris 7 as root [/usr/local/gcc-2.8.1] ./configure --build=sparc-sun3-sunos loading cache ./config.cache checking host system type... sparc-sun-solaris2.7 checking target system type... sparc-sun-solaris2.7 checking build system type... sp...
  3. installing gcc on solaris
    I have installed solaris7(intel) on my machine.But it doesn't have any C compiler as it is a free distribution.I downloaded gcc2.95 from sunfreeware.com in solaris package format.After unzipping the package and applying pkgadd -d gcc-2.95-sol7-intel-local, I am getting the f...
  4. problem installing gcc in solaris
    I tried to install gcc in Solaris 7, and when I configure it, the error message as bellow prompt out : Configuring for a sparc-sun-solaris2.7 host. Created "Makefile" in /usr/local/objdir/gcc-2.95.2 using "mh-frag" ./configure: cc: not found *** The comma...
  5. How to install gcc on Solaris?
    I am running solaris 8 and I would like to install gcc. After reading the installation notes at http://gcc.gnu.org/install, I still don't understand how to do it. I have added the package for libgcc. After pkgadd the gcc libraries, I have no clue how to proceed. I am not sur...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: arnoldPosted on 2008-03-21 at 13:45:22ID: 21183040


When using export command, you should not include the $.
PATH=$PATH:/usr/local/bin:/opt/bin
export PATH
the addition will look for gcc in /usr/local/bin and /opt/bin.
If your gcc is in a different location, you can include that in the PATH.

 

by: sants_ppPosted on 2008-03-21 at 14:35:09ID: 21183371

hi
   i think you mis understood my problem. i am not seeting path.

when i just execute export $PATH  to display value of PATH variable i am getting
 bash: export: `/usr/local/bin:/usr/bin:/usr/sbin': not a valid identifier

   Also i already set path for gcc
          when i invove gcc it ouputs gcc: no input files  which conforms gcc working but when i ./configure some thins getting
   checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

 

by: sants_ppPosted on 2008-03-21 at 14:43:54ID: 21183439

Hi all,
   sorry i confused all of them.instead of typing echo $PATH i typed export $PATH.--leave this

but still  i cannot able to compile gcc.but i have set path for gcc.when i execute gcc i am getting gc-no input files output but while configure

  ./configure some thins getting
   checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details

any clues?

 

by: florin_ganeaPosted on 2008-03-21 at 14:57:01ID: 21183543

You may do "echo $PATH".

 

by: florin_ganeaPosted on 2008-03-21 at 14:57:28ID: 21183547

Can you tell me which version of hobbit you try to compile?

 

by: sants_ppPosted on 2008-03-21 at 15:14:51ID: 21183639

here is my config.log output

      more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PCRE configure 7.5, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = nywplebsa0.mcgraw-hill.com
uname -m = sun4u
uname -r = 5.9
uname -s = SunOS
uname -v = Generic_118558-25

/usr/bin/uname -p = sparc
/bin/uname -X     = System = SunOS
Node = nywplebsa0.mcgraw-hill.com
Release = 5.9
KernelID = Generic_118558-25
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2

/bin/arch              = sun4
/usr/bin/arch -k       = sun4u
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/bin
PATH: /usr/ucb
PATH: /usr/sbin
PATH: /usr/local/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2028: checking for a BSD-compatible install
configure:2084: result: ./install-sh -c
configure:2095: checking whether build environment is sane
configure:2138: result: yes
configure:2166: checking for a thread-safe mkdir -p
configure:2205: result: ./install-sh -c -d
configure:2218: checking for gawk
configure:2248: result: no
configure:2218: checking for mawk
configure:2248: result: no
configure:2218: checking for nawk
configure:2234: found /usr/bin/nawk
configure:2245: result: nawk
configure:2256: checking whether make sets $(MAKE)
configure:2277: result: yes
configure:2529: checking for gcc
configure:2556: result: gcc
configure:2794: checking for C compiler version
configure:2801: gcc --version >&5
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2804: $? = 0
configure:2811: gcc -v >&5
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
configure:2814: $? = 0
configure:2821: gcc -V >&5
gcc: `-V' option must have argument
configure:2824: $? = 1
configure:2847: checking for C compiler default output file name
configure:2874: gcc    conftest.c  >&5
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2877: $? = 1
configure:2915: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "PCRE"
| #define PACKAGE_TARNAME "pcre"
| #define PACKAGE_VERSION "7.5"
| #define PACKAGE_STRING "PCRE 7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "pcre"
| #define VERSION "7.5"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2922: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_AWK=nawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /tmp/pcre-7.5/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/pcre-7.5/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /tmp/pcre-7.5/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/pcre-7.5/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/pcre-7.5/missing --run automake-1.10'
AWK='nawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISTCHECK_CONFIGURE_FLAGS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBPCRECPP_LDFLAGS=''
EXTRA_LIBPCREPOSIX_LDFLAGS=''
EXTRA_LIBPCRE_LDFLAGS=''
F77=''
FFLAGS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /tmp/pcre-7.5/missing --run makeinfo'
OBJDUMP=''
OBJEXT=''
PACKAGE='pcre'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='PCRE'
PACKAGE_STRING='PCRE 7.5'
PACKAGE_TARNAME='pcre'
PACKAGE_VERSION='7.5'
PATH_SEPARATOR=':'
PCRE_DATE=''
PCRE_MAJOR=''
PCRE_MINOR=''
PCRE_PRERELEASE=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='7.5'
WITH_PCRE_CPP_FALSE=''
WITH_PCRE_CPP_TRUE=''
WITH_REBUILD_CHARTABLES_FALSE=''
WITH_REBUILD_CHARTABLES_TRUE=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /tmp/pcre-7.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pcre_have_bits_type_traits=''
pcre_have_long_long=''
pcre_have_type_traits=''
pcre_have_ulong_long=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "PCRE"
#define PACKAGE_TARNAME "pcre"
#define PACKAGE_VERSION "7.5"
#define PACKAGE_STRING "PCRE 7.5"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "pcre"
#define VERSION "7.5"

configure: exit 77

 

by: sants_ppPosted on 2008-03-21 at 15:16:55ID: 21183649

i am installing hobbit 4.2.0.even i could not able to copline pcre library.

when i invove ./configure getting following error.please refer above for config .logs
  checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

 

by: florin_ganeaPosted on 2008-03-21 at 15:21:36ID: 21183682

I don't find any Solaris 9 at hand, but I have several Solaris 10 systems.
What I can tell you is that:
- you may not have write permissions on the directory configure is trying to create the executable
- your gcc is too old (or too new ;-))
- you are trying to compile the server, not the client
- you can try, as they recommend, "MAKE=gmake ./configure.client" as the command line

I managed to compile hobbit client version 4.2.0 on a Solaris 10 machine:

> MAKE=gmake ./configure.client

Configuration script for Hobbit client

This script asks a few questions and builds a Makefile to compile Hobbit

Checking your make-utility

Hobbit normally keeps all of the client configuration files
on the Hobbit server. If you prefer, it is possible to use
a local client configuration file instead - if so, answer
'client' to the next question.
NB: Local configuration requires the PCRE libs on each host.

Server side client configuration, or client side [server] ?



Checking for Large File Support ...
ERROR: LFS support check failed for standard file support


What userid will be running Hobbit [hobbit] ?
ganea
Found passwd entry for user ganea:x:1029:100::/home/ganea:/bin/ksh


Where do you want the Hobbit installation [/home/ganea] ?

OK, will configure to use /home/ganea as the Hobbit toplevel directory


What is the IP-address of your Hobbit server [127.0.0.1] ?

** NOTE: Using 127.0.0.1 (loopback), but it is probably not what you want **



Using SunOS Makefile settings



Created Makefile with the necessary information to build Hobbit
Some defaults are used, so do look at the Makefile before continuing.

Configuration complete - now run gmake (GNU make) to build the tools

> gmake
MAKE="gmake" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" `pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
config.h created
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS" RPATHOPT="" PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" BBTOPDIR="/home/ganea" BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="127.0.0.1" BBHOSTOS="" LOCALCLIENT="no" gmake -C lib client
gmake[1]: Entering directory `/home/ganea/tools/hobbit-4.2.0/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/ganea/tools/hobbit-4.2.0/include -DCLIENTONLY=1 -I. -I../include  -o test-endianness test-endianness.c
...
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/ganea/tools/hobbit-4.2.0/include -DCLIENTONLY=1 -o msgcache msgcache.c ../lib/hobbitclient.a -lresolv -lsocket -lnsl
cat hobbitclient.cfg.DIST | sed -e 's!@BBHOSTIP@!127.0.0.1!g' >hobbitclient.cfg
../build/bb-commands.sh >>hobbitclient.cfg
cat clientlaunch.cfg.DIST | sed -e 's!@CLIENTFLAGS@!!g' >clientlaunch.cfg
gmake[1]: Leaving directory `/home/ganea/tools/hobbit-4.2.0/client'

Build complete. Now run 'gmake install' as root

 

by: florin_ganeaPosted on 2008-03-21 at 15:26:12ID: 21183706

> gcc --version
2.95.3

So, most likely you have a too recent version of gcc...

And PCRE is needed by the server... you need the server too?

 

by: florin_ganeaPosted on 2008-03-21 at 16:33:35ID: 21183963

For server I am stuck here:

CC="gcc" CFLAGS="-I../include" LDFLAGS="" RPATHOPT="" SSLFLAGS="-DBBGEN_SSL" SSLINCDIR="-I/usr/local/ssl/include " SSLLIBS="-L/usr/local/ssl/lib -lssl -lcrypto" LDAPFLAGS="-DBBGEN_LDAP" LDAPINCDIR="-I/usr/include" LDAPLIBS="-L/usr/lib -lldap " NETLIBS="-lresolv -lsocket -lnsl" BBHOME="/home/ganea/server" ARESVER="1.2.1" RUNTIMEDEFS="" PCREINCDIR="-I/opt/sfw/include" PCRELIBS="-L/opt/sfw/lib -lpcre" gmake -C bbnet all
gmake[1]: Entering directory `/home/ganea/tools/hobbit-4.2.0/bbnet'
gcc -I../include -DBBGEN_SSL -DBBGEN_LDAP -I/usr/local/ssl/include  -I/usr/include -c -o bbtest-net.o bbtest-net.c
In file included from /usr/include/iso/stdarg_iso.h:41,
                 from /usr/include/stdarg.h:32,
                 from ../include/../lib/osdefs.h:18,
                 from ../include/libbbgen.h:34,
                 from bbtest-net.c:27:
/usr/include/sys/va_impl.h:150: #error ("Unrecognized compiler protocol for variable argument lists")
gmake[1]: *** [bbtest-net.o] Error 1
gmake[1]: Leaving directory `/home/ganea/tools/hobbit-4.2.0/bbnet'
gmake: *** [bbnet-build] Error 2

It is because my compiler is too old... however it does not resemble with your problem at all...

 

by: sants_ppPosted on 2008-03-22 at 11:06:53ID: 21187153

any help on this.
my server has gcc installed but still cannot able to copile the souce code
os:solaris 9
installed gcc SMCgcc342s
   
     ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details

 

by: arnoldPosted on 2008-03-22 at 11:32:40ID: 21187247

You seem to have two versions of gcc:
From your conf.log

"hread model: posix
gcc version 3.4.6
configure:2814: $? = 0
configure:2821: gcc -V >&5
gcc: `-V' option must have argument"

run pkginfo -i | grep -i gcc
or try
CC=/usr/local/bin/gcc CCFLAGS="-O3 -I/usr/local/include -R/usr/local/lib" ./configure
And see if you have the same result. Remove the CCFLAGS reference and see whether the same issue exists.
echo $LD_LIBRARY_PATH
What is there?  Try adding /usr/local/lib to that list.
You might need to add LDFLAGS="-I/usr/local/include -L/usr/local/lib" to the line infront of configure similar to CC and CFLAGS.

It might be that at the time of linking  (ld) the "wrong" include,libraries are used for linking.

 

by: sants_ppPosted on 2008-03-23 at 16:30:06ID: 21191117

hi
   output of pkginfo -i|grep -i gcc
           pkginfo -i|grep -i gcc
application SMCgcc342s           gcc
when i run  gcc --version
gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
insalled gcc is SMCgcc342s (this is 3.4.2 right)but when i run gcc --version i am getting wrong version.but i dont see gcc3.4.6 installed on this machine when i run pkginfo -i|grep -i gcc

   i have the similar os and configration on anothormachine. when i run above commands on this machine i am getting
    pkginfo -i|grep -i gcc
application SMCgcc342s                       gcc
application SMClibgcc                        libgcc
bash-2.05# gcc --version
gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

note: here i am getting 3.4.2

the machine i am having gcc problem giving wrong version of gcc. but i dont see 3.4.6 is installed when i run pkginfo -i|grep -i gcc. what could be the problem.how can i find where 3.4.6 is installed.
  if i install gcc version 3.4.2 do i have have to install same version of libgcc(3.4.2).please advise on this.and let me know your solutions to resolve this problem.this probelm is killing me.
   i dont see gcc 3.4.2 and libgcc 3.4.2 in sunfreeware.sun.com. where shall i get these pacakges.
if i delete SMCgcc342s this package does it cause any problem.or i can install once again 3.4.2 without removing SMCgcc342s this package.please advise on this to resolve this problem

 

by: arnoldPosted on 2008-03-23 at 20:10:46ID: 21191754

The gcc version 3.4.6 might have been compiled and installed rather than obtained as a package.

The problem is likely because of the multiple versions of the includes/libs that cause the problem.  You would need to force the configure to only rely on one version by using CFLAGS,GCC,LDFLAGS.  Check what options the configure script offers for include,library settings, configure --help might do the trick.

 

by: sants_ppPosted on 2008-03-24 at 12:32:02ID: 21196146

hi
  how to set up this flags and comple.can you please help me on this

 

by: sants_ppPosted on 2008-03-24 at 12:38:10ID: 21196187

is there any way remove only binary version of gcc form system

 

by: arnoldPosted on 2008-03-24 at 12:50:29ID: 21196276

Based on your prior SMCgcc3.4.2 s in /usr/local/ so do:

CC=/usr/local/bin/gcc CFLAGS="-O3 -I/usr/local/include -R/usr/local/lib" LDFLAGS="-I/usr/local/include -R/usr/local/lib" ./configure --whateveroptions_you_need

 

by: sants_ppPosted on 2008-03-24 at 15:23:17ID: 21197793

on the command line i did
#CC=/usr/local/bin/gcc
#CFLAGS="-O3 -I/usr/local/include -R/usr/local/lib"
#LDFLAGS="-I/usr/local/include -R/usr/local/lib"

  then i compiled ./configure
but still getting error
   

 

by: arnoldPosted on 2008-03-24 at 15:37:45ID: 21197964

We can not see what you are doing, nor can we see what errors you get.  Everything should be on the same line.

 

by: sants_ppPosted on 2008-03-24 at 16:07:43ID: 21198324

on the command line i ran
#CC=/usr/local/bin/gcc
#CFLAGS="-O3 -I/usr/local/include -R/usr/local/lib"
#LDFLAGS="-I/usr/local/include -R/usr/local/lib"

then ran ./configure copmmand under base dir
. ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details

getting the same ...any clue?

 

by: arnoldPosted on 2008-03-24 at 16:18:37ID: 21198396

All the entries should be on the same line
#CC="all the data"  CFLAGS="all the data" LDFLAGS="all the data" ./configure

Please note that the information above only shows that there was an error, config.log actually shows where at what caused the error.  
Try to configure as shown above replacing, "all the data" with the actual items.

Then attach the config.log file instead of including it in the post.

 

by: bpetersePosted on 2008-03-24 at 16:59:00ID: 21198563

If you want to separate lines for clarity, you can end each line with "\" so @ configure/compile time, it all appears as one line: e.g.

#CC=/usr/local/bin/gcc \
#CFLAGS="-O3 -I/usr/local/include -R/usr/local/lib" \
#LDFLAGS="-I/usr/local/include -R/usr/local/lib" \


 

by: sants_ppPosted on 2008-03-24 at 17:26:56ID: 21198665

Hi,
  please refer the followings
bash-2.05# CC=/usr/local/bin/gcc CFLAGS="-O3 -I/usr/local/include -R/usr/local/lib" LDFLAGS="-I/usr/local/include -R/usr/local/lib" ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk...
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/bin/gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

also attached config.log file

 more config.log 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by PCRE configure 7.5, which was
generated by GNU Autoconf 2.61.  Invocation command line was
 
  $ ./configure 
 
## --------- ##
## Platform. ##
## --------- ##
 
hostname = nywplebsa0.mcgraw-hill.com
uname -m = sun4u
uname -r = 5.9
uname -s = SunOS
uname -v = Generic_118558-25
 
/usr/bin/uname -p = sparc
/bin/uname -X     = System = SunOS
Node = nywplebsa0.mcgraw-hill.com
Release = 5.9
KernelID = Generic_118558-25
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2
 
/bin/arch              = sun4
/usr/bin/arch -k       = sun4u
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
 
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
 
 
## ----------- ##
## Core tests. ##
## ----------- ##
 
configure:2028: checking for a BSD-compatible install
configure:2084: result: ./install-sh -c
configure:2095: checking whether build environment is sane
configure:2138: result: yes
configure:2166: checking for a thread-safe mkdir -p
configure:2205: result: ./install-sh -c -d
configure:2218: checking for gawk
configure:2248: result: no
configure:2218: checking for mawk
configure:2248: result: no
configure:2218: checking for nawk
configure:2234: found /usr/bin/nawk
configure:2245: result: nawk
configure:2256: checking whether make sets $(MAKE)
configure:2277: result: yes
configure:2529: checking for gcc
configure:2556: result: /usr/local/bin/gcc
configure:2794: checking for C compiler version
configure:2801: /usr/local/bin/gcc --version >&5
gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
configure:2804: $? = 0
configure:2811: /usr/local/bin/gcc -v >&5
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-languages=c,c+ : (reconfigured) ../configure --with-as=/usr/ccs/bin/as --with-l
d=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.4.2
configure:2814: $? = 0
configure:2821: /usr/local/bin/gcc -V >&5
gcc: `-V' option must have argument
configure:2824: $? = 1
configure:2847: checking for C compiler default output file name
configure:2874: /usr/local/bin/gcc -O3 -I/usr/local/include -R/usr/local/lib  -I/usr/local/include -R/usr/local/lib conftest.c  >&5
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2877: $? = 1
configure:2915: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "PCRE"
| #define PACKAGE_TARNAME "pcre"
| #define PACKAGE_VERSION "7.5"
| #define PACKAGE_STRING "PCRE 7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "pcre"
| #define VERSION "7.5"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2922: error: C compiler cannot create executables
See `config.log' for more details.
 
## ---------------- ##
## Cache variables. ##
## ---------------- ##
 
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/local/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=$'-O3 -I/usr/local/include -R/usr/local/lib'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=$'-I/usr/local/include -R/usr/local/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_AWK=nawk
ac_cv_prog_ac_ct_CC=/usr/local/bin/gcc
ac_cv_prog_make_make_set=yes
 
## ----------------- ##
## Output variables. ##
## ----------------- ##
 
ACLOCAL='${SHELL} /tmp/pcre-7.5/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/pcre-7.5/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /tmp/pcre-7.5/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/pcre-7.5/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/pcre-7.5/missing --run automake-1.10'
AWK='nawk'
CC='/usr/local/bin/gcc'
CCDEPMODE=''
CFLAGS='-O3 -I/usr/local/include -R/usr/local/lib'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISTCHECK_CONFIGURE_FLAGS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBPCRECPP_LDFLAGS=''
EXTRA_LIBPCREPOSIX_LDFLAGS=''
EXTRA_LIBPCRE_LDFLAGS=''
F77=''
FFLAGS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-I/usr/local/include -R/usr/local/lib'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /tmp/pcre-7.5/missing --run makeinfo'
OBJDUMP=''
OBJEXT=''
PACKAGE='pcre'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='PCRE'
PACKAGE_STRING='PCRE 7.5'
PACKAGE_TARNAME='pcre'
PACKAGE_VERSION='7.5'
PATH_SEPARATOR=':'
PCRE_DATE=''
PCRE_MAJOR=''
PCRE_MINOR=''
PCRE_PRERELEASE=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='7.5'
WITH_PCRE_CPP_FALSE=''
WITH_PCRE_CPP_TRUE=''
WITH_REBUILD_CHARTABLES_FALSE=''
WITH_REBUILD_CHARTABLES_TRUE=''
ac_ct_CC='/usr/local/bin/gcc'
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /tmp/pcre-7.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pcre_have_bits_type_traits=''
pcre_have_long_long=''
pcre_have_type_traits=''
pcre_have_ulong_long=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
 
## ----------- ##
## confdefs.h. ##
## ----------- ##
 
#define PACKAGE_NAME "PCRE"
#define PACKAGE_TARNAME "pcre"
#define PACKAGE_VERSION "7.5"
#define PACKAGE_STRING "PCRE 7.5"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "pcre"
#define VERSION "7.5"
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:

Select allOpen in new window

 

by: arnoldPosted on 2008-03-24 at 21:28:44ID: 21199496

Refer to config.log line # 2874.  and the one after.  The error deals with the ld (program linker).  get GNU ld which is part of binutils (ftp://ftp.gnu.org).  sunfreeware.com should have a package of binutils if you rather not compile it yourself.  See if that helps you compile this.   I think sunfreeware is the same place as your gcc from.

 

by: sants_ppPosted on 2008-03-26 at 11:37:05ID: 21214803

hi
  after some search i fouind SUNWarc and SUNwarcx packages are not installed on this box.
os revision number:solaris 9 9/04
  i have searched solaris first and second cd .on first cd i found SUNWarc package is residing under
solaris9/product/.virtualpackages/SUNWarc but i cannt able to install this package.under SUNWarc package i found only pkgmap file i dont find install files

  is there any url i can get the individual packages(SUNWarc and SUNWarcx)
   

 

by: arnoldPosted on 2008-03-26 at 11:52:32ID: 21214949

what happens if you do: while in the virtualpackages directory?
pkgadd -d SUNWarc SUNWarcx

The SUN packages can be obtain from www.sun.com

If the above does not work, try searching for SUNWarc
find /cdrom -name "SUNWarc*"

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...