Bug 82701

Summary: Cannot install mysql41-server port
Product: Ports & Packages Reporter: icedeno <icedeno>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description icedeno@gmail.com 2005-06-27 19:20:16 UTC
            When installing the port the compilation dies on

/var/tmp//ccGsn3N0.o: In function `thr_alarm':
/var/tmp//ccGsn3N0.o(.text+0x333): undefined reference to `pthread_equal'
...

Fix: 

no soultion known
How-To-Repeat:             Install the port as WITH_LINUXTHREADS=no.
Comment 1 Vasil Dimov 2005-06-28 16:04:36 UTC
On Mon, Jun 27, 2005 at 06:12:15PM +0000, icedeno@gmail.com wrote:
> 
> FreeBSD path.cpmc.columbia.edu 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386
> 
> >Description:
>             When installing the port the compilation dies on
> 
> /var/tmp//ccGsn3N0.o: In function `thr_alarm':
> /var/tmp//ccGsn3N0.o(.text+0x333): undefined reference to `pthread_equal'
> ...
> >How-To-Repeat:
>             Install the port as WITH_LINUXTHREADS=no.

Builds without problems on 5.4, maybe you shoud try to upgrade to the
latest 5.x? 5.2.1-RELEASE is not officially supported.

What do you mean by WITH_LINUXTHREADS=no? Do you know that it is the
same as WITH_LINUXTHREADS=yes?
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2005-06-29 21:41:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale


Assign to maintainer.
Comment 3 eyecue 2005-08-01 08:27:48 UTC
- Build also fails in mysql40-server post
   - FreeBSD 5.2.1-RELEASE
   - Upgrade from 4.0.20
   - mysql40-client builds successfully

- Builds successfully on FreeBSD 4.11
  - Upgrade from  4.0.23

- Build failed with `portupgrade -Rf mysql-server
- Build failed with `make clean && make
Comment 4 eyecue 2005-08-01 08:30:34 UTC
cc -DDBUG_OFF -O -pipe -mcpu=3Dpentiumpro -D_THREAD_SAFE -o
test_thr_alarm -DDEFAULT_BASEDIR=3D\"/usr/local\"
-DDATADIR=3D\"/var/db/mysql\" -DDEFAULT_CHARSET_HOME=3D\"/usr/local\"
-DSHAREDIR=3D\"/usr/local/share/mysql\" -DHAVE_CONFIG_H -I./../include
-I../include -I.. -I. -DDBUG_OFF -O -pipe -mcpu=3Dpentiumpro
-D_THREAD_SAFE -DMAIN ./test_thr_alarm.c  libmysys.a ../dbug/libdbug.a
../strings/libmystrings.a -lz -lcrypt -lm
#
/var/tmp//ccx26PLg.o: In function `thr_alarm':
#
/var/tmp//ccx26PLg.o(.text+0x333): undefined reference to `pthread_equal'
#
/var/tmp//ccx26PLg.o(.text+0x356): undefined reference to `pthread_kill'
#
/var/tmp//ccx26PLg.o: In function `process_alarm_part2':
#
/var/tmp//ccx26PLg.o(.text+0x570): undefined reference to `pthread_equal'
#
/var/tmp//ccx26PLg.o(.text+0x587): undefined reference to `pthread_kill'
#
/var/tmp//ccx26PLg.o(.text+0x627): undefined reference to `pthread_equal'
#
/var/tmp//ccx26PLg.o(.text+0x63e): undefined reference to `pthread_kill'
#
/var/tmp//ccx26PLg.o: In function `end_thr_alarm':
#
/var/tmp//ccx26PLg.o(.text+0x72f): undefined reference to `pthread_equal'
#
/var/tmp//ccx26PLg.o(.text+0x756): undefined reference to `pthread_kill'
#
/var/tmp//ccx26PLg.o(.text+0x7b4): undefined reference to
`pthread_cond_timedwait'
#
/var/tmp//ccx26PLg.o: In function `thr_alarm_kill':
#
/var/tmp//ccx26PLg.o(.text+0x884): undefined reference to `pthread_equal'
#
/var/tmp//ccx26PLg.o(.text+0x8c3): undefined reference to `pthread_kill'
#
/var/tmp//ccx26PLg.o: In function `main':
#
/var/tmp//ccx26PLg.o(.text+0x10a0): undefined reference to `pthread_attr_in=
it'
#
/var/tmp//ccx26PLg.o(.text+0x10b3): undefined reference to
`pthread_attr_setscope'
#
/var/tmp//ccx26PLg.o(.text+0x10c6): undefined reference to
`pthread_attr_setdetachstate'
#
/var/tmp//ccx26PLg.o(.text+0x10d9): undefined reference to
`pthread_attr_setstacksize'
#
/var/tmp//ccx26PLg.o(.text+0x1107): undefined reference to `pthread_create'
#
/var/tmp//ccx26PLg.o(.text+0x1146): undefined reference to
`pthread_attr_setscope'
#
/var/tmp//ccx26PLg.o(.text+0x11a6): undefined reference to `pthread_create'
#
/var/tmp//ccx26PLg.o(.text+0x11ef): undefined reference to
`pthread_attr_destroy'
#
libmysys.a(my_pthread.o): In function `my_pthread_getprio':
#
my_pthread.o(.text+0x1b): undefined reference to `pthread_getschedparam'
#
libmysys.a(my_pthread.o): In function `my_pthread_attr_setprio':
#
my_pthread.o(.text+0x4a): undefined reference to `pthread_attr_setschedpara=
m'
#
*** Error code 1
#
=20
#
Stop in /usr/ports/databases/mysql40-server/work/mysql-4.0.25/mysys.
#
*** Error code 1
#
=20
#
Stop in /usr/ports/databases/mysql40-server/work/mysql-4.0.25.
#
*** Error code 1
#
=20
#
Stop in /usr/ports/databases/mysql40-server/work/mysql-4.0.25.
#
*** Error code 1
#
=20
#
Stop in /usr/ports/databases/mysql40-server.
#
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade31804.2 make
#
** Fix the problem and try again.
#
** Listing the failed packages (*:skipped / !:failed)
#
        ! databases/mysql40-server (mysql-server-4.0.20)        (linker err=
or)
Comment 5 matt 2005-09-06 12:18:21 UTC
I had the EXACT same problem which seems to have been caused by a
problem with the latest versions of the devel/libtool15 port (Sept 02
check-in in my case).  I also found mysql40-server to not make either!
make-ing mysql40-client and mysql41-client proceeded without incident
however.

So to solve this, I installed the portdowngrade port, and downgraded
devel/libtool15 to the 12 Apr 2005 03:26:57 check-in, per the advice of
this guy:
http://groups.google.com/group/muc.lists.freebsd.ports/browse_thread/thread/41f0fd46665450a5/

Then I re-tried make-ing mysql41-server, and found success.  After make
install-ing, it is now running as smooth as ever.
Comment 6 Alex Dupre freebsd_committer freebsd_triage 2005-09-07 13:06:54 UTC
State Changed
From-To: open->closed

Unsupported FreeBSD version.