View Single Post
  #7   (View Single Post)  
Old 10th November 2010
joostvgh joostvgh is offline
Port Guard
 
Join Date: Jan 2010
Posts: 38
Default

1. I don't even know what the ports tree is. Reading FAQ 15 did not even look familiar to something I did. I downloaded the software several times, from different locations (openbsd ftp, libiconv homepage, and finally source forge). When I downloaded these files I had to run './configure', 'make', 'make install', but the first 10 the make failed because of 'undefined reference to libiconv'. I googled this error 100 times but did not come any close to an answer, untill eventually I added libiconv to the LIBS variable in the makefile. (so yes, I built it manually)

2. I just read FAQ 15.4.1 and FAQ 5 (skimmed). I installed openbsd from the cd, release 4.6. The only thing I modified was some crontabs, some pf rule-files, added a forum (mysql, apache), installed dsniff for security perposes. I did not do anything which comes even close to a 'tree'.

3. well, I guess this is where the problem lies, as I mentioned earlier.
Code:
# ldconfig -r
/var/run/ld.so.hints:
        search directories: /usr/lib
        0:-lcurses.10.0 => /usr/lib/libcurses.so.10.0
        1:-lm.5.0 => /usr/lib/libm.so.5.0
        2:-lobjc.4.0 => /usr/lib/libobjc.so.4.0
        3:-lcom_err.17.0 => /usr/lib/libcom_err.so.17.0
        4:-lgssapi.5.0 => /usr/lib/libgssapi.so.5.0
        5:-lncurses.10.0 => /usr/lib/libncurses.so.10.0
        6:-locurses.5.0 => /usr/lib/libocurses.so.5.0
        7:-lpcap.6.0 => /usr/lib/libpcap.so.6.0
        8:-lg2c.8.1 => /usr/lib/libg2c.so.8.1
        9:-levent.2.0 => /usr/lib/libevent.so.2.0
        10:-ledit.3.0 => /usr/lib/libedit.so.3.0
        11:-lkrb5.17.0 => /usr/lib/libkrb5.so.17.0
        12:-lperl.11.0 => /usr/lib/libperl.so.11.0
        13:-liberty.9.0 => /usr/lib/libiberty.so.9.0
        14:-lpanel.3.0 => /usr/lib/libpanel.so.3.0
        15:-lkafs.17.0 => /usr/lib/libkafs.so.17.0
        16:-lpthread.11.1 => /usr/lib/libpthread.so.11.1
        17:-lc.51.0 => /usr/lib/libc.so.51.0
        18:-lreadline.3.0 => /usr/lib/libreadline.so.3.0
        19:-lsectok.6.0 => /usr/lib/libsectok.so.6.0
        20:-lskey.5.1 => /usr/lib/libskey.so.5.1
        21:-lsndio.3.2 => /usr/lib/libsndio.so.3.2
        22:-lssl.15.0 => /usr/lib/libssl.so.15.0
        23:-lossaudio.3.1 => /usr/lib/libossaudio.so.3.1
        24:-lstdc++.47.0 => /usr/lib/libstdc++.so.47.0
        25:-ltermcap.10.0 => /usr/lib/libtermcap.so.10.0
        26:-ltermlib.10.0 => /usr/lib/libtermlib.so.10.0
        27:-lcrypto.18.0 => /usr/lib/libcrypto.so.18.0
        28:-lmilter.2.1 => /usr/lib/libmilter.so.2.1
        29:-lkvm.9.1 => /usr/lib/libkvm.so.9.1
        30:-lusbhid.3.0 => /usr/lib/libusbhid.so.3.0
        31:-lasn1.17.0 => /usr/lib/libasn1.so.17.0
        32:-lutil.11.0 => /usr/lib/libutil.so.11.0
        33:-lexpat.9.0 => /usr/lib/libexpat.so.9.0
        34:-lmenu.3.0 => /usr/lib/libmenu.so.3.0
        35:-lotermcap.5.0 => /usr/lib/libotermcap.so.5.0
        36:-lwrap.4.0 => /usr/lib/libwrap.so.4.0
        37:-ldes.9.0 => /usr/lib/libdes.so.9.0
        38:-lform.3.0 => /usr/lib/libform.so.3.0
        39:-lrpcsvc.1.2 => /usr/lib/librpcsvc.so.1.2
        40:-lz.4.1 => /usr/lib/libz.so.4.1
clearly, the php lib is not included here. I've been reading the ld faq but did not get any wiser about its usage. I've been tryging 'random' commands, trying to build some app that uses the libiconv but could not find it (trying to add the path to the ld and such).

4. I like openbsd and its results because it does what you expect it to. I am quite new to unix systems however, although I would like a osx-like linux system (one which does not only work through commands, osx has nice visuals but not too fancy like windows 7/vista. That is why atm I am still sticking to XP, which is fast, clean, and easy to use to me). In the errors/problems I encountered, google was not even close to being a help. I found 100 similar problems with a solution that just would help, was invalid, or even without a solution (undefined reference libiconv, ..).
I hope, through this process, that I am gaining experience with unix-based systems. I am also very happy I found this forum and you are willing to help me. Thanks!!
Reply With Quote