Jeff
root# perl Makefile.PL I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -O3 -fno-omit-frame-pointer -arch ppc
libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -lm
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'.
Using DBI 1.45 (for perl 5.008001 on darwin-thread-multi-2level) installed in /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::mysql
root# make -f Makefile
cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI/ -I/usr/include/mysql -O3 -fno-omit-frame-pointer -arch ppc -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.9004\" -DXS_VERSION=\"2.9004\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" dbdimp.c
In file included from dbdimp.c:19:
dbdimp.h:21:49: mysql.h: No such file or directory
dbdimp.h:22:49: errmsg.h: No such file or directory
In file included from dbdimp.c:19:
dbdimp.h:106: error: parse error before "MYSQL"
dbdimp.h:106: warning: no semicolon at end of struct or union
dbdimp.h:117: error: parse error before '}' token
dbdimp.h:146: error: parse error before "MYSQL_RES"
.
.
.
On Nov 19, 2004, at 9:41 AM, Rudy Lippan wrote:
On Thu, 18 Nov 2004, Jeff Malloy wrote:
Here the output from the 'perl Makefile.PL' and 'make Makefile'
root# perl Makefile.PL I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -O3 -fno-omit-frame-pointer -arch i386 -arch ppc -pipe libs (mysql_config) = -arch i386 -arch ppc -pipe
That does not look right. why is mysql_config telling you that you are '-arch
i386 -arch ppc'? And then why do you have that in your libs statement? What you
probably want is just to have -arch ppc in you cflags, and none of the
arch/pipe stuff in your libs.
Now, I have no idea how/why that is happening for/to you, but you can either
specify your libs/cflags on the command line when you call Makefile.PL or you
can hack the generated Makefile befrore running make.
Rudy
