LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   GCC inserts my username in command line (https://www.linuxquestions.org/questions/solaris-opensolaris-20/gcc-inserts-my-username-in-command-line-520434/)

rickthemick 01-18-2007 04:31 AM

GCC inserts my username in command line
 
Hi!
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)

Thanks!

/Rickard




Output:
---- 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< ----

Dox Systems - Brian 01-18-2007 07:27 AM

Well, I don't have any idea about that, but you can always download the PostGreSQL package instead of compiling from sources :)

wpn146 02-08-2007 05:07 PM

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.

Tinkster 02-09-2007 03:17 PM

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...


Cheers,
Tink

rickthemick 03-19-2007 10:54 AM

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


All times are GMT -5. The time now is 07:43 PM.