Posted by: Mike Khesin
Date: March 26, 2007 11:15PM
Date: March 26, 2007 11:15PM
问题linker input file unused because linking not done; 2. 编译mjpg-streamer inputuvc 错误 linker input file unused because linking not done; 3. G: -lsome: linker input file unused because linking not done; 4. 关于makefile报错:linker input file unused because linking not done; 5. 【warning】clang the linker unused; 6. Linker input file unused because linking not done. Prodigy 140 points ouazza wazo Replies: 2. Gcc:./file.o: linker input file unused because linking not done. File is a program file that's repeated for all files. To link these files.o we use -Wl,-ar. But i have therefore another error: ERROR: argument to option -op ('0-3') is out of range (must be from 0 to 3).
I am having a problem with the 'make' of DBD::mysql module. Here is the log of 'make' command:
root[sh]@swtools1# make
gcc -B/usr/ccs/bin/ -c -I/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI -l/swt/tools/mysql5.0.27/bin/mysql -xstrconst -mt -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION='4.004' -DXS_VERSION='4.004' -fPIC '-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE' dbdimp.c
gcc: language strconst not recognized
gcc: -l/swt/tools/mysql5.0.27/bin/mysql: linker input file unused because linking not done
gcc: dbdimp.c: linker input file unused because linking not done
gcc -B/usr/ccs/bin/ -c -I/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI -l/swt/tools/mysql5.0.27/bin/mysql -xstrconst -mt -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION='4.004' -DXS_VERSION='4.004' -fPIC '-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE' mysql.c
gcc: language strconst not recognized
gcc: -l/swt/tools/mysql5.0.27/bin/mysql: linker input file unused because linking not done
gcc: mysql.c: linker input file unused because linking not done
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH='/swt/tools/mysql5.0.27/lib/mysql:/usr/lib' /usr/local/bin/perl myld gcc -B/usr/ccs/bin/ -G -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-R/swt/tools/mysql5.0.27/lib -R/swt/tools/mysql5.0.27/lib/mysql -L/swt/tools/mysql5.0.27/lib -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
gcc: dbdimp.o: No such file or directory
gcc: mysql.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/mysql/mysql.so'
root[sh]@swtools1#
root[sh]@swtools1#
root[sh]@swtools1# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/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
The following is my server configuration:
Solaris 10
Perl 5.8.7
gcc 3.4.6
DBD::mysql 4.004
Please let me know if you have any suggestions.
thanks
Mike
root[sh]@swtools1# make
gcc -B/usr/ccs/bin/ -c -I/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI -l/swt/tools/mysql5.0.27/bin/mysql -xstrconst -mt -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION='4.004' -DXS_VERSION='4.004' -fPIC '-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE' dbdimp.c
gcc: language strconst not recognized
gcc: -l/swt/tools/mysql5.0.27/bin/mysql: linker input file unused because linking not done
gcc: dbdimp.c: linker input file unused because linking not done
gcc -B/usr/ccs/bin/ -c -I/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI -l/swt/tools/mysql5.0.27/bin/mysql -xstrconst -mt -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION='4.004' -DXS_VERSION='4.004' -fPIC '-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE' mysql.c
gcc: language strconst not recognized
gcc: -l/swt/tools/mysql5.0.27/bin/mysql: linker input file unused because linking not done
gcc: mysql.c: linker input file unused because linking not done
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH='/swt/tools/mysql5.0.27/lib/mysql:/usr/lib' /usr/local/bin/perl myld gcc -B/usr/ccs/bin/ -G -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-R/swt/tools/mysql5.0.27/lib -R/swt/tools/mysql5.0.27/lib/mysql -L/swt/tools/mysql5.0.27/lib -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
gcc: dbdimp.o: No such file or directory
gcc: mysql.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/mysql/mysql.so'
root[sh]@swtools1#
root[sh]@swtools1#
root[sh]@swtools1# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/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
The following is my server configuration:
Solaris 10
Perl 5.8.7
gcc 3.4.6
DBD::mysql 4.004
Please let me know if you have any suggestions.
thanks
Mike
Options:Reply•Quote
Written By
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.
Disc-Devil wrote:Well, regardless, if it is a 'real' issue or not, I think, most of us prefer to, not see an error/warning if it is avoidable.
So remove the linker flags from makepkg.conf - problem solved
Disc-Devil wrote:As it was stated in the man page for ld, sometimes, when calling it (pasing options) interactive (is this the term?) it sometimes 'messes' up, and it is better to use the suggested, so that the compoiler knows, that >this< is not my buisness, i'll give it to ld or something like that.
mm, i dont know, if im making any sence at all, i could, for all i know, be far away from actuall thruth.. but, it did make the warning/error go away
I'm not sure what you're saying here... but I think your saying that this issue causes ld to fail? It shouldn't - that'd be an unrelated issue. These warning messages are *only* issued by gcc when it detects linker flags and is outputting an object file and not linking object files.
For instance:
Will issue the exact same object file (try a diff on them), but the first one will issue the warning, the second will not.
The problem with removing these linker flags is that they are used alot - just not in all programs.
I'm not at my arch box, can someone post the contents of makepkg.conf?