MySQL Forums
Forum List  »  Perl

gcc: language strconst not recognized
Posted by: Mike Khesin
Date: March 26, 2007 11:15PM

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

Options: ReplyQuote


Subject
Written By
Posted
gcc: language strconst not recognized
March 26, 2007 11:15PM


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.