Source rpm vs Compileing from source

Could someone explain to me the difference between a source RPM and compileing something straight from the source? Whats the difference? How would you use a source RPM? I am wanting to install MySQL with certian options but when I configure it useing this:

Code:
CFLAGS="-03"
CXX=gcc
CXXFLAGS="-03 \
-mpentiumpro
-mstack-align-double \
-felide-constructors \
-fno-exceptions -fno-rtti"

./configure \
--prefix=/usr/local/mysql \
--withextra-charsets=complex \
--enable-thread-safe-client \
--enable-local-infile \
--enable-assembler \
--disable-shared \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static
The PHP source compile will error out with odd errors cause by not being able to use some type of MySQL library.

Code:
/usr/bin/ld: /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against 
`a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o): could not read symbols: Bad value

 

 

 

 

Top