Help - error during "make" for DBD

Help - error during "make" for DBD

am 11.05.2005 03:23:53 von Jacqueline Lee

--0-2066159617-1115774633=:66602
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

I need help. I always encounter this error when I execute the "make" command to install the DBD-mysql-2.9007. Can someone please tell me what to do?

# make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI -I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9007\" -DXS_VERSION=\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE" dbdimp.c
/opt/iw-home/iw-perl/bin/perl -p -e "s/~DRIVER~/mysql/g" /opt/iw-home/iw-perl/vendor/lib/auto/DBI/Driver.xst > mysql.xsi
/opt/iw-home/iw-perl/bin/perl /opt/iw-home/iw-perl/lib/ExtUtils/xsubpp -typemap /opt/iw-home/iw-perl/lib/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 196
Warning: duplicate function definition 'rows' detected in mysql.xs, line 294
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI -I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9007\" -DXS_VERSION=\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib" /opt/iw-home/iw-perl/bin/perl myld gcc -Wl,-E -G -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/local/mysql/lib -lmysqlclient -lcrypt -lgen -lsocket -lnsl -lm
/usr/ccs/bin/ld: illegal option -- E
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct] specify `direct' bindings for executable when run
[-B dynamic | static]
search for shared libraries|archives
[-B eliminate] eliminate unqualified global symbols from the
symbol table
[-B group] relocate object from within group
[-B local] reduce unqualified global symbols to local
[-B reduce] process symbol reductions
[-B symbolic] bind external references to definitions when creating
shared objects
[-c name] record configuration file `name'
[-C] demangle C++ symbol name diagnostics
[-d y | n] operate in dynamic|static mode
[-D token,...] print diagnostic messages
[-e epsym] use `epsym' as entry point address
[-f name] specify library for which this file is an auxiliary
filter
[-F name] specify library for which this file is a filter
[-G] create a shared object
[-h name] use `name' as internal shared object identifier
[-i] ignore LD_LIBRARY_PATH setting
[-I name] use `name' as path of interpreter
[-l x] search for libx.so or libx.a
[-L path] search for libraries in directory `path'
[-m] print memory map
[-M mapfile] use processing directives contained in `mapfile'
[-N string] create a dynamic dependency for `string'
[-o outfile] name the output file `outfile'
[-p auditlib] identify audit library to accompany this object
[-P auditlib] identify audit library for processing the dependencies
of this object
[-Q y | n] do|do not place version information in output file
[-r] create a relocatable object
[-R path] specify a library search path to be used at run time
[-s] strip any symbol and debugging information
[-S supportlib]
specify a link-edit support library
[-t] do not warn of multiply-defined symbols that have
different sizes or alignments
[-u symname] create an undefined symbol `symname'
[-V] print version information
[-Y P,dirlist] use `dirlist' as a default path when searching for
libraries
[-z absexec] when building an executable absolute symbols
referenced in dynamic objects are promoted to
the executable
[-z allextract | defaultextract | weakextract]
extract all member files, only members that resolve
undefined tor tentative symbols, or allow extraction of
archive members to resolvetweak references from
archive files
[-z combreloc] combine multiple relocation sections
[-z nocompstrtab]
disable compression of string tables
[-z defs] disallow undefined symbol references
[-z direct | nodirect]
enable|disable direct binding to shared object
dependencies
[-z endfiltee] marks a filtee such that it will terminate a filters
search
[-z finiarray=function]
name of function to be appended to the .finiarray
[-z groupperm | nogroupperm]
enable|disable setting of group permissions
on dynamic dependencies
[-z ignore | record]
ignore|record unused dynamic dependencies
[-z initarray=function]
name of function to be appended to the .initarray
[-z initfirst] mark object to indicate that its .init section should
be executed before the .init section of any other
objects
[-z interpose] dynamic object is to be an `interposer' on direct
bindings
[-z lazyload | nolazyload]
enable|disable delayed loading of shared object
dependencies
[-z ld32=arg1,arg2,...]
define arguments applicable to the 32-bit class of ld(1)
[-z ld64=arg1,arg2,...]
define arguments applicable to the 64-bit class of ld(1)
[-z loadfltr] mark filter as requiring immediate loading of its
filtees at runtime
[-z muldefs] allow multiply-defined symbols
[-z nodefs] allow undefined symbol references
[-z nodefaultlib]
mark object to ignore any default library search path
[-z nodelete] mark object as non-deletable
[-z nodlopen] mark object as non-dlopen()'able
[-z nodump] mark object as non-dldump()'able
[-z nopartial] expand any partially initialized symbols
[-z noversion] don't record any version sections
[-z now] mark object as requiring non-lazy binding
[-z origin] mark object as requiring $ORIGIN processing
[-z preinitarray=function]
name of function to be appended to the .preinitarray
[-z redlocsym] reduce local syms in .symtab to a minimum
[-z rescan] rescan archive list until no further member
extraction occurs
[-z text] disallow output relocations against text
[-z textoff] allow output relocations against text
[-z textwarn] warn if there are relocations against text
[-z verbose] generate warnings for suspicious processings
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/mysql/mysql.so'


thanks

regards
jac

Yahoo! Messenger
- Log on with your mobile phone!
--0-2066159617-1115774633=:66602--

Re: Help - error during "make" for DBD

am 11.05.2005 03:32:38 von Jochen Wiedmann

Jacqueline Lee wrote:

> /usr/ccs/bin/ld: illegal option -- E

My guess is, that you are using a build of MySQL, which is compiled by
another source. If so, you have two options:

a) Recompile the MySQL binaries for yourself. (Recommended)
b) Try to modify the linker flags, that mysqlconfig gives to you,
for example, by removing this -Wl,-E. The output of "perl
Makefile.PL" should tell you, what options you have now,
so that a modified "--libs", or "--cflags" option for "perl
Makefile.PL" should be created easily.

Jochen

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Help - error during "make" for DBD

am 11.05.2005 03:38:27 von Jacqueline Lee

--0-35935244-1115775507=:72089
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

Would you be able to teach me the exact commands to do it as I'm new to perl?

Thanks

regards
jac

Jochen Wiedmann wrote:
Jacqueline Lee wrote:

> /usr/ccs/bin/ld: illegal option -- E

My guess is, that you are using a build of MySQL, which is compiled by
another source. If so, you have two options:

a) Recompile the MySQL binaries for yourself. (Recommended)
b) Try to modify the linker flags, that mysqlconfig gives to you,
for example, by removing this -Wl,-E. The output of "perl
Makefile.PL" should tell you, what options you have now,
so that a modified "--libs", or "--cflags" option for "perl
Makefile.PL" should be created easily.

Jochen

Yahoo! Messenger
- Log on with your mobile phone!
--0-35935244-1115775507=:72089--

Re: Help - error during "make" for DBD

am 11.05.2005 04:02:35 von Jochen Wiedmann

Jacqueline Lee wrote:

> Would you be able to teach me the exact commands to do it as I'm new to
> perl?

Would you be able to let me see the output of "perl Makefile.PL", as I'm
new to your environment? :-)

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Help - error during "make" for DBD

am 11.05.2005 04:04:26 von david.logan

Hi Jacqueline,

The linker is expecting you to use the GNU ld command. You are using the
ld found in /usr/ccs/bin, eg. the standard solaris one. It looks like
you should have it installed already as you are using gcc and it
normally comes in that package. Check to see that you have an ld command
in /usr/local/bin (or similar) and ensure your path is set correctly to
pick that one up first.

-E is an option that is found in the gnu version of ld.

Regards

David Logan
Database Administrator
HP Managed Services
148 Frome Street,
Adelaide 5000
Australia

+61 8 8408 4273 - Work
+61 417 268 665 - Mobile
+61 8 8408 4259 - Fax


-----Original Message-----
From: Jacqueline Lee [mailto:leewh_jac@yahoo.com]=20
Sent: Wednesday, 11 May 2005 10:54 AM
To: perl@lists.mysql.com
Subject: Help - error during "make" for DBD

Hi,
=20
I need help. I always encounter this error when I execute the "make"
command to install the DBD-mysql-2.9007. Can someone please tell me
what to do?
=20
# make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI
-I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"2.9007\"
-DXS_VERSION=3D\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE"
dbdimp.c
/opt/iw-home/iw-perl/bin/perl -p -e "s/~DRIVER~/mysql/g"
/opt/iw-home/iw-perl/vendor/lib/auto/DBI/Driver.xst > mysql.xsi
/opt/iw-home/iw-perl/bin/perl /opt/iw-home/iw-perl/lib/ExtUtils/xsubpp
-typemap /opt/iw-home/iw-perl/lib/ExtUtils/typemap mysql.xs > mysql.xsc
&& mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line
196
Warning: duplicate function definition 'rows' detected in mysql.xs, line
294
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI
-I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"2.9007\"
-DXS_VERSION=3D\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE"
mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH=3D"/usr/lib" /opt/iw-home/iw-perl/bin/perl myld gcc -Wl,-E =
-G
-L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/local/mysql/lib -lmysqlclient -lcrypt -lgen -lsocket -lnsl -lm
/usr/ccs/bin/ld: illegal option -- E
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct] specify `direct' bindings for executable when
run
[-B dynamic | static]
search for shared libraries|archives
[-B eliminate] eliminate unqualified global symbols from the
symbol table
[-B group] relocate object from within group
[-B local] reduce unqualified global symbols to local
[-B reduce] process symbol reductions
[-B symbolic] bind external references to definitions when
creating
shared objects
[-c name] record configuration file `name'
[-C] demangle C++ symbol name diagnostics
[-d y | n] operate in dynamic|static mode
[-D token,...] print diagnostic messages
[-e epsym] use `epsym' as entry point address
[-f name] specify library for which this file is an
auxiliary
filter
[-F name] specify library for which this file is a filter
[-G] create a shared object
[-h name] use `name' as internal shared object identifier
[-i] ignore LD_LIBRARY_PATH setting
[-I name] use `name' as path of interpreter
[-l x] search for libx.so or libx.a
[-L path] search for libraries in directory `path'
[-m] print memory map
[-M mapfile] use processing directives contained in `mapfile'
[-N string] create a dynamic dependency for `string'
[-o outfile] name the output file `outfile'
[-p auditlib] identify audit library to accompany this object
[-P auditlib] identify audit library for processing the
dependencies
of this object
[-Q y | n] do|do not place version information in output
file
[-r] create a relocatable object
[-R path] specify a library search path to be used at run
time
[-s] strip any symbol and debugging information
[-S supportlib]
specify a link-edit support library
[-t] do not warn of multiply-defined symbols that
have
different sizes or alignments
[-u symname] create an undefined symbol `symname'
[-V] print version information
[-Y P,dirlist] use `dirlist' as a default path when searching
for
libraries
[-z absexec] when building an executable absolute symbols
referenced in dynamic objects are promoted to
the executable
[-z allextract | defaultextract | weakextract]
extract all member files, only members that
resolve
undefined tor tentative symbols, or allow
extraction of
archive members to resolvetweak references from
archive files
[-z combreloc] combine multiple relocation sections
[-z nocompstrtab]
disable compression of string tables
[-z defs] disallow undefined symbol references
[-z direct | nodirect]
enable|disable direct binding to shared object
dependencies
[-z endfiltee] marks a filtee such that it will terminate a
filters
search
[-z finiarray=3Dfunction]
name of function to be appended to the
..finiarray
[-z groupperm | nogroupperm]
enable|disable setting of group permissions
on dynamic dependencies
[-z ignore | record]
ignore|record unused dynamic dependencies
[-z initarray=3Dfunction]
name of function to be appended to the
..initarray
[-z initfirst] mark object to indicate that its .init section
should
be executed before the .init section of any
other
objects
[-z interpose] dynamic object is to be an `interposer' on
direct
bindings
[-z lazyload | nolazyload]
enable|disable delayed loading of shared object
dependencies
[-z ld32=3Darg1,arg2,...]
define arguments applicable to the 32-bit class
of ld(1)
[-z ld64=3Darg1,arg2,...]
define arguments applicable to the 64-bit class
of ld(1)
[-z loadfltr] mark filter as requiring immediate loading of
its
filtees at runtime
[-z muldefs] allow multiply-defined symbols
[-z nodefs] allow undefined symbol references
[-z nodefaultlib]
mark object to ignore any default library search
path
[-z nodelete] mark object as non-deletable
[-z nodlopen] mark object as non-dlopen()'able
[-z nodump] mark object as non-dldump()'able
[-z nopartial] expand any partially initialized symbols
[-z noversion] don't record any version sections
[-z now] mark object as requiring non-lazy binding
[-z origin] mark object as requiring $ORIGIN processing
[-z preinitarray=3Dfunction]
name of function to be appended to the
..preinitarray
[-z redlocsym] reduce local syms in .symtab to a minimum
[-z rescan] rescan archive list until no further member
extraction occurs
[-z text] disallow output relocations against text
[-z textoff] allow output relocations against text
[-z textwarn] warn if there are relocations against text
[-z verbose] generate warnings for suspicious processings
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/mysql/mysql.so'

=20
thanks
=20
regards
jac

Yahoo! Messenger
- Log on with your mobile phone!

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules @m.gmane.org

Re: Help - error during "make" for DBD

am 11.05.2005 04:19:02 von Jacqueline Lee

--0-1141640306-1115777942=:84073
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

Here is the output of the "/opt/iw-home/iw-perl/bin/perl Makefile.PL" results and below is what I have in the compiled directory.

/opt/iw-home/iw-perl/DBD-mysql-2.9007 # /opt/iw-home/iw-perl/bin/perl Makefile.PL
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I'/usr/local/mysql/include'
libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient -lcrypt -lgen -lsocket -lnsl -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Using DBI 1.38 installed in /opt/iw-home/iw-perl/vendor/lib/auto/DBI
Writing Makefile for DBD::mysql

/opt/iw-home/iw-perl/DBD-mysql-2.9007 # ls
blib dbdimp.c INSTALL.html Makefile.PL META.yml mysql.c mysql.xsi t
ChangeLog dbdimp.h lib MANIFEST myld mysql.o pm_to_blib TODO
constants.h dbdimp.o Makefile MANIFEST.SKIP mysql.bs mysql.xs README

thanks

regards
jac
Jochen Wiedmann wrote:
Jacqueline Lee wrote:

> Would you be able to teach me the exact commands to do it as I'm new to
> perl?

Would you be able to let me see the output of "perl Makefile.PL", as I'm
new to your environment? :-)

Yahoo! Messenger
- Log on with your mobile phone!
--0-1141640306-1115777942=:84073--

RE: Help - error during "make" for DBD

am 11.05.2005 04:32:19 von Jacqueline Lee

--0-345801831-1115778739=:52387
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hi,

I do not have an ld command in anywhere except in the usr/ccs/bin directory.
what should I do next?

regards
jac

"Logan, David (SST - Adelaide)" wrote:
Hi Jacqueline,

The linker is expecting you to use the GNU ld command. You are using the
ld found in /usr/ccs/bin, eg. the standard solaris one. It looks like
you should have it installed already as you are using gcc and it
normally comes in that package. Check to see that you have an ld command
in /usr/local/bin (or similar) and ensure your path is set correctly to
pick that one up first.

-E is an option that is found in the gnu version of ld.

Regards

David Logan
Database Administrator
HP Managed Services
148 Frome Street,
Adelaide 5000
Australia

+61 8 8408 4273 - Work
+61 417 268 665 - Mobile
+61 8 8408 4259 - Fax


-----Original Message-----
From: Jacqueline Lee [mailto:leewh_jac@yahoo.com]
Sent: Wednesday, 11 May 2005 10:54 AM
To: perl@lists.mysql.com
Subject: Help - error during "make" for DBD

Hi,

I need help. I always encounter this error when I execute the "make"
command to install the DBD-mysql-2.9007. Can someone please tell me
what to do?

# make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI
-I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9007\"
-DXS_VERSION=\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE"
dbdimp.c
/opt/iw-home/iw-perl/bin/perl -p -e "s/~DRIVER~/mysql/g"
/opt/iw-home/iw-perl/vendor/lib/auto/DBI/Driver.xst > mysql.xsi
/opt/iw-home/iw-perl/bin/perl /opt/iw-home/iw-perl/lib/ExtUtils/xsubpp
-typemap /opt/iw-home/iw-perl/lib/ExtUtils/typemap mysql.xs > mysql.xsc
&& mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line
196
Warning: duplicate function definition 'rows' detected in mysql.xs, line
294
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI
-I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9007\"
-DXS_VERSION=\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE"
mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib" /opt/iw-home/iw-perl/bin/perl myld gcc -Wl,-E -G
-L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/local/mysql/lib -lmysqlclient -lcrypt -lgen -lsocket -lnsl -lm
/usr/ccs/bin/ld: illegal option -- E
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct] specify `direct' bindings for executable when
run
[-B dynamic | static]
search for shared libraries|archives
[-B eliminate] eliminate unqualified global symbols from the
symbol table
[-B group] relocate object from within group
[-B local] reduce unqualified global symbols to local
[-B reduce] process symbol reductions
[-B symbolic] bind external references to definitions when
creating
shared objects
[-c name] record configuration file `name'
[-C] demangle C++ symbol name diagnostics
[-d y | n] operate in dynamic|static mode
[-D token,...] print diagnostic messages
[-e epsym] use `epsym' as entry point address
[-f name] specify library for which this file is an
auxiliary
filter
[-F name] specify library for which this file is a filter
[-G] create a shared object
[-h name] use `name' as internal shared object identifier
[-i] ignore LD_LIBRARY_PATH setting
[-I name] use `name' as path of interpreter
[-l x] search for libx.so or libx.a
[-L path] search for libraries in directory `path'
[-m] print memory map
[-M mapfile] use processing directives contained in `mapfile'
[-N string] create a dynamic dependency for `string'
[-o outfile] name the output file `outfile'
[-p auditlib] identify audit library to accompany this object
[-P auditlib] identify audit library for processing the
dependencies
of this object
[-Q y | n] do|do not place version information in output
file
[-r] create a relocatable object
[-R path] specify a library search path to be used at run
time
[-s] strip any symbol and debugging information
[-S supportlib]
specify a link-edit support library
[-t] do not warn of multiply-defined symbols that
have
different sizes or alignments
[-u symname] create an undefined symbol `symname'
[-V] print version information
[-Y P,dirlist] use `dirlist' as a default path when searching
for
libraries
[-z absexec] when building an executable absolute symbols
referenced in dynamic objects are promoted to
the executable
[-z allextract | defaultextract | weakextract]
extract all member files, only members that
resolve
undefined tor tentative symbols, or allow
extraction of
archive members to resolvetweak references from
archive files
[-z combreloc] combine multiple relocation sections
[-z nocompstrtab]
disable compression of string tables
[-z defs] disallow undefined symbol references
[-z direct | nodirect]
enable|disable direct binding to shared object
dependencies
[-z endfiltee] marks a filtee such that it will terminate a
filters
search
[-z finiarray=function]
name of function to be appended to the
..finiarray
[-z groupperm | nogroupperm]
enable|disable setting of group permissions
on dynamic dependencies
[-z ignore | record]
ignore|record unused dynamic dependencies
[-z initarray=function]
name of function to be appended to the
..initarray
[-z initfirst] mark object to indicate that its .init section
should
be executed before the .init section of any
other
objects
[-z interpose] dynamic object is to be an `interposer' on
direct
bindings
[-z lazyload | nolazyload]
enable|disable delayed loading of shared object
dependencies
[-z ld32=arg1,arg2,...]
define arguments applicable to the 32-bit class
of ld(1)
[-z ld64=arg1,arg2,...]
define arguments applicable to the 64-bit class
of ld(1)
[-z loadfltr] mark filter as requiring immediate loading of
its
filtees at runtime
[-z muldefs] allow multiply-defined symbols
[-z nodefs] allow undefined symbol references
[-z nodefaultlib]
mark object to ignore any default library search
path
[-z nodelete] mark object as non-deletable
[-z nodlopen] mark object as non-dlopen()'able
[-z nodump] mark object as non-dldump()'able
[-z nopartial] expand any partially initialized symbols
[-z noversion] don't record any version sections
[-z now] mark object as requiring non-lazy binding
[-z origin] mark object as requiring $ORIGIN processing
[-z preinitarray=function]
name of function to be appended to the
..preinitarray
[-z redlocsym] reduce local syms in .symtab to a minimum
[-z rescan] rescan archive list until no further member
extraction occurs
[-z text] disallow output relocations against text
[-z textoff] allow output relocations against text
[-z textwarn] warn if there are relocations against text
[-z verbose] generate warnings for suspicious processings
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/mysql/mysql.so'


thanks

regards
jac

Yahoo! Messenger
- Log on with your mobile phone!

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=leewh_jac@yahoo.com


Yahoo! Messenger
- Log on with your mobile phone!
--0-345801831-1115778739=:52387--

Re: Help - error during "make" for DBD

am 11.05.2005 04:49:07 von Jochen Wiedmann

Jacqueline Lee wrote:

> I will use the following settings for compiling and testing:
> cflags (mysql_config) = -I'/usr/local/mysql/include'
> libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient
> -lcrypt -lgen -lsocket -lnsl -lm

Ok, taking back my own words: Neither the "cflags" nor the "libs" do
contain the "-Wl,-E" flag. So we end up with the following:

You are using a Perl binary, which is built from an external source.
Recompile Perl for yourself, and that particular problem should be gone
immediately. (Possibly other problems will arise, if your MySQL comes
from an external source as well. That will require building MySQL too.)
See the Perl installation guide for how to build from the sources, but
generally it should be as easy as extracting the sources and running the
Configure script, followed by "make", "make test", and "make install".


Jochen

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Help - error during "make" for DBD

am 11.05.2005 05:11:14 von david.logan

------_=_NextPart_001_01C555D7.17721A72
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Jacqueline,
=20
You can get the gcc package already built for solaris (several versions,
I am using version 3.3.2) from http://www.sunfreeware.com This should
put all the software you need into /usr/local/bin. You can download the
package and use pkgadd to install it.
=20
hambone ~/src/gcc-build $ gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/specs
Configured with: ../configure --with-as=3D/usr/ccs/bin/as
--with-ld=3D/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2

The with-ld and with-as are for the build of gcc, they are telling the
system where to find the assembler and linker during the build. This is
already done for you and the pkgadd -d and unzipped the package> will install binaries that are ready to run.
All details are on the sunfreeware website.
=20
Regards
=20
David Logan=20
Database Administrator=20
HP Managed Services=20
148 Frome Street,=20
Adelaide 5000=20
Australia=20

+61 8 8408 4273 - Work=20
+61 417 268 665 - Mobile=20
+61 8 8408 4259 - Fax=20

=20

________________________________

From: Jacqueline Lee [mailto:leewh_jac@yahoo.com]=20
Sent: Wednesday, 11 May 2005 12:02 PM
To: Logan, David (SST - Adelaide); perl@lists.mysql.com
Subject: RE: Help - error during "make" for DBD


hi,
=20
I do not have an ld command in anywhere except in the usr/ccs/bin
directory.
what should I do next?
=20
regards
jac

"Logan, David (SST - Adelaide)" wrote:

Hi Jacqueline,
=09
The linker is expecting you to use the GNU ld command. You are
using the
ld found in /usr/ccs/bin, eg. the standard solaris one. It looks
like
you should have it installed already as you are using gcc and it
normally comes in that package. Check to see that you have an ld
command
in /usr/local/bin (or similar) and ensure your path is set
correctly to
pick that one up first.
=09
-E is an option that is found in the gnu version of ld.
=09
Regards
=09
David Logan
Database Administrator
HP Managed Services
148 Frome Street,
Adelaide 5000
Australia
=09
+61 8 8408 4273 - Work
+61 417 268 665 - Mobile
+61 8 8408 4259 - Fax
=09
=09
-----Original Message-----
From: Jacqueline Lee [mailto:leewh_jac@yahoo.com]=20
Sent: Wednesday, 11 May 2005 10:54 AM
To: perl@lists.mysql.com
Subject: Help - error during "m ake" for DBD
=09
Hi,
=09
I need help. I always encounter this error when I execute the
"make"
command to install the DBD-mysql-2.9007. Can someone please tell
me
what to do?
=09
# make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI
-I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"2.9007\"
-DXS_VERSION=3D\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE"
dbdimp.c
/opt/iw-home/iw-perl/bin/perl -p -e "s/~DRIVER~/mysql/g"
/opt/iw-home/iw-perl/vendor/lib/auto/DBI/Driver.xst > mysql.xsi
/opt/iw-home/iw-perl/bin/perl
/opt/iw-home/iw-perl/lib/ExtUtils/xsubpp
-typemap /opt/iw-home/iw-perl/lib/ExtUtils/typemap mysql.xs >
mysql.xsc
&& mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in
mysql.xs, line
196
Warning: duplicate function definition 'rows' detected in
mysql.xs, line
294
gcc -c -I/opt/iw-home/iw-perl/vendor/lib/auto/DBI
-I'/usr/local/mysql/include' -g -DUSE_HAS_SEED_EXPLICIT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"2.9007\"
-DXS_VERSION=3D\"2.9007\" -fPIC "-I/opt/iw-home/iw-perl/lib/CORE"
mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH=3D"/usr/lib" /opt/iw-home/iw-perl/bin/perl myld gcc
-Wl,-E -G
-L/usr/local/lib dbdimp.o mysql.o -o
blib/arch/auto/DBD/mysql/mysql.so
-L/usr/local/mysql/lib -lmysqlclient -lcrypt -lgen -lsocket
-lnsl -lm
/usr/ccs/bin/ld: illegal option -- E
usage: ld
[-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct] specify `direct' bindings for executable when
run
[-B dynamic | static]
search for shared libraries|archives
[-B eliminate] eliminate unqualified global symbols from the
symbol table
[-B group] relocate object from within group
[-B local] reduce unqualified global symbols to local
[-B reduce] process symbol reductions
[-B symbolic] bind external references to definitions when
creating
shared objects
[-c name] record configuration file `name'
[-C] demangle C++ symbol name diagnostics
[-d y | n] operate in dynamic|static mode
[-D token,...] print diagnostic messages
[-e epsym] use `epsym' as entry point address
[-f name] specify library for which this file is an
auxiliary
filter
[-F name] specify libr ary for which this file is a filter
[-G] create a shared object
[-h name] use `name' as internal shared object identifier
[-i] ignore LD_LIBRARY_PATH setting
[-I name] use `name' as path of interpreter
[-l x] search for libx.so or libx.a
[-L path] search for libraries in directory `path'
[-m] print memory map
[-M mapfile] use processing directives contained in `mapfile'
[-N string] create a dynamic dependency for `string'
[-o outfile] name the output file `outfile'
[-p auditlib] identify audit library to accompany this object
[-P auditlib] identify audit library for processing the
dependencies
of this object
[-Q y | n] do|do not place version information in output
file
[-r] create a relocatable object
[-R path] specify a library search path to be used at run
time
[-s] strip any symbol and debugging information
[-S supportlib]
specify a link-edit support library
[-t] do not warn of multiply-defined symbols that
have
different sizes or alignments
[-u symname] create an undefined symbol `symname'
[-V] print version information
[-Y P,dirlist] use `dirlist' as a default path when searching
for
libraries
[-z absexec] when building an executable absolute symbols
referenced in dynamic objects are promoted to
the executable
[-z allextract | defaultextract | weakextract]
extract all member files, only members that
resolve
undefined tor tentative symbols, or allow
extraction of
archive members to resolvetweak references from
archive files
[-z combreloc] combine multiple relocation sections
[-z nocompstrtab]
disable compression of string tables
[-z defs] disallow undefined symbol references
[-z direct | nodirect]
enable|disable direct binding to shared object
dependencies
[-z endfiltee] marks a filtee such that it will terminate a
filters
search
[-z finiarray=3Dfunction]
name of function to be appended t o the
.finiarray
[-z groupperm | nogroupperm]
enable|disable setting of group permissions
on dynamic dependencies
[-z ignore | record]
ignore|record unused dynamic dependencies
[-z initarray=3Dfunction]
name of function to be appended to the
.initarray
[-z initfirst] mark object to indicate that its .init section
should
be executed before the .init section of any
other
objects
[-z interpose] dynamic object is to be an `interposer' on
direct
bindings
[-z lazyload | nolazyload]
enable|disable delayed loading of shared object
dependencies
[-z ld32=3Darg1,arg2,...]
define arguments applicable to the 32-bit class
of ld(1)
[-z ld64=3Darg1,arg2,...]
define arguments applicable to the 64-bit class
of ld(1)
[-z loadfltr] mark filter as requiring immediate loading of
its
filtees at runtime
[-z muldefs] allow multiply-defined symbols
[-z nodefs] allow undefined symbol references
[-z nodefaultlib]
mark object to ignore any default library search
path
[-z nodelete] mark object as non-deletable
[-z nodlopen] mark object as non-dlopen()'able
[-z nodump] mark object as non-dldump()'able
[-z nopartial] expand any partially initialized symbols
[-z noversion] don't record any version sections
[-z now] mark object as requiring non-lazy binding
[-z origin] mark object as requiring $ORIGIN processing
[-z preinitarray=3Dfunction]
name of function to be appended to the
.preinitarray
[-z redlocsym] reduce local syms in .symtab to a minimum
[-z rescan] rescan archive list until no further member
extraction occurs
[-z text] disallow output relocations against text
[-z textoff] allow output relocations against text
[-z textwarn] warn if there are relocations against text
[-z verbose] generate warnings for suspicious processings
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/mysql/mysql.so'
=09
=09
thanks
=09
regards
jac
=09
Yahoo! Messenger
- Log on with your mobile phone!
=09
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:
http://lists.mysql.com/perl?unsub=3Dleewh_jac@yahoo.com
=09
=09

Yahoo! Messenger
=20
- Log on with your mobile
phone!


------_=_NextPart_001_01C555D7.17721A72--