Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FreeBSD compilation #643

Closed
wants to merge 1 commit into from
Closed

Fix FreeBSD compilation #643

wants to merge 1 commit into from

Conversation

ysangkok
Copy link
Contributor

  • Do not use copy-dt-needed-entries for FreeBSD
  • Do not link libdl on FreeBSD
  • Use pkg-config
  • Can't assume SOL_LOCAL is defined

Do not use copy-dt-needed-entries for FreeBSD
Do not link libdl on FreeBSD
Use pkg-config
Can't assume SOL_LOCAL is defined
@ysangkok
Copy link
Contributor Author

ysangkok commented Oct 2, 2015

@edolstra , any comments on this?

@garbas
Copy link
Member

garbas commented Oct 4, 2015

this should also fix #304
@tomster do you have any chance to try this PR?

@tomster
Copy link

tomster commented Oct 4, 2015

i've tried to install this with the following steps:

  • created a new jail on a 10.2-RELEASE system
  • inside the jail i installed
    • gmake
    • git
    • autoconf
    • bash
  • i then cloned https://github.com/ysangkok/nix.git and switched to the freebsd-fixes branch
  • cd-ed into the directory
  • ran bash
  • ran autoconf
  • ran ./configure

that errored with:

[...]
checking for openssl... /usr/bin/openssl
./configure: 5449: Syntax error: word unexpected (expecting ")")

were any of the above steps wrong? should i try this differently?

@tomster
Copy link

tomster commented Oct 4, 2015

i retried the above by actually following my own notes that (luckily) made in #304 but i still never got past ./configure (with the same error as above)

i forgot to mention above that i also already had an error when running autoconf:

configure.ac:74: error: possibly undefined macro: AC_DEFINE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.

perhaps that is relevant?

@lucabrunox
Copy link
Contributor

@tomster AC_DEFINE is from pkgconfig m4... did you install pkgconfig in the jail?

@tomster
Copy link

tomster commented Oct 5, 2015

@lethalman yes, i did. here's the list of installed packages in the jail:

autoconf-2.69                  Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
bash-4.3.39                    The GNU Project's Bourne Again SHell
ca_root_nss-3.19.3             Root certificate bundle from the Mozilla Project
curl-7.43.0_2                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1                    Create patchset information from CVS
expat-2.1.0_3                  XML 1.0 parser written in C
gettext-runtime-0.19.4         GNU gettext runtime libraries and programs
git-2.4.5_1                    Distributed source code management tool
gmake-4.1_2                    GNU version of 'make' utility
indexinfo-0.2.3                Utility to regenerate the GNU info page index
libffi-3.2.1                   Foreign Function Interface
m4-1.4.17_1,1                  GNU m4
openssl-1.0.2_4                SSL and crypto library
p5-Authen-SASL-2.16_1          Perl5 module for SASL authentication
p5-Digest-HMAC-1.03_1          Perl5 interface to HMAC Message-Digest Algorithms
p5-Error-0.17024               Error/exception handling in object-oriented programming style
p5-GSSAPI-0.28_1               Perl extension providing access to the GSSAPIv2 library
p5-IO-Socket-IP-0.37           Drop-in replacement for IO::Socket::INET supporting IPv4 and IPv6
p5-IO-Socket-SSL-2.016         Perl5 interface to SSL sockets
p5-Mozilla-CA-20141217         Perl extension for Mozilla CA cert bundle in PEM format
p5-Net-SMTP-SSL-1.03           SSL support for Net::SMTP
p5-Net-SSLeay-1.70             Perl5 interface to SSL
p5-Socket-2.020                Networking constants and support functions
perl5-5.20.2_5                 Practical Extraction and Report Language
pkg-1.5.6                      Package manager
pkgconf-0.9.11                 Utility to help to configure compiler and linker flags
python27-2.7.9_1               Interpreted object-oriented programming language
sqlite3-3.8.10.2               SQL database engine in a C library

@ysangkok
Copy link
Contributor Author

ysangkok commented Oct 6, 2015

@tomster Please follow the build instructions. It should work if you use the bundled bootstrap.sh script instead of manually invoking autoconf. The bootstrap script uses autoreconf, which does a few things before invoking autoconf.

@edolstra edolstra mentioned this pull request Oct 7, 2015
@manueljacob
Copy link
Contributor

@tomster Also you should make sure ./configure is executed with Bash (e.g. by running bash ./configure).

@ysangkok
Copy link
Contributor Author

ysangkok commented Oct 7, 2015

Pull request #657 is better.

@ysangkok ysangkok closed this Oct 7, 2015
@tomster
Copy link

tomster commented Oct 7, 2015

FTR i tried the bootstrap approach in the linked build instructions. after installing automake this allowed bash configure to complete.

however, running gmake yielded this:

root@nix:~/nix # gmake
  GEN    Makefile.config
  GEN    doc/manual/manual.xmli
doc/manual/local.mk:21: recipe for target 'doc/manual/manual.xmli' failed
gmake: *** [doc/manual/manual.xmli] Error 1

@ysangkok
Copy link
Contributor Author

ysangkok commented Oct 8, 2015

@tomster: Check configure.log (maybe past the relevant part here, if you cannot figure it out), you may need the packages libxslt, docbook-utils or libxml2. These are just educated guesses though, but see #506 .

@tomster
Copy link

tomster commented Oct 8, 2015

@ysangkok thanks, it's all been resolved over at #657 :-)

zolodev pushed a commit to zolodev/nix that referenced this pull request Jan 1, 2024
fix boot config, correctly enable wlan firmware, update config link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants