Mailinglist Archive: opensuse-buildservice (250 mails)

< Previous Next >
Re: [opensuse-buildservice] BuildRequires: libmysqlclient-devel on Fedora?

Dne Mon, 6 Apr 2009 12:39:31 -0400
Greg Freemyer <greg.freemyer@xxxxxxxxx> napsal(a):

Thanks, that helps a lot, but I'm still confused. It now works for
32-bit Fedora 9 and 10, but fails for a 64bit compile.

I reviewed your spec file as well as

Nijel's project in particular shows it successfully builds for 64-bit.

Well Nijel is me ;-).

I don't see either of those spec files treating Fedora 32-bit and
64-bit differently.

For the 64-bit compile I get:
gcc -Wall -O3 -DVERSION=\"1.11\" -o mysql2300 mysql2300.c rw2300.c
linux2300.c -lm -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [mysql2300] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.75188 (%build)

You have wrong path to -L, it should contain lib64...

Michal Čihař | |
< Previous Next >