bugJailkit - Bugs: bug #37695, cannot compile jailkit-2.15 on...

 
 

bug #37695: cannot compile jailkit-2.15 on fedora 17 32-bit - undefined reference to `pthread_create'

Submitter:  Francesco <francesco009>
Submitted:  Thu 08 Nov 2012 09:47:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Apr 2013 09:59:20 AM UTC, comment #2: 

this should be fixed in cvs now, please test, and reopen if it still does not work.

sorry for the late reply

Olivier Sessink <oli4>
Group administrator
Thu 29 Nov 2012 05:20:21 AM UTC, comment #1: 

I am getting the same error for Gentoo linux 3.4.5 SMP kernel, x86-64 with threading enabled jailkit-2.15.

Anonymous
Thu 08 Nov 2012 09:47:43 PM UTC, original submission:  

as per object i'm unable to compile jailkit on fedora 17 32 bit
got the famous pthread error which should has been fixxed on version 2.15

 Thu Nov 08 21:43:44   root  on  router1
 /usr/local/src/jailkit-2.15  hist:143  jobs:0 $ make clean
rm -f core ~ ini/~
make[1]: Entering directory `/usr/local/src/jailkit-2.15/src'
rm -f jk_socketd jk_lsh jk_chrootsh jk_chrootlaunch jk_uchroot  jk_procmailwrapper
rm -f *.o
rm -f *~
make[1]: Leaving directory `/usr/local/src/jailkit-2.15/src'
make[1]: Entering directory `/usr/local/src/jailkit-2.15/py'
rm -f *~
rm -f jk_cp jk_init jk_check jk_addjailuser jk_jailuser jk_list jk_update jk_lib.pyc
make[1]: Leaving directory `/usr/local/src/jailkit-2.15/py'
make[1]: Entering directory `/usr/local/src/jailkit-2.15/man'
rm -f *.gz
rm -f *~
make[1]: Leaving directory `/usr/local/src/jailkit-2.15/man'

 Thu Nov 08 21:43:46   root  on  router1
 /usr/local/src/jailkit-2.15  hist:144  jobs:0 $ ./configure
configure: config files will be in /etc/jailkit/
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define _EXTENSIONS_... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for library containing strerror... none required
checking for inline... inline
checking for a BSD-compatible install... /bin/install -c
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking liberty.h usability... no
checking liberty.h presence... no
checking for liberty.h... no
checking for strings.h... (cached) yes
checking for strnlen... yes
checking for wordexp... yes
checking for clearenv... yes
checking for get_current_dir_name... yes
checking for strndup... yes
checking for mempcpy... yes
checking for stpcpy... yes
checking for pthread support...... use -pthread
checking for recvfrom... yes
checking for send... yes
checking for nanosleep... yes
checking for getopt_long... yes
checking sys/capability.h usability... yes
checking sys/capability.h presence... yes
checking for sys/capability.h... yes
checking for cap_get_proc... no
checking for cap_get_proc in -lcap... yes
checking for python... /bin/python
checking for up to date python... checking for up to date python... ok
checking for procmail... /bin/procmail
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating py/Makefile
config.status: creating man/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged

 Thu Nov 08 21:43:56   root  on  router1
 /usr/local/src/jailkit-2.15  hist:145  jobs:0 $ make
make[1]: Entering directory `/usr/local/src/jailkit-2.15/src'
gcc -g -O2 -Wall -pipe -pthread -DINIPREFIX=\"/etc/jailkit\"   -c -o jk_socketd.o jk_socketd.c
gcc -g -O2 -Wall -pipe -pthread -DINIPREFIX=\"/etc/jailkit\"   -c -o jk_lib.o jk_lib.c
gcc -g -O2 -Wall -pipe -pthread -DINIPREFIX=\"/etc/jailkit\"   -c -o utils.o utils.c
gcc -g -O2 -Wall -pipe -pthread -DINIPREFIX=\"/etc/jailkit\"   -c -o iniparser.o iniparser.c
gcc  -lcap  -o jk_socketd jk_socketd.o jk_lib.o utils.o iniparser.o
jk_socketd.o: In function `main':
/usr/local/src/jailkit-2.15/src/jk_socketd.c:474: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: * [jk_socketd] Error 1
make[1]: Leaving directory `/usr/local/src/jailkit-2.15/src'
make: * [all] Error 2

 Thu Nov 08 21:43:58   root  on  router1
 /usr/local/src/jailkit-2.15  hist:146  jobs:0 $ uname -a
Linux localhost.localdomain 3.6.2-4.fc17.i686 #1 SMP Wed Oct 17 03:22:23 UTC 2012 i686 i686 i386 GNU/Linux

 Thu Nov 08 21:44:01   root  on  router1


 /usr/local/src/jailkit-2.15  hist:142  jobs:0 $ find / -name pthread.h
/usr/include/pthread.h

i've tryed solutions found around like this one :

make clean
export LDFLAGS="-pthread"
./configure && make

but even with LDFLAGS didn't worked.. :(

thank you very much,
Francesco

Francesco <francesco009>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by oli4 (Posted a comment)
  • -email is unavailable- added by francesco009 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-11 oli4 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code