Solved Missing files when installing from port

Hi,
I'm trying to reinstall a package using the port tree inside a jail and I get the following error message
Code:
/bin/mkdir -p /usr/ports/www/hiawatha/work/hiawatha-9.12
Shared object "libexpat.so.1" not found, required by "cmake"
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/hiawatha
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/hiawatha
*** Error code 1

Stop.
make: stopped in /usr/ports/www/hiawatha

Could anyone help me to solve this problem?

Thank you
 
You appear to be missing textproc/expat2:
Code:
root@mail:~ # pkg which /usr/local/lib/libexpat.so.1
/usr/local/lib/libexpat.so.1 was installed by package expat-2.1.0_2
 
Hi SirDice
I've installed textproc/expat2 but now get another error
Code:
[...]
===>  Returning to build of hiawatha-9.12
===>  Configuring for hiawatha-9.12
===>  Performing in-source build
/bin/mkdir -p /usr/ports/www/hiawatha/work/hiawatha-9.12
Shared object "libcurl.so.4" not found, required by "cmake"
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/hiawatha
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/hiawatha
*** Error code 1

Stop.
make: stopped in /usr/ports/www/hiawatha

ll /usr/local/lib/*expat*
Code:
-rw-r--r--  1 root  wheel  234208 Apr  8 16:07 /usr/local/lib/libexpat.a
lrwxr-xr-x  1 root  wheel  17 Apr  8 16:07 /usr/local/lib/libexpat.so@ -> libexpat.so.1.6.0
lrwxr-xr-x  1 root  wheel  17 Apr  8 16:07 /usr/local/lib/libexpat.so.1@ -> libexpat.so.1.6.0
-rwxr-xr-x  1 root  wheel  173841 Apr  8 16:07 /usr/local/lib/libexpat.so.1.6.0*
lrwxr-xr-x  1 root  wheel  13 Apr  8 16:07 /usr/local/lib/libexpat.so.6@ -> libexpat.so.1
Where can I see all the prerequisite package that I need to compile www/hiawatha
 
SirDice , I have recompiled the devel/cmake from the port tree with all the default value with no error.
When I tried to do make reinstall clean in /usr/port/www/hiawatha, I now get yet another error.
Code:
[....]
file: File 5.19 supports only version 12 magic files. `/usr/share/misc/magic.mgc' is version 8
[: =: unexpected operator
===>   Registering installation for libxslt-1.1.28_6 as automatic
[zion.trinitech.ltd] Installing libxslt-1.1.28_6...
===>   Returning to build of hiawatha-9.12
===>  Configuring for hiawatha-9.12
===>  Performing in-source build
/bin/mkdir -p /usr/ports/www/hiawatha/work/hiawatha-9.12
CMake Error: Could not find cmake module file: CMakeSystemSpecificInitialize.cmake
-- The C compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/cc
CMake Error: Could not find cmake module file: CMakeSystemSpecificInitialize.cmake
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/usr/ports/www/hiawatha/work/hiawatha-9.12/CMakeFiles/CMakeOutput.log".
See also "/usr/ports/www/hiawatha/work/hiawatha-9.12/CMakeFiles/CMakeError.log".
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/hiawatha
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/hiawatha
*** Error code 1

Stop.
make: stopped in /usr/ports/www/hiawatha
Do I get this because I am inside a jail?
more /usr/ports/www/hiawatha/work/hiawatha-9.12/CMakeFiles/CMakeOutput.log
Code:
The system is: FreeBSD - 10.1-RELEASE-p9 - amd64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags: -O2;-pipe;-fstack-protector;-fno-strict-aliasing
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is Clang, found in "/usr/ports/www/hiawatha/work/hiawatha-9.12/CMakeFiles/3.1.3/CompilerIdC/a.out"
 
Jailed or not shouldn't matter in this case. But it looks like there are still some serious issues with cmake. It also seems to throw some errors about /usr/bin/cc. Is there anything in /etc/make.conf that may interfere?
 
Here is my /etc/make.conf
Code:
  1 WITH_PKGNG=yes
  2 *NO_X=         true
  3 NO_X11=        true
  4 WITHOUT_X11=   true
  5 NO_NIS=        true
  6 WITHOUT_NIS=   true
  7 NO_ACPI=       true    # do not build acpiconf(8) and related programs
  8 NO_BOOT=       true    # do not build boot blocks and loader
  9 NO_BLUETOOTH=  true    # do not build Bluetooth related stuff
10 NO_FORTRAN=    true    # do not build g77 and related libraries
11 NO_GDB=        true    # do not build GDB
12 NO_GPIB=       true    # do not build GPIB support
13 NO_I4B=        true    # do not build isdn4bsd package
14 NO_IPFILTER=   true    # do not build IP Filter package
15 NO_PF=         true    # do not build PF firewall package
16 NO_AUTHPF=     true    # do not build and install authpf (setuid/gid)
17 NO_KERBEROS=   true    # do not build and install Kerberos 5 (KTH Heimdal)
18 NO_LPR=        true    # do not build lpr and related programs
19 NO_MAILWRAPPER=true    # do not build the mailwrapper(8) MTA selector
20 NO_MODULES=    true    # do not build modules with the kernel
21 NO_NETCAT=     true    # do not build netcat
22 NO_NIS=        true    # do not build NIS support and related programs
23 NO_SENDMAIL=   true    # do not build sendmail and related programs
24 NO_SHAREDOCS=  true    # do not build the 4.4BSD legacy docs
25 NO_USB=        true    # do not build usbd(8) and related programs
26 NO_VINUM=      true    # do not build Vinum utilities
27 NO_ATM=        true    # do not build ATM related programs and libraries
28 NO_CRYPT=      true    # do not build any crypto code
29 NO_GAMES=      true    # do not build games (games/ subdir)
30 NO_INFO=       true    # do not make or install info files
31 NO_MAN=        true    # do not build manual pages
32 NO_PROFILE=    true    # Avoid compiling profiled libraries
33
34 # BIND OPTIONS
35 NO_BIND=               true    # Do not build any part of BIND
36 NO_BIND_DNSSEC=        true    # Do not build dnssec-keygen, dnssec-signzone
37 NO_BIND_ETC=           true    # Do not install files to /etc/namedb
38 NO_BIND_LIBS_LWRES=    true    # Do not install the lwres library
39 NO_BIND_MTREE=         true    # Do not run mtree to create chroot directories
40 NO_BIND_NAMED=         true    # Do not build named, rndc, lwresd, etc.
 
Remove everything. There are a lot of old switches and a lot of stuff that really should go in src.conf(5).

Be aware that there are some bugs in build(7) that require manual intervention when going back to a world with everything included. The one that I've encountered is removing WITHOUT_CTF that requires you to manually install the dtrace(1) support libraries, otherwise make buildkernel will fail. There could be others too.

To fred974, you're not supposed to set any of the NO_* settings yourself, they are internal variables used by build(7). Stick to what src.conf(5) documents and even then use caution. It's possible that you have already made a mess you can't solve without a reinstallation from scratch.
 
Remove everything from /etc/make.conf file, recompiled devel/cmake and reinstall www/hiawatha with no more problems :)
Thank you all for your support.

On another topic slightly. what is supposed to be found in the /etc/make.conf file inside the jail?
 
Remove everything from /etc/make.conf file, recompiled devel/cmake and reinstall www/Hiawatha with no more problems :)
Thank you all for your support.

On another topic slightly.. what is supposed to be found in the /etc/make.conf file inside the jail?

Nothing unless you're using the jail for building world/kernel or ports(7). I can't offhand think of a setting you would need in it if the jail is only for running services.

Edit: Since you're building ports inside the jail the settings you need there are the port options if you want to set any. They should be set with the new syntax like this:

Code:
# Global options for every port, these don't make sense necessarily, only an example.
OPTIONS_SET= NLS
OPTIONS_UNSET= X11
# Options for individual ports
pinentry_SET= NCURSES
pinentry_UNSET= GTK GTK2 QT3 QT4

However, you could save a lot of time and effort by migrating to ports-mgmt/poudriere for ports building.
 
Thank You kpa .

I use ZFS, does the same process apply?
Is the code bellow the only thing I need to change?
/usr/local/etc/poudriere.conf:
Code:
# Comment out ZPOOL
# ZPOOL=tank

# Add NO_ZFS=yes
NO_ZFS=yes
 
Poudriere works with ZFS pretty much out-of-the-box. The non-ZFS features were added later on. Just setting ZPOOL and perhaps ZROOTFS should be all that needs to be changed from the default configuration. If you use kpa 's HOWTO remember to remove the NO_ZFS option. It'll work just fine with it but it won't use ZFS' cloning and will use cpio(1) to create the build jails (which is quite slow compared to a ZFS clone).
 
I added a note in my HOWTO about the benefits of ZFS if used. For my use ZFS is an overkill so the HOWTO reflects that. I should probably rewrite it slightly (now that I can edit it again) to be a more generic HOWTO with notices of how to use it without ZFS.

With ZFS you usually just set ZPOOL to the pool you want to use. Setting ZROOTFS is optional unless you don't like the default of ${ZPOOL}/poudriere.
 
hi everyone, sorry for revive this old post but i´m in a hurry, after trying to install gnome on a freebsd 9 computer it update some dependencies and now i´m geting 2 errors:

Shared object "libexpat.so.6" not found, required by "httpd"
Shared object "libpng.so.6" not found, required by "php"

so the web server is not running.

-i´m newbie with freebsd
-verified that both packages are installed and updated
-i could not find any of those files into the "lib" folders

Hope you can help me
 
hi everyone, sorry for revive this old post but i´m in a hurry, after trying to install gnome on a freebsd 9 computer it update some dependencies and now i´m geting 2 errors:
FreeBSD 9 is no longer supported, and the current ports collection is also not compatible with that.

Your only option is to upgrade FreeBSD to release 11.2, that will also solve your other issues.
 
Back
Top