compiling mysql-4.1.14 with gcc3.4.3 on HP-UX 11.11
Posted by:
kirk kirk
Date: September 19, 2005 03:33AM
I was attempting to compile mysql-4.1.14 on an HP-UX 11.11 machine and got such error info:
/usr/ccs/bin/ld: Unrecognized argument: +init
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files
collect2: ld returned 1 exit status
error occurred when object files were linked to generate mysqld.
/usr/ccs/bin/ld was from hp, not a gnu ld, as ./configure output showed:
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
I downloaded gcc3.4.3 and binutils_2.15a from hp, in which no gnu ld included.
And seemed gcc was configed to use /usr/ccs/bin/ld.
Gnu ld knows +init options, /usr/ccs/bin/ld don't.
Since already knew /usr/ccs/bin/ld not a gnu ld by running configure, why +init option used?
I used these settings for ./configure:
$CFLAGS="-fomit-frame-pointer -O3 -fPIC"
$CXX=gcc
$CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -O3 -fPIC"
$./configure --prefix=/usr/local/mysql --with-low-memory --enable-thread-safe-client --enable-local-infile --with-pthread --with-lib-ccflags=-fPIC --disable-shared
Info about /usr/ccs/bin/ld:
# what /usr/ccs/bin/ld
/usr/ccs/bin/ld:
HP aC++ B3910B A.03.25 Classic Iostream Library
HP aC++ B3910B A.03.25 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.18 REL 000922
Any help appreciated!
Edited 1 time(s). Last edit at 09/19/2005 03:44AM by kirk kirk.
Subject
Views
Written By
Posted
compiling mysql-4.1.14 with gcc3.4.3 on HP-UX 11.11
4060
September 19, 2005 03:33AM
2598
September 19, 2005 09:49PM
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.