#24 FreeBSD issues#2

Installation
open
nobody
5
2001-02-02
2001-02-02
Anonymous
No

nino@giverny ~/mcal> make
gcc -Wall -c -I../libmcal -g mcal.c
mcal.c:38: getopt.h: No such file or directory
*** Error code 1

Stop in /usr/home/nino/mcal.
zsh: 7206 exit 1 make
nino@giverny ~/mcal>

After finding getopt.h:

nino@giverny ~/mcal> sudo make
gcc -Wall -c -I../libmcal -g mcal.c
gcc -Wall -g -o mcal mcal.o -L../libmcal -lmcal -lcrypt
mcal.o: In function `main':
/home/nino/mcal/mcal.c(.text+0x97): undefined reference to `getopt_long'
*** Error code 1

Stop in /usr/home/nino/mcal.
zsh: 8479 exit 1 sudo make
nino@giverny ~/mcal>

getopt.h doesnt come with FreeBSD!

Discussion

  • Logged In: YES
    user_id=49733

    solution:
    install libmcal through ports (misc/libmcal). don't know
    when it was
    added to the ports tree, but it's in there since 4.3.