compiling opensees1.5.2

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
cenk tort
Posts: 21
Joined: Mon Aug 16, 2004 11:30 am
Location: miteng
Contact:

compiling opensees1.5.2

Post by cenk tort » Wed Aug 18, 2004 7:47 pm

Hello,

I am trying to build OpenSees 1.5.2 on Linux Redhat distribution. I updated tcl/tk 8.3 to 8.4.7 and run the Makefile. But I have the following message:

/usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0x25): In function `my_malloc':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0xb5): In function `my_memdup':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0x18d): In function `my_strdup':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_realloc.o)(.text+0x55): In function `my_realloc':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_getwd.o)(.text+0x36): In function `my_getwd':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_getwd.o)(.text+0xb2): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/tort/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2


does anybody have an idea what I am missing ?

thanks.
Cenk Tort
Department of Civil Engineering
University of Minnesota

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk » Fri Aug 20, 2004 3:00 pm

looks like the problem is mysql .. suggest you go get the latest stable version of mysql ..
place it in /usr/local/mysql .. and compile and link using the new mysql include and lib
files.

cenk tort
Posts: 21
Joined: Mon Aug 16, 2004 11:30 am
Location: miteng
Contact:

MySQL

Post by cenk tort » Sun Aug 22, 2004 1:37 pm

It worked when I updated MySQL-3.22.32 with MySQL-3.23.58-1. Here is the list of rpms that I installed:

MySQL-3.23.58-1.i386.rpm
MySQL-devel-3.23.58-1.i386.rpm
MySQL-client-3.23.58-1.i386.rpm



Thanks,
Cenk
Cenk Tort
Department of Civil Engineering
University of Minnesota

Post Reply