Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 01-18-2007, 05:31 AM   #1
Registered: Aug 2003
Location: Sweden
Distribution: Debian
Posts: 52

Rep: Reputation: 15
GCC inserts my username in command line

I'm tying to compile (postgresql 8.2.0) under:
SunOS 5.8 Generic_117350-36 sun4u sparc SUNW,Sun-Blade-100
GCC 3.4.3

and got problems during the compilation, the problem seems to be that gcc (or configure) adds my username (sjostric) to the gcc command line. Like this:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing sjostric -I../../src/port -DFRONTEND -I../../src/include -c -o isinf.o isinf.c

which results in that I get:
gcc: sjostric: No such file or directory
(extended output below)

My configure command line is nothing unusual:
/configure --prefix=/home/sjostric/postgresql/8.2.0 --exec-prefix=/home/sjostric/postgresql/8.2.0 --without-readline

I tried a post to the postgresql mailing list but no answer, so I thought there might be one you out there that understands why GCC does this ugly thing for me! (I dont think that this is a postgresql related thing)



---- 8< ----
make[3]: Entering directory `/home/sjostric/postgresql/src/postgresql-8.2.0/src/port'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing sjostric -I../../src/port -DFRONTEND -I../../src/include -c -o isinf.o isinf.c
gcc: sjostric: No such file or directory
make[3]: *** [isinf.o] Error 1
make[3]: *** Deleting file `isinf.o'
make[3]: Leaving directory `/home/sjostric/postgresql/src/postgresql-8.2.0/src/port'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sjostric/postgresql/src/postgresql-8.2.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sjostric/postgresql/src/postgresql-8.2.0'
*** Error code 2
make: Fatal error: Command failed for target `all'
(56)# postgresql-8.2.0/:
---- 8< ----
Old 01-18-2007, 08:27 AM   #2
Dox Systems - Brian
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Well, I don't have any idea about that, but you can always download the PostGreSQL package instead of compiling from sources
Old 02-08-2007, 06:07 PM   #3
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
I don't think it is gcc. Run configure and then look at the Makefile it produces. If configure is the problem, then it is probably back to a postgresql problem since they distribute the configure script.
Old 02-09-2007, 04:17 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Most importantly, look at config.log ... and which postgresql
mailing-list did you supposedly send this to? I didn't see it,
and it's not in the archives...

Old 03-19-2007, 11:54 AM   #5
Registered: Aug 2003
Location: Sweden
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: 15
I had a env variable PROFILE set to my usename sjostric. Re-setting this to nothing fixed the problem... :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
return the username in a command matthewhardwick Linux - General 6 10-12-2007 07:30 AM
printing dvd inserts r0jaws Linux - Software 0 04-19-2005 02:53 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 02:28 PM
command prompt - username@mac address? ryedunn Linux - Newbie 5 03-16-2004 08:55 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration