1753500 Members
4469 Online
108794 Solutions
New Discussion юеВ

SQLite2 perl make error

 
William Watson_1
Occasional Contributor

SQLite2 perl make error

Hi,

I am not very familiar with c compilers. So, can sombody explain what I am doing wrong??

I tried to install a perl module with cc and then tried with gcc

Many Thanks

$ gmake
gcc -c -I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/auto/DBI -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -pipe -O2 -DVERSION=\"0.33\" -DXS_VERSION=\"0.33\" -fPIC "-I/opt/perl_32/lib/5.8.8/PA-RISC1.1-thread-multi/CORE" -DNDEBUG=1 -DSQLITE_PTR_SZ=4 -DHAVE_USLEEP=1 SQLite2.c
SQLite2.xsi: In function 'XS_DBD__SQLite2__db_disconnect':
SQLite2.xsi:275: error: lvalue required as left operand of assignment
SQLite2.xsi: In function 'XS_DBD__SQLite2__db_DESTROY':
SQLite2.xsi:334: error: lvalue required as left operand of assignment
gmake: *** [SQLite2.o] Error 1
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: SQLite2 perl make error

Shalom,

You are probably compiling code with an error.

IT would appear that a variable is incomplete nor not quoted completely.

If you don't understand the code, take it to someone who does.

Also check the compiler instructions so you are certain you are using the right compiler and environment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: SQLite2 perl make error

Hi:

You should compile Perl modules that require compilation with the same compiler that was used to compile your Perl distribution.

# perl -V:cc

...will show you 'cc' or 'gcc' pointing to either the HP-UX Ansi C compiler (not the bundled C compiler!) or the GNU 'gcc' compiler.

The easist way to compile and install new modules is to use the CPAN module and let it follow any dependencies:

# perl -MCPAN -e shell

Regards!

...JRF...