jailkit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-dev] jailkit-2.5 compilation problem on Solaris 10 using gc


From: Mohan Tafat
Subject: Re: [Jailkit-dev] jailkit-2.5 compilation problem on Solaris 10 using gcc
Date: Mon, 2 Jun 2008 10:28:57 -0700

Hello,
Thank you for your feedback and help.
I managed to get all utilities working  except jk_socketd. I think the problem with jk_socketd is related to libraries. In Linux you use GNU C library glibc which is not the case in Solaris. I will work on it and keep you updated.
Below are utilities I got working in Solaris along with configuration in /etc/jailkit and documentation installed in /usr/share/man/man8
-bash-3.00# uname -a
SunOS ofx4att1 5.10 Generic_120012-14 i86pc i386 i86pc Solaris
-bash-3.00# ls -l /usr/sbin/jk_*
-rwxr-xr-x 1 root root  6912 Jun  1 15:14 /usr/sbin/jk_addjailuser
-rwxr-xr-x 1 root root 10262 Jun  1 15:14 /usr/sbin/jk_check
-rwxr-xr-x 1 root root 29736 Jun  1 15:14 /usr/sbin/jk_chrootlaunch
-rwsr-xr-x 1 root root 45752 Jun  1 15:14 /usr/sbin/jk_chrootsh
-rwxr-xr-x 1 root root  3910 Jun  1 15:14 /usr/sbin/jk_cp
-rwxr-xr-x 1 root root  9335 Jun  1 15:14 /usr/sbin/jk_init
-rwxr-xr-x 1 root root 10557 Jun  1 15:14 /usr/sbin/jk_jailuser
-rwxr-xr-x 1 root root  4606 Jun  1 15:14 /usr/sbin/jk_list
-rwxr-xr-x 1 root root 38388 Jun  1 15:14 /usr/sbin/jk_lsh
-rwsr-xr-x 1 root root 26860 Jun  1 15:14 /usr/sbin/jk_procmailwrapper
-rwxr-xr-x 1 root root  8540 Jun  1 15:14 /usr/sbin/jk_update
-bash-3.00# ls /usr/bin/jk_*
/usr/bin/jk_uchroot
-bash-3.00# ls /usr/share/man/man8
jailkit.8.gz          jk_cp.8.gz        jk_procmailwrapper.8.gz
jk_addjailuser.8.gz   jk_init.8.gz      jk_socketd.8.gz
jk_check.8.gz         jk_jailuser.8.gz  jk_uchroot.8.gz
jk_chrootlaunch.8.gz  jk_list.8.gz      jk_update.8.gz
jk_chrootsh.8.gz      jk_lsh.8.gz    
-bash-3.00# ls /etc/jailkit
jk_check.ini     jk_init.ini  jk_socketd.ini
jk_chrootsh.ini  jk_lsh.ini   jk_update.ini
-bash-3.00#
Thanks
Mo

On Mon, Jun 2, 2008 at 4:47 AM, Olivier Sessink <address@hidden> wrote:
> Hello Mo,
>
> referencing your first email:
>> Undefined                       first referenced
>>  symbol                             in file
>> bind                                jk_socketd.o
>> send                                jk_socketd.o
>> nanosleep                           jk_socketd.o
>> socket                              jk_socketd.o
>> connect                             jk_socketd.o
>> recvfrom                            jk_socketd.o
>> shutdown                            jk_socketd.o
> most symbols/functions come from the socket.h library (see "man 2 socket"
> as an example). So somewhere along the line, some header files are
> probably not included.

I think the problem is not in the header files but in the libraries. I
guess on Solaris we need to include a library during the linking stage
(add a -lfoobar option, where 'foobar' is the library that needs to be
included).

My problem is that I don't have solaris, and I don't know which library
could be needed... I'll have to google a bit for this.

regards,
 Olivier




_______________________________________________
Jailkit-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-dev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]