Re: porting Linux application to FreeBSD

2000-11-28 Thread Wes Peters
Andrew Otwell wrote: > > same problem. I'm trying though > > bash-2.03$ gcc -static -nostdlib -L/usr/lib \ > > -lalias -lalias_p -lc -lc_p -lc_pic -lcalendar -lcalendar_p -lcom_err -lcom_err_p \ > > -lcompat -lcompat_p -lcrypt -lcrypt_p -lcurses -lcurses_p \ > > -ldialog -ldialog_p -ldisk -l

Re: porting Linux application to FreeBSD

2000-11-27 Thread Robert Nordier
Andrew Otwell wrote: > same problem. I'm trying though > > bash-2.03$ gcc -static -nostdlib -L/usr/lib \ > > -lalias -lalias_p -lc -lc_p -lc_pic -lcalendar -lcalendar_p -lcom_err -lcom_err_p \ > > -lcompat -lcompat_p -lcrypt -lcrypt_p -lcurses -lcurses_p \ > > -ldialog -ldialog_p -ldisk -le

Re: porting Linux application to FreeBSD

2000-11-27 Thread Andrew Otwell
when I specify "-bloadmap" I get the following output int main() { printf("Hello World!!!\n"); } *Initialization*:1: warning: `__FreeBSD__' redefined *Initialization*:1: warning: this is the location of the previous definition # 1 "/var/tmp/ccWwDByf.i" gcc: installation problem, c

Re: porting Linux application to FreeBSD

2000-11-27 Thread Andrew Otwell
same problem. I'm trying though bash-2.03$ gcc -static -nostdlib -L/usr/lib \ > -lalias -lalias_p -lc -lc_p -lc_pic -lcalendar -lcalendar_p -lcom_err -lcom_err_p \ > -lcompat -lcompat_p -lcrypt -lcrypt_p -lcurses -lcurses_p \ > -ldialog -ldialog_p -ldisk -ledit -ledit_p -lf2c -lf2c_p -lfl -lf

Re: porting Linux application to FreeBSD

2000-11-27 Thread Wes Peters
Andrew Otwell wrote: > > source.c > - > #include > int main () { >printf ("Hello world\n"); > } > - > > A couple of you answered my first query which gave me > > gcc -nostdinc -I/includedir -nostdlib -L/libdir source.c > > This always fa

Re: porting Linux application to FreeBSD

2000-11-27 Thread Steve Kargl
Andrew Otwell wrote: > > A couple of you answered my first query which gave me > > gcc -nostdinc -I/includedir -nostdlib -L/libdir source.c > > This always failed with either > > ld: No reference to __DYNAMIC > collect2: ld returned 1 exit status > info gcc gcc -v -static -nostdinc

porting Linux application to FreeBSD

2000-11-27 Thread Andrew Otwell
source.c - #include int main () { printf ("Hello world\n"); } - A couple of you answered my first query which gave me gcc -nostdinc -I/includedir -nostdlib -L/libdir source.c This always failed with either ld: No reference to __DYNAM