LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2005, 10:39 PM   #1
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Rep: Reputation: 15
Linux "make" command questions.


I'm trying to get a USB phone adapter working in linux. I'm fairly new at this so be patient.

I downloaded all the files and began following the installation instructions. I ran the ./configure command with no problems. The next command says to type in "make" but when I do this I get the following error

[root@localhost usbb2k-api]# make
make: *** No rule to make target `../configure.in', needed by `Makefile.in'. Stop.


Anyone have any clue what this means?
 
Old 08-27-2005, 10:56 PM   #2
kz26
Member
 
Registered: Aug 2005
Location: USA
Distribution: Fedora, Ubuntu, Backtrack
Posts: 70

Rep: Reputation: 15
This means that you need to specify a valid target for make.
Did the package come with a README? It should have compilation instructions.

You could also try digging through the Makefile and finding a valid target.

Hope this helps.
 
Old 08-27-2005, 11:00 PM   #3
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
I see you are logged in as root. As a rule, it is a good idea to log in as a normal user to do the source unpacking, ./configure and su to root for the final make install. That way if there is a malicious script you have a little more chance to catch it before turning it loose with root.

I think now you may be down to reading the Makefile to try to guess if there is a dependancy that the configure script did not catch. This is rare, but it happens.

First, I would delete the source and unpack it again as a normal user as I described above. Sometimes the root path does not go the same places that the user path defaults and can cause compile errors.
 
Old 08-27-2005, 11:33 PM   #4
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
First thanks for everyones help, especially at this time of the night.


I logged out of root and went back into my normal account. I deleted everything and re-downloaded it. Here is the readme.



Code:
#
# Make
1. ./autoconf.sh
2. make 

# Test API

1. in a Consol:
src/usbb2k_api

2. in a other Consol:
tools/api_connect /tmp/usbb2k.sock

#Commande for api_connect:
SWITCH USB/PSTN
RING 0 (stop ringing)
RING 1 (ring mode 1)
RING 2 (ring mode 2)

#Msg from api_connect:
HANDSET ON/OFF (pickup/off handset)
KEY 01..09 (keyphone pressed)
Using the make command in the directory right now gets me this.

[root@localhost usbb2k-api]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost usbb2k-api]#

So the last time I jumped right to ./autoconf.sh but got a you dont have permission error. I then did a chmod on the entire directory and changed it all to 7777. After that the ./autoconf.sh command gave me this.

[root@localhost usbb2k-api]# ./autoconf.sh
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/Makefile.am:2: CFLAGS was already defined in condition TRUE, which includes condition DEBUG ...
configure.in:10: ... `CFLAGS' previously defined here
src/Makefile.am: installing `./depcomp'
src/Makefile.am:2: `CFLAGS' is a user variable, you should not override it;
src/Makefile.am:2: use `AM_CFLAGS' instead.
tools/Makefile.am:5: blank line following trailing backslash
Makefile.am: installing `./INSTALL'
Makefile.am: installing `./COPYING'
 
Old 08-27-2005, 11:35 PM   #5
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
after the ./autoconf.sh command I get a INSTALL txt file that has the following.

Code:
Installation Instructions
*************************

Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.

This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.

Basic Installation
==================

These are generic installation instructions.

   The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation.  It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions.  Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').

   It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring.  (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)

   If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release.  If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.

   The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'.  You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.

The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

     Running `configure' takes awhile.  While running, it prints some
     messages telling which features it is checking for.

  2. Type `make' to compile the package.

  3. Optionally, type `make check' to run any self-tests that come with
     the package.

  4. Type `make install' to install the programs and any data files and
     documentation.

  5. You can remove the program binaries and object files from the
     source code directory by typing `make clean'.  To also remove the
     files that `configure' created (so you can compile the package for
     a different kind of computer), type `make distclean'.  There is
     also a `make maintainer-clean' target, but that is intended mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that came
     with the distribution.

Compilers and Options
=====================

Some systems require unusual options for compilation or linking that the
`configure' script does not know about.  Run `./configure --help' for
details on some of the pertinent environment variables.

   You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment.  Here
is an example:

     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix

   *Note Defining Variables::, for more details.

Compiling For Multiple Architectures
====================================

You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory.  To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'.  `cd' to the
directory where you want the object files and executables to go and run
the `configure' script.  `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.

   If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory.  After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.

Installation Names
==================

By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc.  You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PREFIX'.

   You can specify separate installation prefixes for
architecture-specific files and architecture-independent files.  If you
give `configure' the option `--exec-prefix=PREFIX', the package will
use PREFIX as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.

   In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files.  Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.

   If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.

Optional Features
=================

Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System).  The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.

   For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.

Specifying the System Type
==========================

There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option.  TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:

     CPU-COMPANY-SYSTEM

where SYSTEM can have one of these forms:

     OS KERNEL-OS

   See the file `config.sub' for the possible values of each field.  If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.

   If you are _building_ compiler tools for cross-compiling, you should
use the `--target=TYPE' option to select the type of system they will
produce code for.

   If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.

Sharing Defaults
================

If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists.  Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.

Defining Variables
==================

Variables not defined in a site shell script can be set in the
environment passed to `configure'.  However, some packages may run
configure again during the build, and the customized values of these
variables may be lost.  In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'.  For example:

     ./configure CC=/usr/local2/bin/gcc

causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).  Here is a another example:

     /bin/bash ./configure CONFIG_SHELL=/bin/bash

Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.

`configure' Invocation
======================

`configure' recognizes the following options to control how it operates.

`--help'
`-h'
     Print a summary of the options to `configure', and exit.

`--version'
`-V'
     Print the version of Autoconf used to generate the `configure'
     script, and exit.

`--cache-file=FILE'
     Enable the cache: use and save the results of the tests in FILE,
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
     disable caching.

`--config-cache'
`-C'
     Alias for `--cache-file=config.cache'.

`--quiet'
`--silent'
`-q'
     Do not print messages saying which checks are being made.  To
     suppress all normal output, redirect it to `/dev/null' (any error
     messages will still be shown).

`--srcdir=DIR'
     Look for the package's source code in directory DIR.  Usually
     `configure' can determine that directory automatically.

`configure' also accepts some other, not widely useful, options.  Run
`configure --help' for more details.
 
Old 08-28-2005, 01:46 AM   #6
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
hrrmmmm

i was just looking at the autoconf.sh file and found the following

#!/bin/sh

aclocal
autoconf
automake --add-missing


I have no clue what the --add-missing thing is all about though.
 
Old 08-28-2005, 11:22 PM   #7
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
bump
 
Old 08-28-2005, 11:38 PM   #8
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
Give me the link of where you downloaded the source and I'll give it a try.
 
Old 08-29-2005, 12:50 AM   #9
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
I really appreciate you doing this. They are using CVS for the files. Here is the command line commands,

export CVS_RSH="ssh"
cvs -z3 -d:ext:anoncvs@savannah.nongnu.org:/cvsroot/usbb2k-api co usbb2k-api

here is their website.
https://savannah.nongnu.org/projects/usbb2k-api/

here is a link to the root of the CVS directory.
http://savannah.nongnu.org/cgi-bin/viewcvs/usbb2k-api/
 
Old 08-29-2005, 01:28 AM   #10
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
I can get you a little further on your way. I think your initial problem may be that you are missing the autoconf and automake packages. ATM I'm running on SUSE 9.1 and I grabbed the autoconf and automake rpm's off a SUSE mirror. You should use whatever means your distribution allows. Then:
  • sh autoconf.sh
  • ./configure
  • make

I got this error:

usbb2k-main.o(.text+0xa2): In function `usbb2k_init':
usbb2k-api/src/usbb2k-main.c:72: undefined reference to `usb_detach_kernel_driver_np'
collect2: ld returned 1 exit status

This may be because I don't have the current CVS, automake, or autoconf per savannah. Check their requirements to see which versions you need. You may need to go to gnu.org and compile from scratch, which is just:

./configure
make
make install

Have fun.
 
Old 08-29-2005, 01:50 AM   #11
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Jerre Cope

  • sh autoconf.sh
  • ./configure
  • make

[/B]
I gave that a try with no luck. I'll keep plugging away and see what happens.

I really appreciate everyones help. This all reminds me of when I got my first 8088 home and booted to a DOS prompt. This has made computers fun again!
 
Old 09-02-2005, 07:25 PM   #12
Simon_6162
Member
 
Registered: Jul 2004
Location: UK
Distribution: Fedora, Gentoo, Redhat Enterprise
Posts: 141

Rep: Reputation: 16
hello, I've been having a similar problem to you. I solved it by doing the following commands

#download
export CVS_RSH="ssh"
cvs -z3 -d:ext:anoncvs@savannah.nongnu.org:/cvsroot/usbb2k-api co usbb2k-api/

#run setup
sh autoconf.sh
./configure #this will give you an error but ignore it
cd tools
make
cd ../src
make # this gave me an error the first time but worked after that.

you should have everything you need compiled now just run up the software.


I'm going to try and write a QT interface for this to skype over the weekend so I'll let you know if I get anywhere with it! I haven't tried the gnome meeting interface but i hope this helps

Simon
 
Old 09-02-2005, 11:26 PM   #13
schapman43
LQ Newbie
 
Registered: May 2005
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Simon_6162
hello, I've been having a similar problem to you. I solved it by doing the following commands

#download
export CVS_RSH="ssh"
cvs -z3 -d:ext:anoncvs@savannah.nongnu.org:/cvsroot/usbb2k-api co usbb2k-api/

#run setup
sh autoconf.sh
./configure #this will give you an error but ignore it
cd tools
make
cd ../src
make # this gave me an error the first time but worked after that.

you should have everything you need compiled now just run up the software.


I'm going to try and write a QT interface for this to skype over the weekend so I'll let you know if I get anywhere with it! I haven't tried the gnome meeting interface but i hope this helps

Simon
Glad to see I'm not the only one with this problem. I will give this another try tonight. To be honest, when all is said and done I dont know how to run the software.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
in linux fortran: problem with the command "make" terrence Programming 2 08-27-2005 04:02 AM
error on "make"command; ralink 2500 driver jimbrook Linux - Wireless Networking 2 05-23-2005 10:58 PM
Ndiswrapper install failure - LBA-Linux "make" command fails petteril Linux - Wireless Networking 1 04-23-2005 08:22 AM
How to install "make" command from rpm on cd 2 - red hat linux 7.0 ZARGON Linux - Newbie 2 08-31-2004 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration