Results 1 to 4 of 4

Thread: developing a tcp server being used in knoppix

  1. #1
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    10

    developing a tcp server being used in knoppix

    I'm having some pretty interesting issues. I can put up code on request, but it doesnt seem to be a code issue.

    I've built a process that uses a C++ server and a PHP client (hosted via apache) that communicate via localhost Tcp. On my Gentoo dev machine, they work great. Moving things to Knoppix, the accept() call in the server returns "Invalid Argument".

    I do have slightly different versions of apache, gcc, etc...as apt-get and emerge rab slightly different things by default. But i did a little cross-testing, heres where things get interesting..

    When I boot IN KNOPPIX and chroot into my gentoo partition, I run my server executable. I run the client in the a regular Knoppix web browser (ie my knoppix apache) and it works.

    I boot IN KNOPPIX, re-configure and re-make the server code that is IN MY GENTOO PARTITION (so I'm using Knoppix gcc, libs, etc). I run that executable from a Knoppix shell, it fails. I chroot into my gentoo partition and run that new executable, built from the knoppix shell, and run it..and the whole process works.

    Boy oh boy am i lost. I am totally willing to put together a stripped down version of this issue if someone wants to see it. But I'm thinking/hoping its something to do with the way Knoppix is put together, and i dont really know much about its trickery..

    thanks, dave

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    have you tried compiling it statically? might be some lib's missing...

  3. #3
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    10

    doesnt seem to help..

    but that sounds like it could be the right track..
    how does knoppix interwork with various architectures? ie is there specific C flags i should be passing in to the compiler if im developing for knoppix? right now im jus tpassing in -O0 and -g3 for debug info...plus -static now...

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949

    Re: doesnt seem to help..

    Quote Originally Posted by dkennedy
    but that sounds like it could be the right track..
    how does knoppix interwork with various architectures? ie is there specific C flags i should be passing in to the compiler if im developing for knoppix? right now im jus tpassing in -O0 and -g3 for debug info...plus -static now...
    Unless your working on a differnt Physical architecture with knoppix, the flags should be the same.

Similar Threads

  1. ftp-server and Knoppix 3.4
    By mk in forum Networking
    Replies: 0
    Last Post: 03-26-2005, 01:52 PM
  2. knoppix as a server
    By jpiranha in forum Hdd Install / Debian / Apt
    Replies: 19
    Last Post: 09-24-2004, 05:02 PM
  3. Web developing
    By amm in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 07-09-2004, 11:41 PM
  4. X server crash: "Fatal server error: Active ring not fl
    By cmcclean in forum General Support
    Replies: 1
    Last Post: 10-03-2003, 01:52 PM
  5. Terminal Server: Suspend to Server for clients
    By Robert Michel in forum Ideas
    Replies: 0
    Last Post: 02-26-2003, 01:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Samsung 16GB 1Rx8 DDR5 5600MHz EC8 RDIMM PC5-44800 Memory RAM (M321R2GA3PB0-CWM) picture

Samsung 16GB 1Rx8 DDR5 5600MHz EC8 RDIMM PC5-44800 Memory RAM (M321R2GA3PB0-CWM)

$99.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$22.45



Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture

Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory

$54.99



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel

$33.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$15.90



Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture

Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM

$22.85



HP EliteBook 840 G10 14  WUXGA Intel Core i5-1335U 16GB RAM 512GB SSD Notebook S picture

HP EliteBook 840 G10 14 WUXGA Intel Core i5-1335U 16GB RAM 512GB SSD Notebook S

$599.99



Apple MacBook Air (2020) 13.3-inch, 1.1GHz, i5, 8GB RAM, 512GB SSD, Space Gray picture

Apple MacBook Air (2020) 13.3-inch, 1.1GHz, i5, 8GB RAM, 512GB SSD, Space Gray

$419.00