On Sat, Feb 14, 2004, Julien TOUCHE wrote:

> i try to add an openssl option to mysql-4 (current) with the attached
> patch but get the following:
>
> /home/www-test/local/bin/cc
> -DDEFAULT_CHARSET_HOME=\"/home/www-test/local\"
> -DDATADIR=\"/home/www-test/local/var/mysql\"
> -DSHAREDIR=\"/home/www-test/local/share/mysql\" -DDONT_USE_RAID -I. -I.
> -I.. -I./../include -I../include -I./.. -I.. -I..
> /home/www-test/local/include/openssl -O3 -DDBUG_OFF -O2 -pipe
^^^^^^^^^^^^^^^^

Well, here is the problem. There is no -I in front of this argument,
so the compiler things it is a compilation object.

> -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -c libmysql.c -MT libmysql.lo -MD
> -MP -MF .deps/libmysql.TPlo -o libmysql.o
> cc: cannot specify -o with -c or -S and multiple compilations
> make[2]: *** [libmysql.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> error: Bad exit status from /home/www-test/local/RPM/TMP/rpm-tmp.19649
> (%build)
>
> without it compiles fine & there is nothing else modified.
>

> --- mysql.spec.orig   2004-02-14 16:05:57.169637895 +0100
> +++ mysql.spec        2004-02-14 16:25:36.910084270 +0100
> @@ -45,6 +45,7 @@
>  #   package options
>  %option       with_bdb       yes
>  %option       with_innodb    no
> +%option       with_openssl   no

Use the generic with_ssl, please. We recently renamed all similar
options to with_ssl.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to